/* Component styles for the Tag Helper primitives.
   EVERY visual value here is var(--sul-*). A literal hex, px or rem in this file is a bug —
   scripts/design-audit.sh greps for exactly that (CLAUDE.md rule 1).
   Patterns follow DESIGN-SYSTEM.md section 4; the card padding values in particular are the
   ones people get wrong: paddingV is 10, not spacing.base 12. */

/* --- The one reset, and it is load-bearing -------------------------------- */
/* Without this, `width: var(--sul-desktop-sidebar-width)` does not mean what the token says.
   The desktop sidebar declared that token as its width and RENDERED wider -- the token PLUS
   its own horizontal padding and right border, under the default content-box. The shell had
   been pushed clear by exactly the token, so the difference covered the leading edge of the
   content and every page in the app area lost the first character or two of every line
   behind an opaque rail.

   Nothing was wrong with the token, the margin, or the arithmetic; they simply measured two
   different boxes. That is the whole argument for border-box: a width token is a promise about
   how much room a thing occupies, and content-box quietly breaks that promise for anything
   with padding. `.sul-input` already carried its own `box-sizing: border-box` for the same
   reason, one element at a time -- the fix belongs here instead. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* EVERY link, including the ones nobody gave a class. There was no base rule here, so a plain
   <a> fell through to the user agent stylesheet's own blue — 9.4:1 on white, which is why no
   light-mode sweep ever flagged it, and 1.84:1 on the dark ground, which is unreadable. The
   composer's "Manage connections" was exactly that link. A theme does not get to depend on the
   browser's default palette. */
a {
  color: var(--sul-link);
}

body {
  margin: 0;
  background: var(--sul-background);
  color: var(--sul-text);
  font-size: var(--sul-font-base);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

/* .sul-shell is defined ONCE, further down with the other layout tiers. A second, identical
   selector used to sit here setting --sul-desktop-content-max, and the later one silently won
   -- so the stylesheet read as though the app had a content-max shell while every page in it
   rendered at column-max. Two rules, one dead, and nothing to say which. */

/* --- Section card (DESIGN-SYSTEM section 4) ------------------------------- */
/* The border AND a shadow, not one or the other. The page ground is 1.06:1 against a white
   card, so the border is what makes the edge legible and the shadow is what says which surface
   is on top — a list of cards with no depth reads as one flat document, which is how the
   Businesses screen ended up giving a real business and an "Add another" form equal weight. */
/* display: flex column so a card stretched to match its row's tallest sibling (.sul-card-grid's
   align-items: stretch) can pass that height down to .sul-card-body -- a plain block child never
   grows past its own content, which is what left .sul-business__actions' margin-top: auto with
   nothing to push against on a short card sitting next to a full one. */
.sul-card {
  display: flex;
  flex-direction: column;
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-card-radius);
  box-shadow: var(--sul-shadow-sm);
  margin: 0 var(--sul-card-padding-h) var(--sul-card-gap);
  overflow: hidden;
}

.sul-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sul-card-gap);
  padding: var(--sul-card-header-pt) var(--sul-card-padding-h) var(--sul-card-header-pb);
}

.sul-card-header__title {
  font-size: var(--sul-card-label-size);
  font-weight: 600;
  color: var(--sul-text);
}

.sul-card-header__action {
  font-size: var(--sul-font-xs);
  font-weight: 500;
  color: var(--sul-primary-action);   /* brand orange that passes contrast; NOT warning-dark, which is now amber */
  text-decoration: none;
}

.sul-card-body {
  padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: var(--sul-card-inner-gap);
}

/* --- Buttons -------------------------------------------------------------- */
.sul-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-compact) var(--sul-spacing-lg);
  border-radius: var(--sul-radius-lg);
  font-size: var(--sul-font-sm);
  font-weight: 600;
  border: var(--sul-card-border) solid transparent;
  cursor: pointer;
  text-decoration: none;
}

/* --sul-primary-action, not --sul-primary. White on the brand orange is 2.80:1 and AA needs
   4.5:1, so every primary button in the product was failing — see the note in tokens.json.
   The brand value keeps the logo; this one carries type. */
.sul-button--primary { background: var(--sul-primary-action); color: var(--sul-surface); }
.sul-button--primary:hover { background: var(--sul-primary-action-strong); }
/* Now that a duration token exists, the press has somewhere to go. The global
   prefers-reduced-motion rule above removes it for anyone who asked. */
.sul-button { transition: background var(--sul-transition-fast) ease; }
.sul-button--secondary {
  background: var(--sul-surface);
  color: var(--sul-text-secondary);
  border-color: var(--sul-border);
}

.sul-button[disabled],
.sul-button[aria-disabled="true"] {
  background: var(--sul-disabled);
  color: var(--sul-muted);
  cursor: not-allowed;
  pointer-events: none;
}

/* Visible focus is part of the accessibility floor, not decoration. */
.sul-button:focus-visible,
.sul-input:focus-visible,
a:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}

/* --- Fields --------------------------------------------------------------- */
.sul-field { display: flex; flex-direction: column; gap: var(--sul-spacing-xs); }

/* Two fields side by side (Tone + Length in the AI dialog) instead of stacked, so a step with
   several fields fits without scrolling. Wraps to one column on a phone, same as the template
   grid does — a fixed two-up would squeeze both below a usable width. */
.sul-field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--sul-desktop-template-card-min), 1fr));
  gap: var(--sul-spacing-base);
}

.sul-field__label {
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-text-secondary);
}

.sul-field__required { color: var(--sul-danger); }

.sul-input {
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
  background: var(--sul-surface);
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.sul-input::placeholder { color: var(--sul-placeholder); }

.sul-field__hint  { margin: 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-field__error { margin: 0; font-size: var(--sul-font-xs); color: var(--sul-danger); font-weight: 500; }
.sul-field--invalid .sul-input { border-color: var(--sul-danger); }

/* --- Status pill ---------------------------------------------------------- */
.sul-pill {
  display: inline-block;
  /* line-height is explicit rather than inherited, so the pill's own box height depends only on
     its font-size and padding — never on whatever line-height the surrounding text happens to
     have. Without it, a pill next to a heading (a taller line-height) sits at a slightly
     different vertical centre than the same pill next to plain body text, even inside a flex
     row with align-items: center: centering aligns the two BOXES, and the boxes were different
     heights for a reason that had nothing to do with the pill's own content. */
  line-height: 1.4;
  padding: var(--sul-spacing-xxs) var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  font-size: var(--sul-font-micro);
  font-weight: 600;
}

.sul-pill--success { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-pill--warning { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }
.sul-pill--danger  { background: var(--sul-pastel-danger);  color: var(--sul-danger); }
/* info-dark, not link: link on pastel-info is 4.24:1, below AA. DESIGN-SYSTEM.md section 4
   always documented a darker blue for this cell and the stylesheet quietly used link instead,
   so the doc was right and the code was not. The value lives in tokens.json. */
.sul-pill--info    { background: var(--sul-pastel-info);    color: var(--sul-info-dark); }
.sul-pill--neutral { background: var(--sul-background);     color: var(--sul-muted); }

/* A pill carrying a leading glyph -- Insights' "Pending"/"Not tracked per post" marks, where the
   base .sul-pill's inline-block box has no room for an icon beside its text. Its own modifier
   rather than a change to .sul-pill itself: every other pill in the product is text-only and
   inline-block is the right box for that -- turning the base class into a flex container would
   be a layout change none of those call sites asked for. */
.sul-pill--icon {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xxs);
  /* A pill never stretches to fill its container's cross axis, even inside a flex COLUMN like
     .sul-stat (align-items defaults to stretch there, and stretch resolves to the column's
     inline axis, not just block-level children) -- Insights' "Pending" pill inside a stat tile
     was rendering as a full-width bar rather than a compact chip before this. */
  align-self: flex-start;
}

.sul-pill--icon svg {
  width: var(--sul-font-micro);
  height: var(--sul-font-micro);
  flex-shrink: 0;
}

/* --- Onboarding steps -----------------------------------------------------
   A bar per step with "1 · Your business" under it. The number keeps its own
   span, so the order is in the markup and not only in the colour of a bar. */
.sul-steps {
  list-style: none;
  display: flex;
  gap: var(--sul-spacing-sm);
  max-width: calc(var(--sul-spacing-3xl) * 20);
  margin: 0 var(--sul-card-padding-h) var(--sul-spacing-2xl);
  padding: 0;
}

.sul-steps__item {
  flex: 1;
  padding-top: var(--sul-spacing-sm);
  border-top: var(--sul-spacing-xs) solid var(--sul-border);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-steps__n::after { content: " \00b7 "; }
.sul-steps__label { font-size: var(--sul-font-xs); }

.sul-steps__item--done    { border-top-color: var(--sul-success-dark); }
.sul-steps__item--current { border-top-color: var(--sul-primary-action); color: var(--sul-text); font-weight: 600; }

/* --- Page furniture ------------------------------------------------------- */
.sul-page-title {
  font-size: var(--sul-font-3xl);
  font-weight: 700;
  margin: 0 var(--sul-card-padding-h) var(--sul-spacing-sm);
}

.sul-lede { margin: 0 var(--sul-card-padding-h) var(--sul-spacing-lg); color: var(--sul-muted); font-size: var(--sul-font-sm); }
.sul-actions { display: flex; gap: var(--sul-spacing-base); padding: 0 var(--sul-card-padding-h); margin-top: var(--sul-spacing-lg); }

/* Compose's action bar (Back/Next/Publish vs. Save as draft/Manage connections) reads as two
   things, not five buttons in a row: the wizard-flow group and the "step aside" group. Splitting
   them into their own flex containers lets .sul-actions--compose push them to opposite ends
   without reordering the buttons themselves or touching any of their handlers. */
.sul-actions__group {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  flex-wrap: wrap;
}

.sul-actions--compose { justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ==========================================================================
   App shell (SC-22). Everything above this line styles a component; this
   styles the frame those components sit in, which the product had none of —
   content floated directly on the background with no header, no identity and
   no sense of place.
   ========================================================================== */

.sul-topbar {
  height: var(--sul-desktop-topbar-height);
  background: var(--sul-surface);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: 0 var(--sul-spacing-lg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.sul-topbar__brand {
  display: inline-flex;
  align-items: center;
  font-size: var(--sul-font-base);
  font-weight: 700;
  color: var(--sul-text);
  text-decoration: none;
  letter-spacing: var(--sul-tracking-tight);
}

/* The Sulekha emblem, not a lettered placeholder. Sized to spacing-2xl, the same box the old
   letter mark used, so the brand lockup's height in the topbar did not change. */
.sul-topbar__mark {
  width: var(--sul-spacing-2xl);
  height: var(--sul-spacing-2xl);
  margin-right: var(--sul-spacing-sm);
}

.sul-topbar__spacer { flex: 1; }

/* Also an <a> now (the signed-out "Log in" link), not just the sign-out <button> it was
   written for — text-decoration is explicit rather than left to the global `a` rule so both
   render the same. */
.sul-topbar__action {
  font-size: var(--sul-font-sm);
  font-weight: 500;
  color: var(--sul-text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: var(--sul-spacing-sm);
  text-decoration: none;
}

/* The form-column tier from DESIGN-SYSTEM 3.13. Wider than this and a label sits so
   far from its input that the pair stops reading as one thing. */
.sul-shell {
  max-width: var(--sul-desktop-column-max);
  margin: 0 auto;
  padding: var(--sul-spacing-xl) 0 var(--sul-spacing-3xl);
}

/* DESIGN-SYSTEM 3.13 defines THREE width tiers and the app was using one for everything, so
   the calendar's seven columns and a two-sentence card were both given column-max. These are
   the other two, opted into per page with ViewData["Shell"]:
     (default)  column-max  672   a form or a paragraph — onboarding, the composer
     --wide     wide-max   1024   cards that read better side by side — home, connections
     --full     content-max 1280  a grid that genuinely wants the room — calendar, insights
   Nothing here sets a horizontal offset: the rail is the wrapper's job, below. */
.sul-shell--wide { max-width: var(--sul-desktop-wide-max); }
.sul-shell--full { max-width: var(--sul-desktop-content-max); }
/* Console only (AdminShell "fluid"): the whole window, inside .sul-admin-main--full's gutter. */
.sul-shell--fluid { max-width: none; }

/* Cards that belong beside each other rather than stacked. A card holding one sentence and one
   button, stretched to the full width of a wide shell, reads as a loading state; two of them in
   a row read as a choice, which is what the page is actually offering.

   auto-fit + minmax means the COLUMN COUNT is decided by the space available, so there is no
   breakpoint here to fall out of step with the two in this file. Below card-min it is one
   column, which is the mobile layout arriving on its own rather than being written twice.
   The 1fr is `minmax(0, 1fr)` in effect for the cards' own overflow — auto-fit already floors
   each track at card-min, so a long unbroken word cannot push a track wider than its share. */
/* Add-another-business: a disclosure, not a card. It sits BELOW the grid of businesses and
   deliberately does not look like one of them — an action on the list rather than a member of
   it. The marker is the native <details> triangle; nothing here needs script. */
.sul-addbiz {
  margin: var(--sul-card-gap) var(--sul-card-padding-h) 0;
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-card-radius);
  box-shadow: var(--sul-shadow-sm);
}

.sul-addbiz__toggle {
  padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
  font-size: var(--sul-font-sm);
  font-weight: 600;
  color: var(--sul-primary-action);
  cursor: pointer;
}

.sul-addbiz__toggle:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: calc(var(--sul-spacing-xxs) * -1);
}

.sul-addbiz__body {
  padding: 0 var(--sul-card-padding-h) var(--sul-card-padding-v);
  display: flex;
  flex-direction: column;
  gap: var(--sul-card-inner-gap);
}

.sul-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--sul-desktop-card-min), 1fr));
  gap: var(--sul-card-gap);

  /* Stretch, not start: side-by-side cards whose bottoms do not line up read as an accident.
     Their content still sits at the top — this only makes the boxes agree on a height. */
  align-items: stretch;

  /* The inset a stacked card gets from its own side margins, moved to the grid so the columns
     line up with the page header, which is padded by the same token. */
  margin: 0 var(--sul-card-padding-h);
}

/* A card carries its own side margins and a bottom margin for when it is stacked. Inside the
   grid, `gap` does both jobs — leaving them would indent every card twice and add a phantom
   row of space under each one. */
.sul-card-grid > .sul-card { margin: 0; }

/* Posts page (SC-141): a fixed 4-up grid rather than .sul-card-grid's auto-fit, so a wide screen
   reads as an even wall of cards instead of stretching to as few as one per row. Falls back to
   fewer columns at narrower widths the same way the design system's other breakpoints do. */
.sul-card-grid--posts {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .sul-card-grid--posts { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .sul-card-grid--posts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .sul-card-grid--posts { grid-template-columns: 1fr; }
}

/* Business Home dashboard (SC-142): the same fixed-column reasoning as .sul-card-grid--posts
   above, for the Connections strip -- three platform cards on a wide screen left the fourth
   (or fifth, once a platform allows a second account) stranded alone on its own row instead of
   reading as one even strip. Same breakpoints as posts, so the two fixed-grid sections in this
   product fall back in step rather than each choosing their own widths. */
.sul-card-grid--connections {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .sul-card-grid--connections { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .sul-card-grid--connections { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .sul-card-grid--connections { grid-template-columns: 1fr; }
}

/* Wraps a compact .sul-platform-icon in the Posts card's platform row so the mark itself opens
   that platform's own permalink. Sized to the icon exactly (not the icon's own hit target) so
   several marks stay flush against each other the way .sul-platform-row already lays them out. */
.sul-platform-icon-link {
    display: flex;
    border-radius: 50%;
}

.sul-platform-icon-link:focus-visible {
    outline: var(--sul-spacing-xxs) solid var(--sul-focus);
    outline-offset: var(--sul-spacing-xxs);
}

/* --- Page header ---------------------------------------------------------- */
.sul-page-header {
  padding: 0 var(--sul-card-padding-h);
  margin-bottom: var(--sul-spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
}

.sul-page-header__back {
  font-size: var(--sul-font-xs);
  font-weight: 500;
  color: var(--sul-text-secondary);
  text-decoration: none;
  margin-bottom: var(--sul-spacing-xs);
}

.sul-page-header__title {
  font-size: var(--sul-font-3xl);
  font-weight: 700;
  letter-spacing: var(--sul-tracking-tighter);
  margin: 0;
  color: var(--sul-text);
}

.sul-page-header__lede {
  margin: 0;
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}

/* --- Empty state (DESIGN-SYSTEM section 4) -------------------------------- */
.sul-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-3xl) var(--sul-spacing-lg);
}

.sul-empty__glyph {
  width: var(--sul-spacing-3xl);
  height: var(--sul-spacing-3xl);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sul-radius-pill);
  background: var(--sul-pastel-primary);
  font-size: var(--sul-font-lg);
}

.sul-empty__title    { margin: 0; font-size: var(--sul-font-base); font-weight: 600; color: var(--sul-text); }
.sul-empty__subtitle { margin: 0; font-size: var(--sul-font-sm); color: var(--sul-muted); max-width: var(--sul-desktop-column-max); }

/* --- Selectable choice ---------------------------------------------------- */
.sul-choice {
  display: flex;
  align-items: flex-start;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  cursor: pointer;
  background: var(--sul-surface);
}

.sul-choice__input { margin: 0; accent-color: var(--sul-primary); flex-shrink: 0; }
.sul-choice__body  { display: flex; flex-direction: column; gap: var(--sul-spacing-xxs); }
.sul-choice__label { font-size: var(--sul-font-sm); font-weight: 500; color: var(--sul-text); }
.sul-choice__description { font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-choice:hover { border-color: var(--sul-placeholder); }

/* :has() lets the whole card reflect the input's state without any JavaScript keeping a class
   in sync — which is the usual way a "selected" style drifts out of step with the real value. */
.sul-choice:has(.sul-choice__input:checked) {
  border-color: var(--sul-primary);
  background: var(--sul-selected-bg);
}

.sul-choice:has(.sul-choice__input:focus-visible) {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}

/* An account the chosen post format cannot go to. The description beside it says why, so the
   dimming is not the only signal. */
.sul-choice:has(.sul-choice__input:disabled) {
  cursor: not-allowed;
  background: var(--sul-background);
}
.sul-choice:has(.sul-choice__input:disabled) .sul-choice__label { color: var(--sul-muted); }
.sul-choice:has(.sul-choice__input:disabled):hover { border-color: var(--sul-border); }

/* An account that needs reconnecting (composer, Accounts step): the disabled card with its status
   and a Reconnect link beside it. The wrapper is the card, so the link sits inside the same border
   without being inside the <label> -- a link in a label would also toggle the checkbox. Wraps the
   actions under the account on a narrow screen. */
.sul-reconnect-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-background);
}
.sul-reconnect-choice .sul-choice { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; }
.sul-reconnect-choice__actions {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
}

/* A handful of .sul-choice cards (e.g. Brand's four tones) side by side instead of one per line,
   so four short labels-plus-descriptions scan in one glance rather than a tall single column.
   auto-fit rather than a fixed column count: the same markup still stacks to one column at
   whatever width the card itself narrows to, with no separate mobile override needed. */
.sul-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--sul-desktop-choice-card-min), 1fr));
  gap: var(--sul-spacing-sm);
}

/* --- Steps, restyled as a rail -------------------------------------------- */
.sul-steps {
  border-bottom: var(--sul-card-border) solid var(--sul-border);
  padding-bottom: var(--sul-spacing-base);
  margin-bottom: var(--sul-spacing-xl);
}

.sul-steps__item--todo .sul-steps__label { color: var(--sul-placeholder); }

/* --- Mobile --------------------------------------------------------------- */
/* Breakpoint literal: @media cannot read a custom property. See breakpoint.mobile-max
   in tokens.json — change both together. */
@media (max-width: 640px) {
  .sul-topbar { padding: 0 var(--sul-spacing-base); }
  .sul-shell  { padding-top: var(--sul-spacing-lg); }
  .sul-steps__label { display: none; }   /* numbers alone; labels wrap badly at this width */
}

/* The consequence line under a "Reconnect needed" pill. warning-dark on the
   card rather than danger: nothing has been lost yet and no post has failed -
   the same distinction the reconnect banner draws between a warning and a
   danger, and the reason that banner is amber too. */
/* A sentence, so it WRAPS -- .sul-table's own cells are nowrap, which is right
   for ids and error codes and wrong for prose. The row carries no top border,
   so it reads as part of the account above it rather than as a fourth account. */
.sul-table__note > td {
    white-space: normal;
    padding-top: 0;
}

.sul-connection__consequence {
    margin: 0;
    font-size: var(--sul-font-xs);
    color: var(--sul-warning-dark);
}

/* --- Connections ------------------------------------------------------------
   One row per connected or connectable account. Wraps rather than scrolls: on a
   phone the account name is the long part, and a horizontally scrolling row hides
   the Disconnect button behind a gesture nobody discovers. */
.sul-connection {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sul-spacing-base);
    padding: var(--sul-spacing-base) 0;
    border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-connection:last-child { border-bottom: none; }

/* Takes the free space so the actions sit hard right on a wide screen and drop
   below on a narrow one, with no media query to keep in step with the layout. */
.sul-connection__detail {
    display: flex;
    flex-direction: column;
    gap: var(--sul-spacing-xs);
    flex: 1 1 var(--sul-desktop-connection-detail-min);
    min-width: 0;
}

.sul-connection__detail span {
    color: var(--sul-muted);
    font-size: var(--sul-font-sm);
    overflow-wrap: anywhere;
}

.sul-connection form { margin: 0; }

/* Platform icon. Brand colours come from the platform-icon.* tokens (DESIGN-SYSTEM.md §5 calls
 * them a named hardcoded exception; tokenising them still satisfies the no-literals rule below).
 * Sized to avatar.md, the same size used for the appbar avatar. */
.sul-platform-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--sul-avatar-md);
    height: var(--sul-avatar-md);
    border-radius: var(--sul-radius-pill);
    font-size: var(--sul-font-lg);
    font-weight: 700;
}

/* Sized for sitting inline next to a word (a tab label, a preview head) rather than carrying a
   row on its own — the avatar-sized default reads oversized in that context. */
/* A row of marks -- which platforms a post went to -- rather than one icon next to one name.
   Used by the Posts page (SC-141) cards, where several .sul-platform-icon--compact marks sit
   side by side under the publish date instead of one row per platform the way _PostTargets.cshtml
   needs, because this card is already answering "how did the POST do", not "what happened on
   each platform". */
.sul-platform-row {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-xs);
}

.sul-platform-icon--compact {
    width: var(--sul-avatar-sm);
    height: var(--sul-avatar-sm);
    font-size: var(--sul-font-xs);
}

/* The mark sits at 55% of the circle, so the tint reads as a ring around it rather than a
   coloured square behind it. Percent of the container, not a px size, because .sul-platform-icon
   is sized from --sul-avatar-md and the two must not need keeping in step by hand. */
.sul-platform-icon__mark {
    width: 55%;
    height: 55%;
    display: block;
}

/* Sulekha and ProManage: a logo image fills the circle instead of a drawn mark. */
.sul-platform-icon__logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: inherit;
}

/* Google is the only four-colour mark. Its paths carry classes instead of fill attributes so
   the brand values stay in tokens.json — a literal here would fail the design audit, and
   presentation attributes do not resolve var() reliably in any case. */
.sul-gm--blue   { fill: var(--sul-platform-icon-google-blue); }
.sul-gm--red    { fill: var(--sul-platform-icon-google-red); }
.sul-gm--yellow { fill: var(--sul-platform-icon-google-yellow); }
.sul-gm--green  { fill: var(--sul-platform-icon-google-green); }

.sul-platform-icon--google_business { background: var(--sul-platform-icon-google-bg); color: var(--sul-platform-icon-google-text); }
.sul-platform-icon--facebook_page    { background: var(--sul-platform-icon-facebook-bg); color: var(--sul-platform-icon-facebook-text); }
.sul-platform-icon--x                { background: var(--sul-platform-icon-x-bg); color: var(--sul-platform-icon-x-text); }
.sul-platform-icon--pinterest        { background: var(--sul-platform-icon-pinterest-bg); color: var(--sul-platform-icon-pinterest-text); }
.sul-platform-icon--linkedin_page    { background: var(--sul-platform-icon-linkedin-bg); color: var(--sul-platform-icon-linkedin-text); }
/* instagram_business, not instagram: app.platform has no row whose code is "instagram" — the
   two live codes are instagram_business (reached through a Facebook Page) and instagram_direct.
   The original selector matched a code that does not exist, so an Instagram+Facebook connection
   rendered with no brand colour at all. The old selector stays so nothing still emitting it
   loses its styling. */
.sul-platform-icon--instagram,
.sul-platform-icon--instagram_direct { background: var(--sul-platform-icon-instagram-bg); color: var(--sul-platform-icon-instagram-text); }

/* Instagram via Facebook (instagram_business): Facebook's blue disc and Instagram's gradient
   square side by side, in the full brand colours, inside the same round tinted circle as every
   other mark so no row that lists accounts changes width or shape. Each mark is a third of the
   circle so the square's corners stay inside it. */
.sul-platform-icon--instagram_business {
    background: var(--sul-platform-icon-facebook-bg);
    gap: 4%;
}

.sul-platform-pair__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34%;
    aspect-ratio: 1;
    overflow: hidden;
    color: var(--sul-platform-icon-mark-white);
}

.sul-platform-pair__mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sul-platform-pair__mark--facebook {
    border-radius: var(--sul-radius-pill);
    background: var(--sul-platform-icon-facebook-brand);
}

.sul-platform-pair__mark--instagram {
    border-radius: 28%;
    background: linear-gradient(45deg,
        var(--sul-platform-icon-instagram-yellow) 0%,
        var(--sul-platform-icon-instagram-orange) 25%,
        var(--sul-platform-icon-instagram-pink) 50%,
        var(--sul-platform-icon-instagram-purple) 75%,
        var(--sul-platform-icon-instagram-blue) 100%);
}

/* Connect/Reconnect on this row reads as the primary action of the page, so it takes the
   "Action button (secondary/outline)" pattern (DESIGN-SYSTEM.md §4: color.primary border +
   text, pill radius) instead of the muted default .sul-button--secondary used elsewhere
   (e.g. Disconnect) — scoped to .sul-connection so other pages' secondary buttons are
   untouched. Same rule on mobile: this file has no separate mobile stylesheet, the existing
   @media blocks below just restack .sul-connection at narrow widths. */
.sul-connection .sul-button--secondary {
    /* Orange TEXT on white, so it needs the same 4.69:1 value the buttons moved to. It was
       drawing the brand orange at 2.80:1 — the identical failure, in the other direction. */
    color: var(--sul-primary-action);
    border-color: var(--sul-primary-action);
}

/* --- The composer, as a wizard ------------------------------------------
   FIVE STEPS instead of one long form, and the reason is the shape of the thing rather than
   taste. Five stacked cards ran off the bottom of a laptop viewport; a two-column layout fixed
   that on a desktop and did nothing for the phone, which is where a single-outlet owner
   actually writes posts. native-businessapp's cross-post composer is a wizard for the same
   reason.

   EVERY STEP IS IN THE DOM, hidden with the hidden attribute rather than unrendered. Hidden
   inputs still post, so the form is complete at every step, Publish works from any of them, and
   moving between steps cannot drop an answer. The step decides visibility and nothing else. */
.sul-steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-sm);
  list-style: none;
  margin: 0 0 var(--sul-card-gap) 0;
  padding: 0;
}

.sul-steps__item { flex: 0 0 auto; }

/* THE WHOLE STEP IS THE BUTTON, still — a number beside a label that is not clickable invites
   the click anyway, and a wizard nobody can step back through is one people abandon rather than
   correct. Restyled from a full-width bordered box to a compact pill (the same treatment
   .sul-ai__platformtab already uses for its own row of clickable, one-at-a-time options) so five
   steps read as one scannable row instead of stacking into a column of boxes. */
.sul-steps__button {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-xs) var(--sul-spacing-base) var(--sul-spacing-xs) var(--sul-spacing-xs);
  background: transparent;
  border: none;
  border-radius: var(--sul-radius-pill);
  color: var(--sul-muted);
  font-size: var(--sul-font-xs);
  text-align: left;
  cursor: pointer;
  transition: background var(--sul-transition-fast), color var(--sul-transition-fast);
}

.sul-steps__button:hover { background: var(--sul-selected-bg); }

.sul-steps__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-background);
  color: var(--sul-muted);
  font-size: var(--sul-font-2xs);
  font-weight: 700;
}

/* The current step carries the accent as a filled pill, the same way .sul-ai__platformtab-
   -current marks the option showing right now. primary-action, never primary: this is text and
   a filled marker, and the brand orange is 2.80:1 on white — the rule CLAUDE.md states outright. */
.sul-steps__item--current .sul-steps__button {
  background: var(--sul-pastel-primary);
  color: var(--sul-primary-action);
  font-weight: 600;
}

.sul-steps__item--current .sul-steps__number {
  background: var(--sul-primary-action);
  color: var(--sul-surface);
}

/* Done steps read as available rather than finished-and-closed, because going back is the whole
   point of showing them. */
.sul-steps__item--done .sul-steps__number {
  background: var(--sul-pastel-success);
  color: var(--sul-success-dark);
}

/* The name is what makes the step meaningful, but five names do not fit across a phone. The
   number always shows; the word appears when there is room for it. */
.sul-steps__name { display: none; }

@media (min-width: 600px) {
  .sul-steps__name { display: inline; }
}

/* Publish stays put while the step scrolls behind it. On a phone this is static, because the
   tabbar already owns the bottom edge and two fixed bars would fight. */
@media (min-width: 1100px) {
  .sul-actions--compose {
    position: sticky;
    bottom: 0;
    background: var(--sul-background);
    padding: var(--sul-spacing-base) var(--sul-card-padding-h);
    margin: 0 calc(var(--sul-card-padding-h) * -1);
    border-top: var(--sul-card-border) solid var(--sul-border);
  }
}
/* --- Composer ------------------------------------------------------------
   Violations sit under the target that refused, not in one list at the top:
   with three platforms picked, "text too long" is only actionable if you can
   see which one said it. */
.sul-violations {
    margin: 0 0 var(--sul-spacing-base) 0;
    padding-left: var(--sul-spacing-lg);
    color: var(--sul-danger);
    font-size: var(--sul-font-sm);
}

/* Advisory quality hints ("use at least 1080x1080") — deliberately muted, not danger. These never
   block Next or Publish, unlike .sul-violations above; the colour is what tells them apart at a
   glance from a real refusal. */
.sul-quality-hints {
    margin: 0 0 var(--sul-spacing-base) 0;
    padding-left: var(--sul-spacing-lg);
    color: var(--sul-muted);
    font-size: var(--sul-font-xs);
}

/* --- Publish result -------------------------------------------------------
   One row per platform, same shape as a connection row so the two screens read
   as the same product. */
.sul-target {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sul-spacing-base);
    padding: var(--sul-spacing-base) 0;
    border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-target:last-child { border-bottom: none; }

.sul-target__detail {
    display: flex;
    flex-direction: column;
    gap: var(--sul-spacing-xs);
    flex: 1 1 var(--sul-desktop-connection-detail-min);
    min-width: 0;
}

.sul-target__error {
    color: var(--sul-danger);
    font-size: var(--sul-font-sm);
    overflow-wrap: anywhere;
}

/* ==========================================================================
   Navigation (SC-22, completing it).

   The ticket asked for "mobile tabbar, desktop sidebar at
   --sul-desktop-sidebar-width". The first pass shipped a topbar only, and that
   token sat unused: once inside a business there was no way to reach the
   composer or the connections screen except links buried in page bodies.

   ONE <nav> serves both. A sidebar and a tabbar built as separate markup drift,
   and the drift shows up as a destination that exists on desktop and silently
   does not on a phone.
   ========================================================================== */

.sul-nav {
    display: flex;
    background: var(--sul-surface);
    border-top: var(--sul-card-border) solid var(--sul-border);

    /* Mobile first: a bottom tabbar. Fixed, because the primary action on every
       screen here is "write a post" and it should not be a scroll away. */
    position: fixed;
    inset: auto 0 0 0;
    height: var(--sul-desktop-tabbar-height);
    z-index: 10;

    /* Keeps the bar clear of the iOS home indicator, and collapses to nothing
       on every device that does not have one. */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.sul-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sul-spacing-xs);
    text-decoration: none;
    color: var(--sul-muted);
    font-size: var(--sul-font-xs);

    /* The containing block for the broken-channel dot below. Safe here although .sul-nav__more
       carries a comment refusing it: the More sheet is a SIBLING of its summary inside
       <details>, not a child of it, so making an item a containing block cannot capture it. */
    position: relative;

    /* The whole cell is the target, not the icon. A 24px icon is below every
       touch-target guideline and is the single most common cause of a tabbar
       feeling unreliable. */
    min-height: var(--sul-spacing-3xl);
}

/* primary-action, not primary: color.primary on white is 2.80:1 and fails at label sizes, and
   this label is --sul-font-xs. (This comment used to credit warningDark, which is what the rule
   named before the brand and interface oranges were split.) */
/* -strong, not -action. On DESKTOP this sits on selected-bg, an orange tint, where
   primary-action is 4.42:1 — and it was missed when the other orange-on-orange cases were fixed,
   because the sweep that found those had only ever run on pages with no sidebar. On the phone
   the same item sits on surface, where -strong is 6.81:1, so one value serves both. */
.sul-nav__item--current { color: var(--sul-primary-action-strong); }

/* /app renders this same list with no business in scope (see _AppNav.cshtml) -- every item but
   "Businesses" has nowhere real to point to there. color.disabled text on a color.disabled icon
   (via currentColor) reads as inert without a strikethrough or greyed-out box that would fight
   the pill/current-item treatments the rest of this nav already uses. cursor:default, not
   not-allowed -- not-allowed reads as "this WOULD do something if only you could click it",
   which is the wrong message for a destination that needs a different page first. */
.sul-nav__item--disabled {
    color: var(--sul-disabled);
    cursor: default;
}

.sul-nav__icon {
    width: var(--sul-spacing-2xl);
    height: var(--sul-spacing-2xl);
}

/* The current tab is marked by colour AND weight, never colour alone: colour
   alone fails for anyone who cannot distinguish it (DESIGN-SYSTEM accessibility
   floor). */
.sul-nav__item--current .sul-nav__label { font-weight: 700; }

/* --- The broken-channel count ---------------------------------------------
   "A broken connection shows a count in the sidebar and a dot on the tab" -
   the design board's navigation rule, and the signal behind it is
   app.platform_connection.status, the same column the reconnect banner reads.

   ON THE PHONE IT IS A DOT. A numeral inside a touch-sized tab under the icon is
   not readable at any weight, and the question a tabbar answers is "is
   something wrong?" rather than "how many things". The number is on the
   sidebar, where there is a row to put it in.

   warning-dark rather than warning: the amber on white is 2.16:1, and WCAG
   1.4.11 asks 3:1 of a non-text indicator carrying meaning. The dark step is 6.05:1.
   The same pair .sul-pill--warning already uses, for the same reason.
   -------------------------------------------------------------------------- */
.sul-nav__badge {
    position: absolute;
    top: var(--sul-spacing-xs);
    left: 50%;
    margin-left: var(--sul-spacing-sm);
    width: var(--sul-spacing-sm);
    height: var(--sul-spacing-sm);
    border-radius: var(--sul-radius-pill);
    background: var(--sul-warning-dark);

    /* The numeral is present in the markup and hidden here rather than omitted, so the desktop
       rule below only has to reveal it. font-size: 0 collapses the glyph without needing a
       length token for something that is never drawn. */
    font-size: 0;
    color: transparent;
    overflow: hidden;
}

/* A tabbar item is a fixed share of the width, so a label longer than its slot does not shrink
   the tab -- it overflows and lands on the one beside it. "Manage business" did exactly that on
   a narrow phone and covered "Channels".
   
   Clipping is the guard rather than the fix: a truncated label is still a bug worth renaming,
   but it degrades to an ellipsis instead of to overlapping text, and it cannot silently break a
   layout that was fine when the nav had one item fewer. */
.sul-nav__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* --- The More sheet (phone only) ------------------------------------------
   Four destinations plus this. Seven tabs left each about a seventh of a phone and the labels
   touched; the DOM
   reported no overflow, which is why the ellipsis guard below never fired and the problem was
   only ever visible in a screenshot.

   The flat copies of the overflow items are hidden here and shown again on desktop; the sheet
   is the reverse. display:none removes each hidden copy from the accessibility tree, so there
   is one tab order rather than two. */
.sul-nav__item[data-bar="false"] { display: none; }

/* Deliberately NOT position:relative. .sul-nav is already position:fixed and is therefore the
   containing block, which is what lets the sheet below span the whole bar. With relative here
   the sheet resolved inset:0 against the More TAB and came out one tab wide. */
.sul-nav__more {
    flex: 1;
    display: flex;
}

/* The summary IS the tab, so it takes .sul-nav__item and only needs its marker removed. */
.sul-nav__moretab {
    flex: 1;
    cursor: pointer;
    list-style: none;
}

.sul-nav__moretab::-webkit-details-marker { display: none; }

/* Full-width above the bar rather than a narrow popover: a sheet the width of the screen needs
   no minimum-width token and gives each row a real touch target. */
.sul-nav__sheet {
    position: absolute;
    inset: auto 0 100% 0;
    display: flex;
    flex-direction: column;
    gap: var(--sul-spacing-xxs);
    padding: var(--sul-spacing-sm);
    background: var(--sul-surface);
    border-top: var(--sul-card-border) solid var(--sul-border);
    box-shadow: var(--sul-shadow-lg);
}

/* Rows, not cells: the sheet is a list, so the icon sits beside the label. */
.sul-nav__sheetitem {
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--sul-spacing-base);
    padding: var(--sul-spacing-sm) var(--sul-spacing-base);
    border-radius: var(--sul-radius-lg);
    font-size: var(--sul-font-sm);
}

.sul-nav__item:focus-visible {
    outline: var(--sul-spacing-xxs) solid var(--sul-focus);
    outline-offset: calc(var(--sul-spacing-xxs) * -1);
}

/* The rail's collapse toggle (sul-nav-collapse.js). A tabbar has no width to give back, so it
   exists on the desktop rail only -- see the media query below. */
.sul-nav__collapse { display: none; }

/* Content clears the fixed bar. Without this the last card on every page sits
   underneath it and the final button cannot be tapped. */
.sul-body--with-nav .sul-shell {
    padding-bottom: calc(var(--sul-desktop-tabbar-height) + var(--sul-spacing-3xl));
}

/* Visible only when it is the first thing you tab to, which is exactly when a
   keyboard user needs it. */
/* Moved out of view by transform rather than a negative offset: the offset needs a literal
   pixel value, and the design audit is right to refuse one. This also leaves the link in the
   layout, so it is announced in the correct place by a screen reader. */
.sul-skip {
    position: absolute;
    top: var(--sul-spacing-base);
    left: var(--sul-spacing-base);
    transform: translateY(-300%);
    background: var(--sul-surface);
    color: var(--sul-text);
    padding: var(--sul-spacing-base);
    border-radius: var(--sul-radius-base);
    z-index: 20;
}

.sul-skip:focus { transform: translateY(0); }

/* A staff "Operate as customer" session renders no app topbar (the console's business bar above
   the frame replaces it), so the sidebar and the top nav, both offset by the topbar's height,
   start at the top of the frame instead of leaving a topbar-sized gap. */
.sul-body--staff-operated { --sul-desktop-topbar-height: 0; }

/* --- Desktop: the tabbar becomes a sidebar -------------------------------- */
/* Breakpoint literal: @media cannot read a custom property. See
   breakpoint.sidebar-min in tokens.json — change both together. It is wider than
   the mobile breakpoint on purpose: the rail plus the form column need the room,
   and turning the sidebar on any earlier leaves the content narrower on a small
   laptop than it is on a phone. */
@media (min-width: 900px) {
    .sul-nav {
        position: fixed;
        inset: var(--sul-desktop-topbar-height) auto 0 0;
        width: var(--sul-desktop-sidebar-width);
        height: auto;
        flex-direction: column;
        justify-content: flex-start;
        gap: var(--sul-spacing-xs);
        padding: var(--sul-spacing-lg) var(--sul-spacing-base);
        border-top: none;
        border-right: var(--sul-card-border) solid var(--sul-border);
    }

    .sul-nav__item {
        flex: 0 0 auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: var(--sul-spacing-base);
        padding: 0 var(--sul-spacing-base);
        border-radius: var(--sul-radius-lg);
        font-size: var(--sul-font-sm);
    }

    .sul-nav__item--current { background: var(--sul-selected-bg); }

    /* The rail has a row, so the count is the count. pastel-warning rather than warning-light,
       which is the same value as selected-bg and would vanish on the current item. */
    .sul-nav__badge {
        position: static;
        margin-left: auto;
        width: auto;
        height: auto;
        min-width: var(--sul-spacing-xl);
        padding: 0 var(--sul-spacing-xs);
        border-radius: var(--sul-radius-pill);
        background: var(--sul-pastel-warning);
        color: var(--sul-warning-dark);
        font-size: var(--sul-font-micro);
        font-weight: 700;
        line-height: 1.7;
        text-align: center;
    }

    /* The rail is vertical and has room for all of them, so the phone's split does not apply:
       every destination is shown flat and the sheet is removed entirely. A disclosure here
       would add a click and hide nothing worth hiding. */
    .sul-nav__item[data-bar="false"] { display: flex; }
    .sul-nav__more { display: none; }

    /* THE RAIL OFFSET LIVES ON THE WRAPPER, NOT ON THE COLUMN, and that separation is the
       whole fix. `margin-left: <rail>` on the shell did clear the rail, but it also pinned the
       column to it: on a wide screen that left a form-column's worth of content hard against
       the rail with the rest of the page empty, which reads as something that failed to load
       rather than as a deliberate measure. It also could not survive a second width tier, because every tier
       would need its own calc combining the column and the rail.

       Padding the wrapper takes the rail out of the equation entirely. The shell keeps a plain
       `margin: 0 auto` and centres inside whatever space is left, so all three tiers above
       centre correctly with no calc and no arithmetic to keep in step. */
    .sul-body--with-nav .sul-appmain {
        padding-left: var(--sul-desktop-sidebar-width);
    }

    .sul-body--with-nav .sul-shell {
        padding-bottom: var(--sul-spacing-3xl);
    }

    /* --- Collapsible rail ---------------------------------------------------
       A round « on the rail's right edge, straddling its border, the way the support console's
       CRM shell does it. Collapsed, the rail keeps every destination as an icon (the label is
       still in the accessibility tree and in each item's title tooltip) and gives the width back
       to the content. The state is a class on <html>, set before paint from localStorage.

       The collapsed width is derived rather than a new token: the icon, the item's own padding
       and the rail's padding either side, plus the border -- so it cannot drift from the items
       it has to fit. */
    .sul-body--with-nav {
        --sul-nav-rail-collapsed: calc(var(--sul-spacing-2xl) + var(--sul-spacing-base) * 4 + var(--sul-card-border));
    }

    .sul-nav__collapse:not([hidden]) {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: var(--sul-spacing-lg);
        right: calc(var(--sul-spacing-base) * -1);
        width: var(--sul-spacing-2xl);
        height: var(--sul-spacing-2xl);
        padding: 0;
        border: var(--sul-card-border) solid var(--sul-border);
        border-radius: var(--sul-radius-pill);
        background: var(--sul-surface);
        color: var(--sul-muted);
        box-shadow: var(--sul-shadow-sm);
        cursor: pointer;
        z-index: 1;
    }

    .sul-nav__collapse:hover { color: var(--sul-text); }

    .sul-nav__collapse:focus-visible {
        outline: var(--sul-spacing-xxs) solid var(--sul-focus);
        outline-offset: var(--sul-spacing-xxs);
    }

    .sul-nav__collapse svg {
        width: var(--sul-spacing-lg);
        height: var(--sul-spacing-lg);
    }

    /* » when collapsed: the same glyph, turned round. */
    .sul-nav-collapsed .sul-nav__collapse svg { transform: rotate(180deg); }

    .sul-nav-collapsed .sul-body--with-nav:not(.sul-body--nav-top) .sul-nav {
        width: var(--sul-nav-rail-collapsed);
    }

    .sul-nav-collapsed .sul-body--with-nav:not(.sul-body--nav-top) .sul-appmain {
        padding-left: var(--sul-nav-rail-collapsed);
    }

    .sul-nav-collapsed .sul-body--with-nav:not(.sul-body--nav-top) .sul-nav__item {
        justify-content: center;
        padding: 0;
    }

    /* Visually hidden, not display:none, so a screen reader still hears "Write" rather than an
       unnamed link. The same rules .sul-cal--month .sul-cal__status uses. */
    .sul-nav-collapsed .sul-body--with-nav:not(.sul-body--nav-top) .sul-nav__label {
        position: absolute;
        width: var(--sul-card-border);
        height: var(--sul-card-border);
        padding: 0;
        margin: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    /* No row to put a numeral in any more, so the count goes back to the phone's dot on the
       icon's corner. The sentence beside it in the markup is unaffected. */
    .sul-nav-collapsed .sul-body--with-nav:not(.sul-body--nav-top) .sul-nav__badge {
        position: absolute;
        top: var(--sul-spacing-xs);
        left: 50%;
        margin-left: var(--sul-spacing-xs);
        width: var(--sul-spacing-sm);
        min-width: 0;
        height: var(--sul-spacing-sm);
        padding: 0;
        background: var(--sul-warning-dark);
        font-size: 0;
        color: transparent;
    }

    /* Reduced motion is handled by the global rule near the top of this file. */
    .sul-body--with-nav .sul-nav { transition: width var(--sul-transition-fast) ease; }
    .sul-body--with-nav .sul-appmain { transition: padding-left var(--sul-transition-fast) ease; }

    /* Home (SC-142) only: the SAME .sul-nav markup and destinations, laid out as a horizontal
     * bar under the topbar instead of a left rail. Nothing in _AppNav.cshtml changes -- this
     * re-lays-out what it already renders, on desktop widths only, gated on the body class
     * _Layout.cshtml sets from ViewData["NavPlacement"]. Below this same breakpoint the page
     * still gets the normal bottom tabbar; a page asking for a top bar on desktop said nothing
     * about phones, and the tabbar is already the right shape for a narrow screen. */
    .sul-body--nav-top.sul-body--with-nav .sul-nav {
        /* Sticky, not static: .sul-topbar above is itself `position: sticky; top: 0`, so this
           bar sits directly under it once the page scrolls -- the same technique, offset by the
           topbar's own height so the two stack rather than overlap. z-index matches the topbar's
           so a card scrolling underneath never shows through either bar. */
        position: sticky;
        top: var(--sul-desktop-topbar-height);
        right: auto;
        bottom: auto;
        left: auto;
        z-index: 10;
        width: auto;
        height: auto;
        flex-direction: row;
        justify-content: flex-start;
        align-items: stretch;
        gap: var(--sul-spacing-xs);
        padding: 0 var(--sul-spacing-lg);
        border-top: none;
        border-right: none;
        border-bottom: var(--sul-card-border) solid var(--sul-border);
        background: var(--sul-surface);
    }

    /* Label only, no icon -- a horizontal tab row reads by its text, and nine icon-plus-label
       pairs side by side (versus the sidebar's one column, where the icon earns its place next
       to a short label) is mostly repetition of the same information twice. The icon markup
       itself is untouched in _AppNav.cshtml; this just does not render it in this layout. */
    .sul-body--nav-top.sul-body--with-nav .sul-nav__icon {
        display: none;
    }

    .sul-body--nav-top.sul-body--with-nav .sul-nav__item {
        flex: 0 0 auto;
        flex-direction: row;
        border-radius: 0;
        padding: var(--sul-spacing-base) var(--sul-spacing-base);
    }

    /* The current tab reads as an underline on a horizontal bar, the way the mockup's own tab
       row does, rather than the sidebar's filled pill -- a filled background sits oddly between
       two other items in a row, where the sidebar had space above and below each one. */
    .sul-body--nav-top.sul-body--with-nav .sul-nav__item--current {
        background: none;
        box-shadow: inset 0 calc(var(--sul-spacing-xxs) * -1) 0 0 var(--sul-primary-action-strong);
    }

    /* No rail, so no reserved column -- the content sits full width under the top bar instead. */
    .sul-body--nav-top.sul-body--with-nav .sul-appmain {
        padding-left: 0;
    }

    /* And nothing to collapse. */
    .sul-body--nav-top.sul-body--with-nav .sul-nav__collapse { display: none; }

    /* The reconnect banner sits OUTSIDE .sul-appmain (it is full width above the content), so it
       gets none of that wrapper's rail offset and its headline went under the fixed rail. It takes
       the same offset in all three states. The extra base on the left clears the collapse «,
       which straddles the rail's edge by exactly that much. */
    .sul-body--with-nav .sul-reconnect {
        margin-left: var(--sul-desktop-sidebar-width);
        padding-left: calc(var(--sul-spacing-lg) + var(--sul-spacing-base));
    }

    .sul-nav-collapsed .sul-body--with-nav:not(.sul-body--nav-top) .sul-reconnect {
        margin-left: var(--sul-nav-rail-collapsed);
    }

    .sul-body--nav-top.sul-body--with-nav .sul-reconnect {
        margin-left: 0;
        padding-left: var(--sul-spacing-lg);
    }
}

/* --- The rail's business card, section headings and person foot -----------
   The collapsible-sidebar layout: which business you are in and "Switch business" at the top
   (_RailBusiness.cshtml), the destinations grouped Create / Grow / Account, and who is signed in
   pinned to the foot. All three are rail furniture: the phone tabbar has no room for them (the
   topbar's switcher names the business there), and Home's top bar is a row of tabs, so both hide
   them. Collapsed, the card and the foot keep only their tiles and a heading shrinks to a gap. */
.sul-railbiz,
.sul-nav__section,
.sul-nav__person,
.sul-nav__menu { display: none; }

/* The rail's scrolling region. On the phone tabbar and Home's top bar it is not a box at all, so
   the items inside it stay the bar's own flex children. */
.sul-nav__scroll { display: contents; }

@media (min-width: 900px) {
    .sul-body--with-nav:not(.sul-body--nav-top) .sul-railbiz {
        display: block;
        position: relative;
        margin-bottom: var(--sul-spacing-sm);
    }

    .sul-railbiz__card {
        display: flex;
        align-items: center;
        gap: var(--sul-spacing-sm);
        padding: var(--sul-spacing-xs);
        border: var(--sul-card-border) solid var(--sul-border);
        border-radius: var(--sul-radius-lg);
        cursor: pointer;
        list-style: none;
        /* The no-script fallback is a link to the businesses list, not a <summary>. */
        color: inherit;
        text-decoration: none;
    }

    .sul-railbiz__card::-webkit-details-marker { display: none; }

    .sul-railbiz__card:hover,
    .sul-railbiz[open] .sul-railbiz__card { background: var(--sul-background); }

    .sul-railbiz__card:focus-visible {
        outline: var(--sul-spacing-xxs) solid var(--sul-focus);
        outline-offset: var(--sul-spacing-xxs);
    }

    /* The initials tile. Orange-strong on the orange tint, the pair the current nav item uses. */
    .sul-railbiz__mark,
    .sul-railbiz__itemmark {
        flex: none;
        display: grid;
        place-items: center;
        border-radius: var(--sul-radius-base);
        background: var(--sul-selected-bg);
        color: var(--sul-primary-action-strong);
        font-weight: 700;
        font-size: var(--sul-font-xs);
    }

    .sul-railbiz__mark {
        width: var(--sul-avatar-sm);
        height: var(--sul-avatar-sm);
    }

    .sul-railbiz__itemmark {
        width: var(--sul-spacing-2xl);
        height: var(--sul-spacing-2xl);
        font-size: var(--sul-font-micro);
    }

    .sul-railbiz__text,
    .sul-railbiz__itemtext,
    .sul-nav__persontext {
        min-width: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .sul-railbiz__name,
    .sul-railbiz__itemname,
    .sul-nav__personname {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sul-railbiz__name,
    .sul-nav__personname {
        font-size: var(--sul-font-sm);
        font-weight: 600;
        color: var(--sul-text);
    }

    .sul-railbiz__hint,
    .sul-railbiz__why,
    .sul-railbiz__badge,
    .sul-railbiz__foot,
    .sul-nav__personhint {
        font-size: var(--sul-font-xs);
        color: var(--sul-muted);
    }

    .sul-railbiz__chevron {
        flex: none;
        width: var(--sul-spacing-lg);
        height: var(--sul-spacing-lg);
        color: var(--sul-muted);
    }

    .sul-railbiz[open] .sul-railbiz__chevron { transform: rotate(180deg); }

    /* Under the card, and allowed to be wider than the rail: a business name plus why it is listed
       ("Same mobile · Same campaign") needs the room, and the menu floats over the content. */
    .sul-railbiz__menu {
        position: absolute;
        inset: calc(100% + var(--sul-spacing-xs)) auto auto 0;
        width: max(100%, var(--sul-switcher-max));
        max-height: 70vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        padding: var(--sul-spacing-xs);
        background: var(--sul-surface);
        border: var(--sul-card-border) solid var(--sul-border);
        border-radius: var(--sul-radius-lg);
        box-shadow: var(--sul-shadow-lg);
        z-index: 30;
    }

    .sul-railbiz__title,
    .sul-nav__section {
        font-size: var(--sul-font-micro);
        font-weight: 700;
        text-transform: uppercase;
        color: var(--sul-muted);
    }

    .sul-railbiz__title { margin: var(--sul-spacing-xs) var(--sul-spacing-sm); }

    .sul-railbiz__title--section {
        margin-top: var(--sul-spacing-sm);
        padding-top: var(--sul-spacing-sm);
        border-top: var(--sul-card-border) solid var(--sul-border);
    }

    .sul-railbiz__item {
        display: flex;
        align-items: center;
        gap: var(--sul-spacing-sm);
        padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
        border-radius: var(--sul-radius-sm);
        font-size: var(--sul-font-sm);
        color: var(--sul-text);
        text-decoration: none;
    }

    .sul-railbiz__item:hover { background: var(--sul-background); }

    .sul-railbiz__item:focus-visible {
        outline: var(--sul-spacing-xxs) solid var(--sul-focus);
        outline-offset: calc(var(--sul-spacing-xxs) * -1);
    }

    .sul-railbiz__item--current {
        background: var(--sul-selected-bg);
        font-weight: 600;
    }

    .sul-railbiz__item--busy {
        opacity: 0.6;
        cursor: progress;
    }

    .sul-railbiz__item--manage {
        margin-top: var(--sul-spacing-xs);
        padding-top: var(--sul-spacing-sm);
        border-top: var(--sul-card-border) solid var(--sul-border);
        color: var(--sul-link);
    }

    .sul-railbiz__badge { flex: none; }

    .sul-railbiz__foot { margin: var(--sul-spacing-xs) var(--sul-spacing-sm); }

    .sul-body--with-nav:not(.sul-body--nav-top) .sul-nav__section {
        display: block;
        margin: var(--sul-spacing-sm) 0 0 0;
        padding: 0 var(--sul-spacing-base);
    }

    /* margin-top: auto pins it to the rail's foot, below however many destinations there are. */
    .sul-body--with-nav:not(.sul-body--nav-top) .sul-nav__person {
        display: flex;
        align-items: center;
        gap: var(--sul-spacing-sm);
        margin-top: auto;
        padding: var(--sul-spacing-sm) var(--sul-spacing-xs) 0;
        border-top: var(--sul-card-border) solid var(--sul-border);
    }

    .sul-nav__personmark {
        flex: none;
        display: grid;
        place-items: center;
        width: var(--sul-avatar-sm);
        height: var(--sul-avatar-sm);
        border-radius: var(--sul-radius-pill);
        background: var(--sul-pastel-info);
        color: var(--sul-text);
        font-weight: 700;
        font-size: var(--sul-font-xs);
    }

    /* The rail's card names the business on desktop, so the topbar's copy would be a second
       switcher on one screen. Home's top bar has no card, so it keeps the topbar's. */
    .sul-body--with-nav:not(.sul-body--nav-top) .sul-topbar .sul-switcher,
    .sul-body--with-nav:not(.sul-body--nav-top) .sul-topbar .sul-switcher__only { display: none; }

    /* Collapsed rail: tiles only, the words stay in each title tooltip. */
    .sul-nav-collapsed .sul-body--with-nav:not(.sul-body--nav-top) .sul-railbiz__text,
    .sul-nav-collapsed .sul-body--with-nav:not(.sul-body--nav-top) .sul-railbiz__chevron,
    .sul-nav-collapsed .sul-body--with-nav:not(.sul-body--nav-top) .sul-nav__persontext { display: none; }

    .sul-nav-collapsed .sul-body--with-nav:not(.sul-body--nav-top) .sul-railbiz__card {
        justify-content: center;
        border-color: transparent;
    }

    /* Opens beside the collapsed rail rather than under a tile narrower than any name. */
    .sul-nav-collapsed .sul-body--with-nav:not(.sul-body--nav-top) .sul-railbiz__menu {
        inset: 0 auto auto calc(100% + var(--sul-spacing-sm));
        width: var(--sul-switcher-max);
    }

    .sul-nav-collapsed .sul-body--with-nav:not(.sul-body--nav-top) .sul-nav__section {
        height: var(--sul-spacing-sm);
        overflow: hidden;
        font-size: 0;
    }

    .sul-nav-collapsed .sul-body--with-nav:not(.sul-body--nav-top) .sul-nav__person {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    /* --- The rail scrolls when it is taller than the window ------------------
       Only the middle scrolls: the business card stays at the top, who is signed in stays at the
       foot, and the overflow is on this box rather than on the <nav>, where it would clip the
       collapse « straddling the rail's edge and the Switch business menu floating past it. The
       negative margin and matching padding keep focus outlines inside the scroll box. */
    .sul-body--with-nav:not(.sul-body--nav-top) .sul-nav__scroll {
        display: flex;
        flex-direction: column;
        gap: var(--sul-spacing-xs);
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        margin: 0 calc(var(--sul-spacing-xs) * -1);
        padding: var(--sul-spacing-xxs) var(--sul-spacing-xs);
    }

    /* --- The grouped menu (expanded rail) ------------------------------------
       Create / Grow / Account as rows naming what is inside, each opening to its destinations.
       Expanded, the menu replaces the flat items and their headings; collapsed to icons, the flat
       items come back, because a group row has nothing to show in an icon's width. */
    html:not(.sul-nav-collapsed) .sul-body--with-nav:not(.sul-body--nav-top) .sul-nav__scroll > .sul-nav__item,
    html:not(.sul-nav-collapsed) .sul-body--with-nav:not(.sul-body--nav-top) .sul-nav__scroll > .sul-nav__section { display: none; }

    html:not(.sul-nav-collapsed) .sul-body--with-nav:not(.sul-body--nav-top) .sul-nav__menu {
        display: flex;
        flex-direction: column;
        gap: var(--sul-spacing-xxs);
    }

    .sul-nav__grouphead {
        display: flex;
        align-items: center;
        gap: var(--sul-spacing-sm);
        padding: var(--sul-spacing-sm) var(--sul-spacing-base);
        border-radius: var(--sul-radius-lg);
        color: var(--sul-text);
        cursor: pointer;
        list-style: none;
    }

    .sul-nav__grouphead::-webkit-details-marker { display: none; }

    .sul-nav__grouphead:hover,
    .sul-nav__group--current > .sul-nav__grouphead { background: var(--sul-background); }

    .sul-nav__grouphead:focus-visible {
        outline: var(--sul-spacing-xxs) solid var(--sul-focus);
        outline-offset: calc(var(--sul-spacing-xxs) * -1);
    }

    .sul-nav__grouptext {
        min-width: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: var(--sul-spacing-xxs);
    }

    .sul-nav__groupname {
        font-size: var(--sul-font-base);
        font-weight: 600;
    }

    /* Marked by weight as well as the tint, never the tint alone. */
    .sul-nav__group--current .sul-nav__groupname { font-weight: 700; }

    /* What is inside, so a closed group still says where things are. Wraps rather than
       ellipsising: a list cut off mid-name hides the one destination being looked for. Open, the
       destinations themselves are showing, so the summary would only repeat them. */
    .sul-nav__groupitems {
        font-size: var(--sul-font-xs);
        line-height: 1.4;
        color: var(--sul-muted);
    }

    .sul-nav__group[open] .sul-nav__groupitems { display: none; }

    /* Open, the count is on the Channels row itself. */
    .sul-nav__group[open] > .sul-nav__grouphead .sul-nav__badge { display: none; }

    .sul-nav__groupchevron {
        flex: none;
        width: var(--sul-spacing-lg);
        height: var(--sul-spacing-lg);
        color: var(--sul-muted);
        transition: transform var(--sul-transition-fast) ease;
    }

    .sul-nav__group[open] .sul-nav__groupchevron { transform: rotate(90deg); }

    .sul-nav__groupbody {
        display: flex;
        flex-direction: column;
        gap: var(--sul-spacing-xxs);
        padding: var(--sul-spacing-xxs) 0 var(--sul-spacing-sm) var(--sul-spacing-sm);
    }
}

/* ==========================================================================
   Calendar (SC-71). Also the post history, because they are the same question
   asked about different halves of one list: "what is going out" and "what went
   out". Two screens would make a customer decide which list a post is in
   before they can look for it, and the answer changes on its own.

   THREE VIEWS, ONE GRID. Day, week and month are the same cells in a different
   number of columns — set by --sul-cal-columns, which each modifier changes and
   nothing else does. A separate stylesheet per view would be three places for a
   post chip to drift.
   ========================================================================== */

.sul-calbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sul-spacing-base);
    padding: 0 var(--sul-card-padding-h);
    margin-bottom: var(--sul-spacing-lg);
}

.sul-calbar__nav { display: flex; align-items: center; gap: var(--sul-spacing-sm); }

.sul-calbar__views { flex: 0 0 auto; }

/* The range title sits with the arrows it changes with. */
.sul-calbar__title {
    font-weight: 700;
    font-size: var(--sul-font-base);
    margin-left: var(--sul-spacing-sm);
}

/* The view switcher is links, not buttons, so it keeps real hrefs — middle-click
   and ctrl-click still work and it survives with JavaScript off. */
.sul-calbar__views .sul-tabs__tab {
    flex: 0 0 auto;
    text-decoration: none;
    text-align: center;
}

.sul-cal {
    background: var(--sul-surface);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-card-radius);
    /* Every other surface at this elevation (.sul-card, .sul-dialog) casts the same shadow; the
       calendar had only ever had the border, so it sat flatter than the cards around it. */
    box-shadow: var(--sul-shadow-sm);
    overflow: hidden;

    /* The one value the three views disagree about. */
    --sul-cal-columns: 7;
    --sul-cal-min-height: var(--sul-desktop-cal-month-min);
}

.sul-cal--week  { --sul-cal-min-height: var(--sul-desktop-cal-week-min); }
.sul-cal--day   { --sul-cal-columns: 1; --sul-cal-min-height: var(--sul-desktop-cal-week-min); }

/* The empty-range line. Sits between the toolbar and the grid, at the weight of a hint rather
   than a heading — it is a note ABOUT the grid below it, not a replacement for it. */
.sul-cal__none {
    margin: 0 0 var(--sul-spacing-sm);
    padding: var(--sul-spacing-sm) var(--sul-spacing-base);
    background: var(--sul-surface);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-lg);
    font-size: var(--sul-font-sm);
    color: var(--sul-muted);
}

.sul-cal__none a {
    color: var(--sul-primary-action);
    font-weight: 600;
    margin-left: var(--sul-spacing-xs);
}

.sul-cal__head,
.sul-cal__grid {
    display: grid;
    grid-template-columns: repeat(var(--sul-cal-columns), minmax(0, 1fr));
}

.sul-cal__weekday {
    padding: var(--sul-spacing-sm);
    text-align: center;
    font-size: var(--sul-font-xs);
    font-weight: 600;
    color: var(--sul-muted);
    background: var(--sul-background);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-cal__weekday abbr { text-decoration: none; }

.sul-cal__day {
    display: flex;
    flex-direction: column;
    gap: var(--sul-spacing-xxs);
    padding: var(--sul-spacing-xs);
    border-right: var(--sul-card-border) solid var(--sul-border);
    border-bottom: var(--sul-card-border) solid var(--sul-border);

    /* A fixed row height would either clip a busy day or waste most of an empty
       month. min-height keeps the grid readable when nothing is booked and lets
       a busy day grow. */
    min-height: var(--sul-cal-min-height);
}

.sul-cal__day:nth-child(7n) { border-right: none; }
.sul-cal--day .sul-cal__day { border-right: none; }

/* Greyed rather than hidden: a Monday-first grid needs the padding cells to
   exist or the dates land in the wrong columns. */
.sul-cal__day--outside { background: var(--sul-background); }
/* muted, not disabled. These are real dates in the adjacent month, not an inactive
   control — and color.disabled is 1.52:1 on the light ground and 1.58:1 on the dark one,
   so it failed in BOTH themes. Dark mode is only what made anyone measure it. The cell
   keeps its own dimmer background, which is what still makes them read as outside. */
.sul-cal__day--outside .sul-cal__date { color: var(--sul-muted); }

.sul-cal__dayhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sul-spacing-xs);
}

.sul-cal__date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--sul-font-xs);
    color: var(--sul-muted);
    text-decoration: none;
    border-radius: var(--sul-radius-pill);
}

.sul-cal__date:hover { text-decoration: underline; }

/* Today is marked with weight, a filled badge and the cell's own tint below -- not colour alone.
   The badge is additional emphasis on top of the existing cell tint, not a replacement for it:
   the day view's date reads as a whole sentence ("Thursday 10 September") rather than a bare
   number, so it keeps the plain text treatment and only the month/week view gets the circle. */
.sul-cal__day--today .sul-cal__date {
    font-weight: 700;
    color: var(--sul-text);
}

.sul-cal:not(.sul-cal--day) .sul-cal__day--today .sul-cal__date {
    min-width: var(--sul-spacing-xl);
    height: var(--sul-spacing-xl);
    padding: 0 var(--sul-spacing-xs);
    background: var(--sul-primary-action);
    /* Same white-on-primary-action pairing .sul-button--primary already uses -- 4.69:1, the
       lightest step on the brand hue that carries white text at AA (tokens.json). */
    color: var(--sul-surface);
}

.sul-cal:not(.sul-cal--day) .sul-cal__day--today .sul-cal__date:hover { text-decoration: none; }

/* selected-bg, not pastel-warning. Today is not a warning -- and now that warning-dark is
   amber and means "this needs attention", tinting today with it actively says the wrong
   thing. The brand tint reads as "you are here", which is what it is. */
.sul-cal__day--today { background: var(--sul-selected-bg); }

/* How many posts a day holds, when they do not all fit as chips. */
.sul-cal__count {
    /* Pushed to the right so the count and the + cluster together at the end of
       the row, leaving the date alone on the left. Before T35 space-between did
       this on its own with two children; with three it would have parked the
       count in the middle of the cell. */
    margin-left: auto;
    font-size: var(--sul-font-micro);
    font-weight: 700;
    color: var(--sul-muted);
    background: var(--sul-background);
    border-radius: var(--sul-radius-pill);
    padding: 0 var(--sul-spacing-xs);
}

/* Write a post for this day (T35). Muted until it is wanted: a calendar full of
   bright + marks reads as a grid of buttons rather than as a month, and the day
   somebody is looking at is the only one they are about to use. It is never
   hidden outright, because a control that appears on hover cannot be found on a
   phone. */
.sul-cal__add {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* The same 20px square today's own date badge uses, so the two controls in
       this row are the same size rather than nearly. */
    min-width: var(--sul-spacing-xl);
    height: var(--sul-spacing-xl);
    font-size: var(--sul-font-sm);
    font-weight: 700;
    line-height: 1;
    color: var(--sul-muted);
    text-decoration: none;
    border-radius: var(--sul-radius-sm);
}

/* The count already took the auto margin when it is present, so the + only needs
   it when the day is empty -- and an empty day is exactly the one this is for. */
.sul-cal__count + .sul-cal__add {
    margin-left: 0;
}

.sul-cal__day:hover .sul-cal__add,
.sul-cal__add:hover,
.sul-cal__add:focus-visible {
    color: var(--sul-primary-action);
    background: var(--sul-background);
}

/* --- The Insights reading --------------------------------------------------
   The headline is the sentence; the caveat is how much weight to put on it,
   and it is quieter because it qualifies rather than reports. Not muted to the
   point of decoration though - it is the half that keeps four posts from
   reading as a trend.
   -------------------------------------------------------------------------- */
.sul-reading__headline {
    margin: 0;
    font-size: var(--sul-font-base);
    color: var(--sul-text);
}

.sul-reading__caveat {
    margin: var(--sul-spacing-sm) 0 0;
    font-size: var(--sul-font-sm);
    color: var(--sul-muted);
}

/* --- The calendar's status words and its legend ----------------------------
   Until these existed a chip carried its status in colour alone, which is
   WCAG 1.4.1 and the one rule the design board states twice.

   THE WORD IS ALWAYS IN THE MARKUP. Week and day views have room and show it;
   the month grid hides it visually - seven columns of "Scheduled" at that
   width is unreadable - and keeps it in the accessibility tree, which is why
   this is the visually-hidden idiom rather than display:none.
   -------------------------------------------------------------------------- */
.sul-cal__status {
    /* ITS OWN LINE, BELOW THE TIME AND THE CAPTION. order + a full flex-basis rather than a
       third item on the one row: squeezed in beside them it wrapped mid-word inside a week
       cell ("DID NO POST"), which is worse than no word at all -- found by looking at it
       rather than by reading it.

       Sentence case, not uppercase. "SCHEDULED" at this size is wider and harder to read than
       "Scheduled", and the board writes these in sentence case like everything else here. */
    order: 1;
    flex: 0 0 100%;
    font-size: var(--sul-font-2xs);
    font-weight: 600;
    color: var(--sul-muted);
}

/* The same rules .sul-visually-hidden uses. Not that class itself, because the
   month view is a state of THIS element rather than a permanent property of
   it, and a shared utility toggled per view reads as a bug at the call site. */
.sul-cal--month .sul-cal__status {
    position: absolute;
    width: var(--sul-card-border);
    height: var(--sul-card-border);
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.sul-cal__post--scheduled .sul-cal__status { color: var(--sul-scheduled); }
.sul-cal__post--attention .sul-cal__status { color: var(--sul-danger); }

.sul-callegend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sul-spacing-lg);
    margin: 0 0 var(--sul-spacing-base);
    font-size: var(--sul-font-xs);
    color: var(--sul-text-secondary);
}

.sul-callegend__item { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); }

/* A non-text indicator carrying meaning needs 3:1 against the page, so these
   are the DARK steps rather than the base hues - the same correction the nav
   badge documents. */
.sul-callegend__dot {
    width: var(--sul-spacing-sm);
    height: var(--sul-spacing-sm);
    border-radius: var(--sul-radius-pill);
    flex-shrink: 0;
}

.sul-callegend__dot--published { background: var(--sul-success-dark); }
.sul-callegend__dot--scheduled { background: var(--sul-scheduled); }
.sul-callegend__dot--attention { background: var(--sul-danger); }

.sul-cal__post {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-xs);
    padding: var(--sul-spacing-xxs) var(--sul-spacing-xs);
    border-radius: var(--sul-radius-base);
    background: var(--sul-background);
    border-left: var(--sul-spacing-xxs) solid var(--sul-border);
    font-size: var(--sul-font-micro);
    color: var(--sul-text);
    text-decoration: none;
    overflow: hidden;
    transition: background var(--sul-transition-fast) ease;
}

.sul-cal__post:hover { background: var(--sul-selected-bg); }

/* Scheduled and published read differently at a glance, and the difference is
   a border rather than the text colour — the excerpt has to stay readable. */
/* A state, not a link. This was color.link, so a scheduled post and a hyperlink were the
   same colour for no reason beyond both being blue. */
.sul-cal__post--scheduled { border-left-color: var(--sul-scheduled); }
.sul-cal__post--attention { border-left-color: var(--sul-danger); background: var(--sul-pastel-danger); }

/* The chip's own link to OUR post page -- .sul-cal__post stopped being an anchor itself once a
   platform mark needed to be its own, separate link (an anchor cannot nest inside another).
   Takes the flexible space time+excerpt used to take directly inside .sul-cal__post, and
   inherits its colour/no-underline so splitting the link out changes nothing visually. */
.sul-cal__postlink {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sul-spacing-xs);
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.sul-cal__time { flex: 0 0 auto; font-weight: 600; color: var(--sul-muted); }

.sul-cal__excerpt {
    flex: 1 1 auto;
    /* Without its OWN min-width:0, a flex item's minimum width defaults to its content's natural
       (unwrapped) width -- min-width:0 on the parent .sul-cal__postlink is not inherited by this
       child, so text-overflow:ellipsis never had a narrower box to clip against and a long
       caption pushed the row wider instead of truncating, worst on the day view's single wide
       column where there was no earlier hard limit to hit before running out of the page itself. */
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* .sul-platform-row (shared with Posts) now carries the layout job .sul-cal__platforms used to;
   the marks themselves are sul-platform-icon--compact, styled once in its own section rather
   than re-defined per page. */

.sul-cal__flag {
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--sul-danger);
}

.sul-cal__more {
    font-size: var(--sul-font-micro);
    color: var(--sul-link);
    text-decoration: none;
    padding: 0 var(--sul-spacing-xs);
}

.sul-cal__more:hover { text-decoration: underline; }

/* --- Phone ---------------------------------------------------------------- */
/* Breakpoint literal: @media cannot read a custom property. See
   breakpoint.mobile-max in tokens.json — change both together. */
@media (max-width: 640px) {
    /* Seven columns of readable text do not fit. Every view becomes one column
       of days, which is the same information without the horizontal scroll. */
    .sul-cal__head { display: none; }
    .sul-cal__grid { grid-template-columns: 1fr; }

    .sul-cal__day {
        border-right: none;
        padding: var(--sul-spacing-sm) var(--sul-spacing-base);
        min-height: 0;
    }

    /* A month of blank rows is not a calendar, it is scrolling. The day view is
       exempt: an empty day must still say it is empty rather than vanish. */
    .sul-cal:not(.sul-cal--day) .sul-cal__day:not(:has(.sul-cal__post)) { display: none; }

    .sul-cal__date {
        font-weight: 700;
        color: var(--sul-text);
    }

    /* The date alone is ambiguous once the weekday header is gone. */
    .sul-cal:not(.sul-cal--day) .sul-cal__date::after {
        content: attr(data-weekday);
        font-weight: 400;
        color: var(--sul-muted);
    }

    .sul-cal__post { font-size: var(--sul-font-xs); }

    .sul-calbar { padding: 0 var(--sul-spacing-base); }
    .sul-calbar__nav,
    .sul-calbar__views { flex: 1 1 100%; }
}

/* ==========================================================================
   List row. One tappable row with an avatar, two lines and an affordance —
   the shape the business list, and later the team list, both need.

   The whole row is the link, not the title inside it. A phone user aiming at a
   short business name misses more often than they hit, and the fix is not a
   bigger font.
   ========================================================================== */

.sul-listrow {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-base);
    padding: var(--sul-spacing-base) 0;
    border-bottom: var(--sul-card-border) solid var(--sul-border);
    text-decoration: none;
    color: var(--sul-text);
    min-height: var(--sul-spacing-3xl);
}

.sul-listrow:last-child { border-bottom: none; }

.sul-listrow:focus-visible {
    outline: var(--sul-spacing-xxs) solid var(--sul-focus);
    outline-offset: var(--sul-spacing-xxs);
}

.sul-listrow__avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--sul-spacing-3xl);
    height: var(--sul-spacing-3xl);
    border-radius: var(--sul-radius-pill);
    background: var(--sul-pastel-primary);
    /* -dark, not -action: orange text on an ORANGE tint is 4.09:1 at primary-action. */
    color: var(--sul-primary-action-strong);
    font-weight: 700;
    text-transform: uppercase;
}

.sul-listrow__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: var(--sul-spacing-xxs);
    min-width: 0;
}

.sul-listrow__title {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sul-listrow__meta {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-xs);
    font-size: var(--sul-font-xs);
    color: var(--sul-muted);
}

.sul-listrow__chevron {
    flex: 0 0 auto;
    color: var(--sul-muted);
    font-size: var(--sul-font-xl);
}

/* ==========================================================================
   Notifications (/app/notifications). Tabs that are links, a one-line
   attention summary, rows grouped by day.

   Unread is a bar, a dot and WEIGHT together, never colour alone: severity owns
   the icon's colour, and a row that was both unread and a warning would
   otherwise be making two claims through the same channel.
   ========================================================================== */

.sul-notes__summary {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-base);
    padding: var(--sul-spacing-base) var(--sul-spacing-lg);
    margin-bottom: var(--sul-spacing-lg);
    border: var(--sul-card-border) solid var(--sul-warning);
    border-radius: var(--sul-radius-xl);
    background: var(--sul-pastel-warning);
    color: var(--sul-warning-dark);
    font-size: var(--sul-font-sm);
}

.sul-notes__summary svg { flex: none; }
.sul-notes__summary a { color: inherit; font-weight: 600; margin-left: var(--sul-spacing-xs); }

.sul-notes__tabs {
    display: flex;
    gap: var(--sul-spacing-xs);
    overflow-x: auto;
    border-bottom: var(--sul-card-border) solid var(--sul-border);
}

/* Current is an underline AND a darker label AND a filled count -- three signals, so it never
   rests on colour. */
.sul-notes__tab {
    display: inline-flex;
    align-items: center;
    gap: var(--sul-spacing-sm);
    padding: var(--sul-spacing-compact) var(--sul-spacing-base);
    border-bottom: var(--sul-spacing-xxs) solid transparent;
    color: var(--sul-muted);
    font-size: var(--sul-font-sm);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.sul-notes__tab:hover { color: var(--sul-text); }

.sul-notes__tab--current {
    color: var(--sul-text);
    border-bottom-color: var(--sul-primary-action);
}

.sul-notes__tab:focus-visible {
    outline: var(--sul-spacing-xxs) solid var(--sul-focus);
    outline-offset: calc(-1 * var(--sul-spacing-xxs));
}

.sul-notes__count {
    min-width: var(--sul-spacing-lg);
    padding: 0 var(--sul-spacing-sm);
    border-radius: var(--sul-radius-pill);
    background: var(--sul-background);
    color: var(--sul-muted);
    font-size: var(--sul-font-micro);
    text-align: center;
}

.sul-notes__tab--current .sul-notes__count {
    background: var(--sul-primary-action);
    color: var(--sul-surface);
}

.sul-notes__list {
    background: var(--sul-surface);
    border: var(--sul-card-border) solid var(--sul-border);
    border-top: none;
    border-radius: 0 0 var(--sul-card-radius) var(--sul-card-radius);
    overflow: hidden;
}

.sul-notes__group {
    margin: 0;
    padding: var(--sul-spacing-base) var(--sul-spacing-xl) var(--sul-spacing-xs);
    background: var(--sul-background);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
    color: var(--sul-muted);
    font-size: var(--sul-font-xs);
    font-weight: 700;
    text-transform: uppercase;
}

.sul-note {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--sul-spacing-base);
    padding: var(--sul-spacing-lg) var(--sul-spacing-xl);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
    transition: background var(--sul-transition-fast) ease;
}

.sul-note:last-child { border-bottom: none; }
.sul-note:hover { background: var(--sul-selected-bg); }

.sul-note--unread::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--sul-spacing-xs);
    background: var(--sul-primary-action);
}

.sul-note__icon {
    display: grid;
    place-items: center;
    width: var(--sul-avatar-lg);
    height: var(--sul-avatar-lg);
    border-radius: var(--sul-radius-xl);
}

.sul-note__icon--warning { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }
.sul-note__icon--danger  { background: var(--sul-pastel-danger);  color: var(--sul-danger); }
.sul-note__icon--success { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-note__icon--info    { background: var(--sul-pastel-info);    color: var(--sul-info-dark); }

.sul-note__body { min-width: 0; }

.sul-note__title {
    display: flex;
    align-items: baseline;
    gap: var(--sul-spacing-sm);
    margin: 0;
    color: var(--sul-text-secondary);
    font-size: var(--sul-font-base);
    font-weight: 500;
}

.sul-note--unread .sul-note__title {
    color: var(--sul-text);
    font-weight: 700;
}

.sul-note__dot {
    flex: none;
    width: var(--sul-spacing-sm);
    height: var(--sul-spacing-sm);
    border-radius: var(--sul-radius-pill);
    background: var(--sul-primary-action);
    transform: translateY(calc(-1 * var(--sul-spacing-xxs)));
}

.sul-note__detail {
    margin: var(--sul-spacing-xxs) 0 var(--sul-spacing-sm);
    color: var(--sul-muted);
    font-size: var(--sul-font-sm);
}

.sul-note__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sul-spacing-xs) var(--sul-spacing-compact);
    color: var(--sul-muted);
    font-size: var(--sul-font-xs);
}

.sul-note__biz {
    display: inline-flex;
    align-items: center;
    gap: var(--sul-spacing-xs);
    color: var(--sul-text-secondary);
}

.sul-note__actions {
    display: flex;
    align-items: flex-start;
}

.sul-notes__empty {
    padding: var(--sul-spacing-3xl) var(--sul-spacing-xl);
    text-align: center;
    color: var(--sul-muted);
}

.sul-notes__empty svg { color: var(--sul-success); margin-bottom: var(--sul-spacing-sm); }

.sul-notes__empty-title {
    margin: 0 0 var(--sul-spacing-xs);
    color: var(--sul-text);
    font-size: var(--sul-font-base);
}

.sul-notes__foot {
    margin: var(--sul-spacing-base) 0 0;
    color: var(--sul-muted);
    font-size: var(--sul-font-xs);
}

/* On a phone the action drops under the text and takes the full width, so it is a thumb-sized
   target rather than a small button squeezed against the right edge. */
@media (max-width: 640px) {
    .sul-note {
        grid-template-columns: auto 1fr;
        padding: var(--sul-spacing-base) var(--sul-spacing-lg);
    }

    .sul-note__icon {
        width: var(--sul-avatar-md);
        height: var(--sul-avatar-md);
    }

    .sul-note__actions { grid-column: 2; }
    .sul-note__actions .sul-button { flex: 1; min-height: var(--sul-control-touch-min); }
    .sul-notes__group { padding: var(--sul-spacing-base) var(--sul-spacing-lg) var(--sul-spacing-xs); }
}

/* ==========================================================================
   The global "reconnect needed" banner (T37). Between the nav and the content
   on every business-scoped screen, because the signal already existed and was
   invisible from the calendar and the composer -- the two screens where someone
   decides what to publish.

   WARNING, NOT DANGER: nothing has been lost and no post has failed yet. And it
   is warning-DARK on a warning-LIGHT tint, never white on the amber itself --
   DESIGN-SYSTEM's contrast rule, the same one that keeps text off color.primary.

   It carries no dismiss control, by design rather than by omission. It is a
   condition, not an announcement: it clears itself when the channel is
   reconnected, and a dismiss button would let someone silence the warning
   without fixing anything.
   ========================================================================== */
.sul-reconnect {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-base);
    flex-wrap: wrap;
    padding: var(--sul-spacing-sm) var(--sul-spacing-lg);
    background: var(--sul-warning-light);
    color: var(--sul-warning-dark);
    /* Only on the bottom: it sits directly under the topbar or the nav, and a full
       border would draw a second line a pixel under an existing one. */
    border-bottom: var(--sul-card-border) solid var(--sul-warning);
}

.sul-reconnect__body {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--sul-spacing-xs);
    min-width: 0;
    font-size: var(--sul-font-sm);
}

/* The consequence, one step quieter than the headline but still readable -- it is
   the half that tells someone whether to stop what they are doing. */
.sul-reconnect__detail { opacity: 0.85; }

.sul-reconnect__action { flex: 0 0 auto; }

/* Breakpoint literal: @media cannot read a custom property. 640 is breakpoint.mobile-max,
   the same value the topbar restacks at -- one breakpoint, not a second one invented here. */
@media (max-width: 640px) {
    /* The action goes full width rather than squeezing onto the end of a wrapped
       sentence, where it reads as part of the text rather than as a button. */
    .sul-reconnect { padding: var(--sul-spacing-sm) var(--sul-spacing-base); }
    .sul-reconnect__action { width: 100%; }
}

/* ==========================================================================
   The notification bell (R5). A link with a count, not a dropdown: the count is
   polled once a minute and the list is a real page, so there is no panel to
   open, no new JavaScript, and middle-click still works.
   ========================================================================== */
.sul-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    /* Overrides .sul-topbar__action's text padding: this is an icon, and text
       padding around a glyph reads as a much smaller target. */
    padding: var(--sul-spacing-xs);
}

.sul-bell__glyph { display: block; }

/* Absolute over the glyph's top-right corner. The badge is a count, so it must not
   push the topbar's layout around as it changes from 1 to 9+. */
.sul-bell__badge {
    position: absolute;
    top: 0;
    /* Left of the edge rather than at it, so a two-character "9+" still sits inside
       the tap target rather than hanging off it. */
    right: 0;
    min-width: var(--sul-spacing-base);
    padding: 0 var(--sul-spacing-xxs);
    border-radius: var(--sul-radius-pill);
    background: var(--sul-danger);
    color: var(--sul-surface);
    font-size: var(--sul-font-xs);
    font-weight: 700;
    line-height: var(--sul-spacing-base);
    text-align: center;
}

/* ==========================================================================
   Publish result (SC-21/SC-63, redesigned): the legend answers "did my post
   work?" in one glance, one card per platform answers "what exactly happened
   to Instagram?" — two questions, and this is the second attempt at putting
   both in the one place a customer's eye actually lands, rather than a glance
   strip above a separate detail list that said the same thing twice.
   ========================================================================== */

.sul-target-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sul-spacing-lg);
    padding: var(--sul-spacing-lg) var(--sul-card-padding-h) var(--sul-spacing-base);
    font-size: var(--sul-font-sm);
    color: var(--sul-text-secondary);
}

.sul-target-legend__item {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-xs);
}

.sul-target-legend__dot {
    width: var(--sul-spacing-sm);
    height: var(--sul-spacing-sm);
    border-radius: var(--sul-radius-pill);
    flex: 0 0 auto;
}

.sul-target-legend__dot--success { background: var(--sul-success); }
.sul-target-legend__dot--danger  { background: var(--sul-danger); }
/* Held (T41): waiting on a renewal, which is amber rather than red -- nothing is broken. */
.sul-target-legend__dot--warning { background: var(--sul-warning); }

.sul-target-list {
    display: flex;
    flex-direction: column;
    gap: var(--sul-spacing-base);
    padding: 0 var(--sul-card-padding-h) var(--sul-card-padding-h);
}

.sul-target-card {
    display: flex;
    align-items: flex-start;
    gap: var(--sul-spacing-base);
    padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
    background: var(--sul-surface);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-card-radius);
}

/* A square, softly-rounded tint rather than the round mark Connections uses — this card already
   carries the platform's NAME as its own heading, so the icon here is decoration confirming it
   rather than the only thing naming the platform, and a squarer shape sits better beside a card's
   own square corners than a circle would. */
.sul-target-card__icon {
    width: var(--sul-avatar-md);
    height: var(--sul-avatar-md);
    border-radius: var(--sul-radius-base);
    flex: 0 0 auto;
}

.sul-target-card__detail {
    display: flex;
    flex-direction: column;
    gap: var(--sul-spacing-xxs);
    flex: 1 1 var(--sul-desktop-connection-detail-min);
    min-width: 0;
}

.sul-target-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sul-spacing-sm);
}

.sul-target-card__account,
.sul-target-card__when {
    font-size: var(--sul-font-sm);
    color: var(--sul-text-secondary);
    overflow-wrap: anywhere;
}

.sul-target-card__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-sm);
}

.sul-target-card__actions form { margin: 0; }

/* Delete used to be its own card, sized and coloured (a red-bordered card) specifically to read
   as more serious than an ordinary action, then a small text link. Icon-only now, so the danger
   colour is the only thing left standing in for the size and border the old card carried — the
   same reason sul-dialog__close is a bare icon button rather than styled text, just tinted danger
   instead of neutral because THIS one is destructive and a dialog's close button is not. */
.sul-target-card__delete {
    border: 0;
    background: none;
    color: var(--sul-danger);
    cursor: pointer;
    padding: var(--sul-spacing-xs);
    border-radius: var(--sul-radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sul-target-card__delete svg {
    width: var(--sul-font-lg);
    height: var(--sul-font-lg);
}

.sul-target-card__delete:hover { background: var(--sul-pastel-danger); }
.sul-target-card__delete:focus-visible { outline: var(--sul-focus); }

/* Deletion in flight, on the card that used to be a whole separate "Deleting this post" section
   with one bullet per platform. DeletionRequestedAt is a POST-wide flag but IsDeleting is
   per-target, so one platform can finish removing while another is still working — this spinner
   replaces just that one card's own trash icon rather than a page-wide state, which is the
   difference between "this platform is still going" and "something, somewhere, still is". A
   spin, not the dimmed-region treatment [aria-busy="true"] uses elsewhere in this file: that rule
   is for a whole region whose stale content is still the best guess at what is coming; this is
   one small icon with nothing behind it to dim. */
.sul-target-card__delete--spinner {
    width: var(--sul-font-lg);
    height: var(--sul-font-lg);
    margin: var(--sul-spacing-xs);
    border: var(--sul-card-border) solid var(--sul-pastel-danger);
    border-top-color: var(--sul-danger);
    border-radius: var(--sul-radius-pill);
    animation: sul-spin 0.8s linear infinite;
}

@keyframes sul-spin {
    to { transform: rotate(360deg); }
}

/* Available to any screen: the status word is in the DOM for a screen reader even
   where the visual carries it by colour and glyph. */
.sul-visually-hidden {
    position: absolute;
    width: var(--sul-card-border);
    height: var(--sul-card-border);
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* --- Composer preview (SC-62) ---------------------------------------------
   Not a pixel mock of each network: a fake Facebook chrome invites trust in
   details we cannot promise, and it dates the moment they restyle. This shows
   only what genuinely differs per platform. */
.sul-preview {
    padding: var(--sul-spacing-base) 0;
    border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-preview:last-child { border-bottom: none; }

.sul-preview__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--sul-spacing-sm);
    margin-bottom: var(--sul-spacing-xs);
}

.sul-preview__head span {
    color: var(--sul-muted);
    font-size: var(--sul-font-xs);
}

/* The attached picture, shown only for an account that will actually carry one (Preview.hasPhoto
   is the server's own answer). Bounded rather than full width: this card is a compact per-account
   summary, not the Step 3 image editor. */
.sul-preview__image {
    display: block;
    max-width: var(--sul-desktop-template-card-min);
    max-height: var(--sul-desktop-template-card-min);
    width: auto;
    height: auto;
    border-radius: var(--sul-radius-base);
    margin-bottom: var(--sul-spacing-xs);
}

/* Every picture after the first, in publish order. Small because the first is the one anybody
   scrolling past actually sees; present because a preview that drops four of five photos reads
   as though they were dropped. */
.sul-preview__more {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sul-spacing-xs);
    margin: 0 0 var(--sul-spacing-xs);
    padding: 0;
    list-style: none;
}

.sul-preview__thumb {
    display: block;
    width: var(--sul-avatar-lg);
    height: var(--sul-avatar-lg);
    object-fit: cover;
    border-radius: var(--sul-radius-sm);
    border: var(--sul-card-border) solid var(--sul-border);
}

/* Preserves the customer's line breaks. A preview that collapses them shows
   something they did not write. */
.sul-preview__body {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.sul-preview__note {
    margin: var(--sul-spacing-xs) 0 0;
    font-size: var(--sul-font-xs);
    color: var(--sul-primary-action);
}

/* What the customer entered on Post Details for this account, under its caption. */
.sul-preview__details {
    margin: var(--sul-spacing-sm) 0 0;
    padding-top: var(--sul-spacing-sm);
    border-top: var(--sul-card-border) solid var(--sul-border);
    display: grid;
    gap: var(--sul-spacing-xs);
    font-size: var(--sul-font-sm);
}

.sul-preview__detail {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sul-spacing-xs);
}

.sul-preview__detail dt {
    color: var(--sul-text-secondary);
}

.sul-preview__detail dt::after {
    content: ":";
}

.sul-preview__detail dd {
    margin: 0;
    color: var(--sul-text);
    overflow-wrap: anywhere;
}

/* ==========================================================================
   Mobile pass.

   Before this the product had three media queries in the whole stylesheet, and
   mobile "worked" because flex-wrap happened to behave — not because anything
   was designed for it. CLAUDE.md's target is desktop AND mobile web, and the
   customer is a business owner holding a phone.

   Breakpoint literal: @media cannot read a custom property. See
   breakpoint.mobile-max in tokens.json — change both together.
   ========================================================================== */
@media (max-width: 640px) {
    /* Cards go edge to edge. A card inset by its own margin inside a viewport
       this narrow wastes the two columns of text that are hardest to spare. */
    .sul-card {
        border-left: none;
        border-right: none;
        border-radius: 0;
        margin-left: calc(var(--sul-spacing-base) * -1);
        margin-right: calc(var(--sul-spacing-base) * -1);
    }

    .sul-shell { padding-left: var(--sul-spacing-base); padding-right: var(--sul-spacing-base); }

    /* Actions stack and fill the width. Two buttons side by side at this width
       are each too narrow to read and too close together to hit. */
    .sul-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 0 var(--sul-card-padding-h);
    }

    .sul-actions__group {
        flex-direction: column;
        align-items: stretch;
    }

    .sul-actions .sul-button { width: 100%; }

    /* The connection and target rows put their actions on their own line rather
       than squeezing beside a wrapping account name. */
    .sul-connection,
    .sul-target {
        align-items: flex-start;
    }

    .sul-connection form,
    .sul-target form {
        flex: 1 1 100%;
    }

    .sul-connection .sul-button,
    .sul-target .sul-button {
        width: 100%;
    }

    /* The month controls need to stay on one line and stay tappable. */
    .sul-monthnav .sul-button {
        padding-left: var(--sul-spacing-base);
        padding-right: var(--sul-spacing-base);
    }

    /* iOS zooms the page when a focused input's font is below 16px. The zoom
       does not reverse on blur, so one tap on a text field leaves the customer
       scrolled sideways for the rest of the session. */
    .sul-input { font-size: var(--sul-font-base); }
}

/* --- Composer counter (SC-61) ---------------------------------------------
   Counts against the TIGHTEST limit of the platforms actually selected, so the
   number means something: 2,200 when Instagram is ticked, and nothing useful
   when only Facebook's 63,206 applies.

   Empty until sul-compose.js fills it, so it occupies no space with JS off
   rather than showing a stale or meaningless number. */
.sul-counter {
    padding: 0 var(--sul-card-padding-h);
    text-align: right;
    font-size: var(--sul-font-xs);
    color: var(--sul-muted);
    font-variant-numeric: tabular-nums;
}

/* Set as an attribute by the script so the colour stays in the stylesheet where
   the design audit can see it. */
.sul-counter[data-over] {
    color: var(--sul-danger);
    font-weight: 700;
}

/* A region being refreshed. Dimmed rather than replaced with a spinner: the
   previous content is still the best guess at what is coming, and a flash of
   empty space reads as breakage. */
[aria-busy="true"] {
    opacity: 0.6;
    /* A DURATION, not a spacing token. This read var(--sul-spacing-xxs) — 2px — which is not
       a <time>, so the shorthand was invalid and the fade never ran. */
    transition: opacity var(--sul-transition-fast) ease-in;
}

/* Anyone who has asked not to see motion gets the state change with no fade. */
@media (prefers-reduced-motion: reduce) {
    [aria-busy="true"] { transition: none; }
}

/* ==========================================================================
   Insights (S8). Reuses the card and row patterns; the only new shapes are the
   stat strip and the footnote.
   ========================================================================== */

.sul-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sul-spacing-base);
    padding: 0 var(--sul-card-padding-h) var(--sul-spacing-lg);
}

.sul-stat {
    flex: 1 1 var(--sul-desktop-connection-detail-min);
    display: flex;
    flex-direction: column;
    gap: var(--sul-spacing-xxs);
    padding: var(--sul-spacing-base);
    background: var(--sul-surface);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-card-radius);
}

.sul-stat__value {
    font-size: var(--sul-metric-number-size);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: var(--sul-tracking-tight);
}

.sul-stat__label {
    font-size: var(--sul-metric-label-size);
    color: var(--sul-muted);
}

/* Insights only (SC-113 revamp): the shared sul-stat/StatTagHelper tile always renders
   value-THEN-label, in that visual order, and is reused unchanged on Business Home and both
   Admin dashboards -- restyling .sul-stat__label itself (case, weight) would silently restyle
   every one of those. Insights writes its OWN tile markup rather than <sul-stat>, label first,
   so this scopes an uppercase-caption treatment to just this page's tiles without touching the
   shared component's contract. */
.sul-insights-stat__label {
    display: block;
    font-size: var(--sul-metric-label-size);
    font-weight: 600;
    color: var(--sul-muted);
    text-transform: uppercase;
    letter-spacing: var(--sul-tracking-tight);
    margin-bottom: var(--sul-spacing-xxs);
}

/* A short explanatory line under a tile's value -- "4 to Instagram & Facebook, 2 to Google",
   "Meta usually reports reach within 48 hours". Smaller and quieter than __label: a caption
   names the metric, a note explains THIS tile's particular number or its absence. */
.sul-stat__note {
    margin: 0;
    font-size: var(--sul-font-xs);
    color: var(--sul-muted);
}

/* Direction is an attribute rather than a colour set inline, so the styling stays
   where the design audit can see it -- and the delta carries a SIGN as well as a
   colour, which is what makes it readable to anyone who cannot distinguish the two. */
.sul-stat__delta { font-size: var(--sul-font-xs); font-weight: 500; }
.sul-stat__delta[data-direction="up"]   { color: var(--sul-success-dark); }
.sul-stat__delta[data-direction="down"] { color: var(--sul-danger); }

/* Where a combined figure appears it is defined in a footnote or it does not ship.
   This is that footnote. */
.sul-footnote {
    padding: 0 var(--sul-card-padding-h);
    margin: 0 0 var(--sul-spacing-lg);
    font-size: var(--sul-font-xs);
    color: var(--sul-muted);
}

/* ==========================================================================
   Published posts (SC-141): the picture above the title, not a small mark
   beside it -- a customer scanning a wall of cards recognises a post by its
   photo before its caption. Full-bleed inside the card, ABOVE the header
   (CLAUDE.md rule 2 still holds: sul-card-header is the first CHILD once
   there is one, but a card may open with non-header content sitting over it).
   ========================================================================== */
.sul-post-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--sul-background);
}

/* No photo attached: the same tinted square every empty-media state in the
   product uses, carrying a neutral glyph rather than a blank hole in the grid. */
.sul-post-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sul-placeholder);
}

.sul-post-thumb--placeholder svg {
    width: var(--sul-avatar-lg);
    height: var(--sul-avatar-lg);
}

/* A small SQUARE thumbnail for a table row -- Insights' "Your posts" -- where .sul-post-thumb's
   full-width 4:3 card image would blow out the row height. Sized like the platform mark beside
   it (avatar-md) so the two read as one unit rather than two different scales in the same cell. */
.sul-table__thumb {
    display: block;
    width: var(--sul-avatar-md);
    height: var(--sul-avatar-md);
    border-radius: var(--sul-radius-sm);
    object-fit: cover;
    background: var(--sul-background);
    flex-shrink: 0;
}

.sul-table__thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sul-placeholder);
}

.sul-table__thumb--placeholder svg {
    width: 60%;
    height: 60%;
}

/* Four boxed tiles (likes/comments/reach/shares), replacing the old prose sentence for a
   Google-only post (which reports no per-post numbers at all) -- a null metric still renders
   as "–" via InsightsPresentation's null-safety rule rather than a fabricated 0; the dash
   itself is the "nothing reported yet" signal, so no separate sentence repeats it. Distinct
   from the unrelated .sul-metric/.sul-metric__value pair the Admin cost report already owns --
   named -tile throughout so the two can never be confused for one component. */
.sul-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sul-spacing-sm);
    padding: 0 var(--sul-card-padding-h) var(--sul-spacing-base);
}

.sul-metric-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sul-spacing-xxs);
    padding: var(--sul-spacing-sm);
    background: var(--sul-background);
    border-radius: var(--sul-radius-base);
    text-align: center;
}

.sul-metric-tile__value {
    display: inline-flex;
    align-items: center;
    gap: var(--sul-spacing-xs);
    font-size: var(--sul-metric-number-size);
    font-weight: 700;
    color: var(--sul-text);
    font-variant-numeric: tabular-nums;
}

.sul-metric-tile__icon {
    width: var(--sul-font-lg);
    height: var(--sul-font-lg);
    flex-shrink: 0;
    color: var(--sul-muted);
}

.sul-metric-tile__label {
    font-size: var(--sul-metric-label-size);
    color: var(--sul-muted);
    text-transform: uppercase;
}

.sul-post-actions {
    display: flex;
    gap: var(--sul-spacing-sm);
    padding: 0 var(--sul-card-padding-h) var(--sul-card-padding-v);
}

.sul-post-actions__view {
    flex: 1 1 auto;
}

/* ==========================================================================
   Popup mode.

   Connecting an account happens in a narrow popup, and that window shows pages —
   the account chooser, the connections page on the way back — that normally
   carry the whole app chrome. A sidebar is navigation for a window the customer
   cannot navigate, and at that width the rail would take most of the room the
   chooser needs.

   Set by sul-connect.js on the root element, and only when the window really is
   our popup (it checks window.name AND a live opener). A page opened any other
   way is unaffected, so this cannot leak into the normal layout.
   ========================================================================== */

.sul-in-popup .sul-topbar,
.sul-in-popup .sul-nav,
.sul-in-popup .sul-skip {
    display: none;
}

/* The rail offset goes with the rail. Without this the content keeps a
   sidebar-width gap on the left of a window that has no sidebar. */
.sul-in-popup .sul-appmain,
.sul-in-popup.sul-body--with-nav .sul-appmain {
    padding-left: 0;
}

.sul-in-popup .sul-shell {
    padding-top: var(--sul-spacing-lg);
    padding-bottom: var(--sul-spacing-lg);
}

/* ==========================================================================
   Sign-in: tabs and the phone field.

   Used by the React login island. The island imports no CSS of its own and
   declares no colours — it reuses these classes, so the one screen written in
   a different technology cannot drift from the design system, and rule 1 holds
   there exactly as it does here.
   ========================================================================== */

.sul-tabs {
    display: flex;
    gap: var(--sul-spacing-xs);
    padding: var(--sul-spacing-xxs);
    background: var(--sul-background);
    border-radius: var(--sul-radius-lg);
}

.sul-tabs__tab {
    flex: 1;
    padding: var(--sul-spacing-compact) var(--sul-spacing-base);
    border: var(--sul-card-border) solid transparent;
    border-radius: var(--sul-radius-base);
    background: transparent;
    color: var(--sul-text-secondary);
    font-family: inherit;
    font-size: var(--sul-font-sm);
    font-weight: 600;
    cursor: pointer;
}

/* Current state carries weight AND a surface, never colour alone — the same
   accessibility floor the nav follows. */
.sul-tabs__tab--current {
    background: var(--sul-surface);
    color: var(--sul-text);
    border-color: var(--sul-border);
}

.sul-tabs__tab:focus-visible {
    outline: var(--sul-spacing-xxs) solid var(--sul-focus);
    outline-offset: var(--sul-spacing-xxs);
}

/* A platform tab carries an icon before its label — every other .sul-tabs__tab is text-only, so
   this only changes layout for the one that has a .sul-platform-icon child rather than every tab
   everywhere. */
.sul-tabs__tab:has(.sul-platform-icon) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sul-spacing-xs);
}

/* Marks a platform tab that already has its own text picked, now that picking one platform no
   longer closes the whole dialog — otherwise there is no way to tell, mid-dialog, which
   platforms still have nothing chosen at all. */
.sul-tabs__tab-check {
    color: var(--sul-success);
    font-weight: 700;
}

/* The country select sizes to its content and the number takes the rest. A
   fixed width here would clip a longer dial code on a narrow phone. */
.sul-phone {
    display: flex;
    gap: var(--sul-spacing-sm);
}

.sul-phone__country {
    flex: 0 0 auto;
    width: auto;
}

/* A button that reads as a link — for "use a different number", which is a
   change of mind rather than an action worth a button's weight. */
.sul-linkbutton {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: var(--sul-font-sm);
    color: var(--sul-link);
    text-decoration: underline;
    cursor: pointer;
}

/* The "Enter the Nth symbol" captcha gating the sign-in form. The image and its action buttons
   sit in one row, same shape .sul-phone already uses for country + number: the image takes the
   space it needs and the button column sizes to its own content. */
.sul-captcha {
    display: flex;
    gap: var(--sul-spacing-sm);
    align-items: center;
}

.sul-captcha__image {
    border-radius: var(--sul-radius-lg);
    border: var(--sul-card-border) solid var(--sul-border);
    flex: 0 0 auto;
}

/* Refresh and (when the browser can speak) the audio-alternative button stack in their own
   narrow column beside the image, rather than widening the row — two square actions read as a
   pair here the same way .sul-phone's country select and number field read as one control. */
.sul-captcha__actions {
    display: flex;
    flex-direction: column;
    gap: var(--sul-spacing-sm);
    flex: 0 0 auto;
}

.sul-captcha__refresh {
    flex: 0 0 auto;
    padding: var(--sul-spacing-sm) var(--sul-spacing-base);
    border-radius: var(--sul-radius-lg);
    border: var(--sul-card-border) solid var(--sul-border);
    background: var(--sul-surface);
    color: var(--sul-text);
    font-size: var(--sul-font-base);
    line-height: 1;
    cursor: pointer;
}

/* A sibling of .sul-captcha, not a flex child of it — margin-top ties it visually to the image
   row above rather than reading as an unrelated field the same way every other .sul-input on
   this form does. */
.sul-captcha__answer {
    margin-top: var(--sul-spacing-sm);
}

/* The one-time-code step's six-digit entry. Six separate boxes rather than one wide .sul-input:
   a phone's OTP autofill and a person typing digit-by-digit both read far more clearly as "one
   character per box" than as a single field where the eye has to count characters to check
   progress. Fixed at six because that is the shape the product's own OTP screen shows; a real
   provider that ever issues a different length needs its own follow-up, not a guess here. */
.sul-otp-boxes {
    display: flex;
    gap: var(--sul-spacing-sm);
}

.sul-otp-boxes__digit {
    width: var(--sul-spacing-3xl);
    height: calc(var(--sul-spacing-3xl) * 1.25);
    padding: 0;
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-lg);
    background: var(--sul-surface);
    color: var(--sul-text);
    font-family: inherit;
    font-size: var(--sul-font-xl);
    font-weight: 600;
    text-align: center;
    /* tabular-nums keeps a freshly-typed "1" from being a hair narrower than the "8" beside it,
       which otherwise makes the row of boxes look unevenly spaced as it fills in. */
    font-variant-numeric: tabular-nums;
}

.sul-otp-boxes__digit:focus-visible {
    outline: var(--sul-spacing-xxs) solid var(--sul-focus);
    outline-offset: var(--sul-spacing-xxs);
}

/* The dev-mode callout on the code step ("nothing is actually sent, your code is 123456"). Its
   own pastel box rather than a .sul-field__hint sentence: that hint colour (--sul-muted) reads as
   routine copy, and a fact this operationally important — the whole reason the flow can be
   exercised at all without a real inbox — needs to look like a mode the environment is in, not a
   passing remark. --sul-pastel-warning/--sul-warning-dark is the same pairing the "needs
   reconnecting" pill already uses for "pay attention to this." */
.sul-devnotice {
    display: flex;
    align-items: baseline;
    gap: var(--sul-spacing-xs);
    padding: var(--sul-spacing-sm) var(--sul-spacing-base);
    background: var(--sul-pastel-warning);
    border-radius: var(--sul-radius-lg);
    font-size: var(--sul-font-xs);
    color: var(--sul-warning-dark);
}

.sul-devnotice__tag {
    flex: 0 0 auto;
    font-size: var(--sul-font-2xs);
    font-weight: 700;
    letter-spacing: var(--sul-tracking-tight);
    text-transform: uppercase;
}

.sul-devnotice code {
    padding: 0 var(--sul-spacing-xs);
    background: var(--sul-surface);
    border-radius: var(--sul-radius-sm);
    font-weight: 700;
}

/* ==========================================================================
   PUBLIC CHROME — the header and footer the marketing pages get instead of
   .sul-topbar (design board sections 04-06 and 16, revamped with the home page).

   Why a separate family rather than a modifier on .sul-topbar: the two headers
   share a brand mark and nothing else. The topbar's job is to carry the
   business switcher, the bell and sign-out, and it is laid out around them —
   a spacer that pushes three controls right, a switcher with its own width
   ceiling. Strip all three and what is left is not a simplified topbar, it is
   a different bar that happens to start with the same logo.

   Rendered from _Layout.cshtml on ViewData["Chrome"]. See _PublicHeader.cshtml
   for why that is opt-in.
   ========================================================================== */

/* Sticky, because the page is long and "Sign in" / "Start free trial" are the
   two things a visitor reaches for from anywhere on it. */
.sul-publicnav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--sul-surface);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-publicnav__inner {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-2xl);
    max-width: var(--sul-desktop-content-max);
    margin: 0 auto;
    padding: var(--sul-spacing-sm) var(--sul-card-padding-h);
    min-height: var(--sul-desktop-topbar-height);
}

.sul-publicnav__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--sul-spacing-sm);
    color: var(--sul-text);
    font-size: var(--sul-font-base);
    font-weight: 800;
    letter-spacing: var(--sul-tracking-tight);
    text-decoration: none;
    white-space: nowrap;
}

.sul-publicnav__product { font-weight: 500; color: var(--sul-muted); }

/* Slice 31: Sulekha's own SVGs. The full logo (emblem and wordmark) on wide screens, the emblem on phones, each beside
   the product name. The hidden one is display: none, so the brand link's name stays "Sulekha Social Connect". */
.sul-publicnav__logo { display: block; }
.sul-publicnav__emblem { display: none; }

/* Breakpoint literal: @media cannot read a custom property. 640 is breakpoint.mobile-max. */
@media (max-width: 640px) {
    .sul-publicnav__logo { display: none; }
    .sul-publicnav__emblem { display: block; }
}

.sul-publicnav__spacer { flex: 1 1 auto; }

.sul-publicnav__links {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-2xl);
}

/* TEAL, not orange. The board adds one hue for exactly this: secondary actions,
   links and caption tabs, so that orange stays the brand and the one orange
   thing on the header is the action the page is actually asking for. */
.sul-publicnav__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--sul-control-touch-min);
    color: var(--sul-secondary-text);
    font-size: var(--sul-font-sm);
    font-weight: 600;
    text-decoration: none;
}

.sul-publicnav__link:hover { color: var(--sul-secondary-hover); text-decoration: underline; }

.sul-publicnav__cta { min-height: var(--sul-control-touch-min); }

/* --- Sign in menu ------------------------------------------------------------
   A native <details>: it opens and closes with no script and no CSP change, the
   same choice the console's avatar menu made. Two doors, a business owner's and
   staff's, each with a sentence saying who it is for. */
.sul-signmenu { position: relative; }

.sul-signmenu__toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--sul-spacing-xs);
    min-height: var(--sul-control-touch-min);
    padding: 0 var(--sul-spacing-xs);
    border-radius: var(--sul-radius-lg);
    color: var(--sul-text);
    font-size: var(--sul-font-sm);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.sul-signmenu__toggle::-webkit-details-marker { display: none; }

.sul-signmenu__toggle .sul-homeicon {
    width: var(--sul-spacing-base);
    height: var(--sul-spacing-base);
    transition: transform var(--sul-transition-fast) ease;
}

.sul-signmenu[open] .sul-signmenu__toggle .sul-homeicon { transform: rotate(180deg); }

.sul-signmenu__menu {
    position: absolute;
    right: 0;
    top: calc(100% + var(--sul-spacing-sm));
    z-index: 30;
    width: calc(var(--sul-desktop-card-min) - var(--sul-spacing-lg));
    max-width: calc(100vw - 2 * var(--sul-card-padding-h));
    padding: var(--sul-spacing-sm);
    background: var(--sul-surface);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-xl);
    box-shadow: var(--sul-shadow-lg);
}

.sul-signmenu__item {
    display: flex;
    align-items: flex-start;
    gap: var(--sul-spacing-base);
    padding: var(--sul-spacing-compact);
    border-radius: var(--sul-radius-lg);
    color: var(--sul-text);
    text-decoration: none;
}

.sul-signmenu__item:hover { background: var(--sul-background); }

.sul-signmenu__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: var(--sul-avatar-md);
    height: var(--sul-avatar-md);
    border-radius: var(--sul-radius-lg);
}

/* -strong, not -action: this text sits on the orange tint, where -action fails. */
.sul-signmenu__icon--business { background: var(--sul-pastel-primary); color: var(--sul-primary-action-strong); }
.sul-signmenu__icon--staff { background: var(--sul-secondary-bg); color: var(--sul-secondary-text); }

.sul-signmenu__name { display: block; font-size: var(--sul-font-sm); font-weight: 600; }

.sul-signmenu__hint {
    display: block;
    font-size: var(--sul-font-xs);
    line-height: 1.4;
    color: var(--sul-muted);
}

.sul-signmenu__rule {
    border: 0;
    border-top: var(--sul-card-border) solid var(--sul-border);
    margin: var(--sul-spacing-xs);
}

/* Below the phone breakpoint the section links go, and so does the header's
   trial button: the brand, "Sign in" and the button do not fit on a phone, and
   the hero's own "Start free trial" is the first thing under the header. Not a
   hamburger: every section link is in the page body and the footer, so a menu
   would be a control built to hide links somebody meets again in one screenful.

   Breakpoint literal: @media cannot read a custom property. See
   breakpoint.mobile-max in tokens.json — change both together. */
@media (max-width: 640px) {
    .sul-publicnav__links,
    .sul-publicnav__cta { display: none; }
    .sul-publicnav__inner { gap: var(--sul-spacing-sm); }
}

.sul-publicfoot {
    border-top: var(--sul-card-border) solid var(--sul-border);
    margin-top: calc(var(--sul-spacing-3xl) * 2.5);
    background: var(--sul-surface);
}

.sul-publicfoot__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sul-spacing-2xl);
    max-width: var(--sul-desktop-content-max);
    margin: 0 auto;
    padding: calc(var(--sul-spacing-3xl) + var(--sul-spacing-sm)) var(--sul-card-padding-h);
}

.sul-publicfoot__about { max-width: var(--sul-desktop-column-max); }

.sul-publicfoot__brand { font-size: var(--sul-font-sm); }

.sul-publicfoot__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sul-spacing-xs) var(--sul-spacing-xl);
}

.sul-publicfoot__link {
    display: inline-flex;
    align-items: center;
    gap: var(--sul-spacing-xs);
    min-height: var(--sul-control-touch-min);
    color: var(--sul-secondary-text);
    font-size: var(--sul-font-sm);
    font-weight: 600;
    text-decoration: none;
}

.sul-publicfoot__link .sul-homeicon { width: var(--sul-spacing-base); height: var(--sul-spacing-base); }

.sul-publicfoot__link:hover { color: var(--sul-secondary-hover); text-decoration: underline; }

/* The trademark line, quieter than anything around it. It is a legal
   obligation rather than something anybody came here to read. */
.sul-publicfoot__line {
    margin: var(--sul-spacing-sm) 0 0;
    font-size: var(--sul-font-xs);
    color: var(--sul-muted);
}

/* ==========================================================================
   Marketing home page (social-home-revamp). Five blocks: a hero carrying the
   one-post-to-three example, "How it works" with each benefit under its step,
   Insights beside the honesty example, three audiences each with its own way
   in, and a closing call to action. Sign-in has its own page (IndexModel's doc
   comment has the reasoning). One column on a phone, the design's columns from
   the sidebar breakpoint up.

   EVERY BORDERED BOX HERE IS A CARD AND TAKES CARD PADDING (rule 2). The design
   file drew them with roomier padding; the space between them comes from the
   grid gaps instead.
   ========================================================================== */

/* The page's own line icons (_HomeIcon.cshtml). Sized by whoever holds them;
   this is the default for an icon beside body text. */
.sul-homeicon {
    flex: none;
    width: var(--sul-spacing-xl);
    height: var(--sul-spacing-xl);
}

/* The page's button size: a touch target and body-size text, bigger than the
   app's form buttons because these are read at arm's length. */
.sul-button--hero {
    min-height: var(--sul-control-touch-min);
    padding: 0 var(--sul-spacing-xl);
    font-size: var(--sul-font-base);
    white-space: nowrap;
}

.sul-button--secondary.sul-button--hero:hover { border-color: var(--sul-text); }

/* --- Hero ------------------------------------------------------------------- */
.sul-hero {
    display: grid;
    gap: calc(var(--sul-spacing-3xl) + var(--sul-spacing-2xl));
    align-items: center;
    padding: calc(var(--sul-spacing-3xl) + var(--sul-spacing-sm)) var(--sul-card-padding-h);
}

/* ONE RULE, NO BREAKPOINT. The headline just wants to be as big as the line
   will allow, from 4xl on a phone to 6xl on a laptop. text-wrap: balance stops a
   long headline leaving one word alone on its last line. */
.sul-hero__title {
    margin: 0;
    font-size: clamp(var(--sul-font-4xl), 4.6vw, var(--sul-font-6xl));
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: var(--sul-tracking-tighter);
    text-wrap: balance;
}

/* primary-action, never the brand primary: orange TEXT on a light page needs the
   4.69:1 step (CLAUDE.md, accessibility floor). */
.sul-hero__accent { color: var(--sul-primary-action); }

.sul-hero__lede {
    max-width: 52ch;
    margin: var(--sul-spacing-xl) 0 var(--sul-spacing-2xl);
    font-size: var(--sul-font-lg);
    color: var(--sul-muted);
}

.sul-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-base); }

.sul-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sul-spacing-sm) var(--sul-spacing-lg);
    margin: var(--sul-spacing-lg) 0 0;
    padding: 0;
    list-style: none;
    font-size: var(--sul-font-sm);
    color: var(--sul-muted);
}

.sul-hero__trust-item { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); }

.sul-hero__trust-item .sul-homeicon {
    width: var(--sul-spacing-lg);
    height: var(--sul-spacing-lg);
    color: var(--sul-success-dark);
}

/* --- The one-post-to-three example ------------------------------------------
   Drawn in the product's own components rather than as an image: it stays true
   when the components change, it reads on a phone, and it costs no download. */
.sul-postdemo {
    margin: 0;
    padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
    background: var(--sul-surface);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-2xl);
    box-shadow: var(--sul-shadow-lg);
}

.sul-postdemo__composer {
    padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-card-radius);
}

.sul-postdemo__who {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-compact);
    font-size: var(--sul-font-sm);
    font-weight: 600;
}

.sul-postdemo__avatar {
    display: grid;
    place-items: center;
    width: var(--sul-spacing-3xl);
    height: var(--sul-spacing-3xl);
    border-radius: var(--sul-radius-lg);
    background: var(--sul-pastel-primary);
    color: var(--sul-primary-action-strong);
}

.sul-postdemo__avatar .sul-homeicon { width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); }

.sul-postdemo__sub {
    display: block;
    font-size: var(--sul-font-xs);
    font-weight: 400;
    color: var(--sul-muted);
}

.sul-postdemo__caption {
    margin: var(--sul-spacing-base) 0 0;
    font-size: var(--sul-font-base);
    line-height: 1.5;
}

/* The dashed fan-out from one post to three. A connector, not data, so it is
   drawn in the border colour and hidden from assistive technology. */
.sul-postdemo__flow {
    display: block;
    width: 100%;
    height: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xxs));
    margin: var(--sul-spacing-compact) 0;
    color: var(--sul-border);
}

.sul-postdemo__targets {
    display: grid;
    gap: var(--sul-spacing-sm);
    margin: 0;
    padding: 0;
    list-style: none;
}

.sul-postdemo__target {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-base);
    padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-lg);
}

.sul-postdemo__name { flex: 1 1 auto; font-size: var(--sul-font-sm); font-weight: 500; }

/* --- Bands, and the heading each one opens with ------------------------------ */
.sul-homeband {
    padding: calc(var(--sul-spacing-3xl) * 1.75) var(--sul-card-padding-h);
}

/* FULL-BLEED without leaving the shell. The shell caps the content width, and
   a 100vw box would add a horizontal scrollbar wherever the page has a vertical
   one; a spread shadow clipped to the band's own height paints the edges
   instead and lays out nothing. */
.sul-homeband--alt {
    background: var(--sul-surface);
    box-shadow: 0 0 0 100vmax var(--sul-surface);
    clip-path: inset(0 -100vmax);
}

.sul-homehead {
    max-width: var(--sul-desktop-column-max);
    margin: 0 0 calc(var(--sul-spacing-2xl) + var(--sul-spacing-lg));
}

.sul-homehead--start { margin-bottom: 0; }

.sul-homehead__eyebrow {
    margin: 0 0 var(--sul-spacing-compact);
    font-size: var(--sul-font-xs);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sul-primary-action);
}

.sul-homehead__title {
    margin: 0;
    font-size: clamp(var(--sul-font-3xl), 3.4vw, var(--sul-font-5xl));
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: var(--sul-tracking-tighter);
    text-wrap: balance;
}

.sul-homehead__lede {
    margin: var(--sul-spacing-base) 0 0;
    font-size: var(--sul-font-lg);
    color: var(--sul-muted);
}

/* --- How it works: steps and features merged ---------------------------------- */
.sul-homesteps {
    display: grid;
    gap: var(--sul-spacing-xl);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* On the white band, so the card takes the page background to stay a card. */
.sul-homestep {
    padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
    background: var(--sul-background);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-2xl);
}

.sul-homestep__n {
    display: grid;
    place-items: center;
    width: var(--sul-avatar-md);
    height: var(--sul-avatar-md);
    margin-bottom: var(--sul-spacing-lg);
    border-radius: var(--sul-radius-pill);
    background: var(--sul-primary-action);
    color: var(--sul-surface);
    font-weight: 700;
}

.sul-homestep__title {
    margin: 0 0 var(--sul-spacing-sm);
    font-size: var(--sul-font-xl);
    font-weight: 700;
}

.sul-homestep__text {
    margin: 0 0 var(--sul-spacing-lg);
    font-size: var(--sul-font-sm);
    color: var(--sul-muted);
}

/* A rule between the step and its benefits, not a gap - DESIGN-SYSTEM section 4. */
.sul-homestep__points {
    display: grid;
    gap: var(--sul-spacing-compact);
    margin: 0;
    padding: var(--sul-spacing-lg) 0 0;
    border-top: var(--sul-card-border) solid var(--sul-border);
    list-style: none;
}

.sul-homestep__point {
    display: flex;
    gap: var(--sul-spacing-compact);
    font-size: var(--sul-font-sm);
    line-height: 1.45;
}

.sul-homestep__point .sul-homeicon {
    width: var(--sul-font-lg);
    height: var(--sul-font-lg);
    margin-top: var(--sul-spacing-xxs);
    color: var(--sul-primary-action);
}

.sul-homestep__point strong { font-weight: 600; }

/* --- Insights ---------------------------------------------------------------- */
.sul-homesplit {
    display: grid;
    gap: calc(var(--sul-spacing-3xl) + var(--sul-spacing-2xl));
    align-items: center;
}

.sul-homenote {
    display: flex;
    align-items: flex-start;
    gap: var(--sul-spacing-compact);
    margin: var(--sul-spacing-xl) 0 0;
    padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
    background: var(--sul-surface);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-xl);
    font-size: var(--sul-font-sm);
    color: var(--sul-muted);
}

.sul-homenote .sul-homeicon { color: var(--sul-primary-action); }

/* --- The honesty example ------------------------------------------------------
   THE THREE STATES ARE THE POINT. A measured zero is a number in full ink; an
   absence is a sentence in a muted pill, and "withheld" and "not in yet" read
   differently from each other. They must not look alike, because looking alike
   is the defect this example exists to argue against. */
.sul-honesty {
    overflow: hidden;
    background: var(--sul-surface);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-2xl);
}

.sul-honesty__caption {
    display: flex;
    justify-content: space-between;
    gap: var(--sul-spacing-base);
    margin: 0;
    padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
    font-size: var(--sul-font-sm);
    font-weight: 600;
}

.sul-honesty__example { font-weight: 500; color: var(--sul-muted); }

.sul-honesty__list { margin: 0; padding: 0; list-style: none; }

/* :first-child rather than :last-child so the list never ends on a dangling line. */
.sul-honesty__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sul-spacing-lg);
    padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
    border-top: var(--sul-card-border) solid var(--sul-border);
    font-size: var(--sul-font-base);
}

.sul-honesty__row:first-child { border-top: 0; }

/* FULL INK WEIGHT. This is where a measured zero lives, and it is a number. */
.sul-honesty__value {
    font-size: var(--sul-font-xl);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.sul-honesty__absent {
    padding: var(--sul-spacing-xxs) var(--sul-spacing-compact);
    border-radius: var(--sul-radius-pill);
    background: var(--sul-background);
    color: var(--sul-muted);
    font-size: var(--sul-font-xs);
    font-weight: 600;
    white-space: nowrap;
}

/* warning-dark on its pastel, not warning: the amber is 2.16:1 as text. */
.sul-honesty__absent--pending { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }

/* --- Who it's for: three arrivals, each with its own next step ----------------- */
.sul-homeaud {
    display: grid;
    gap: var(--sul-spacing-xl);
}

.sul-homeaud__card {
    display: flex;
    flex-direction: column;
    padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
    background: var(--sul-background);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-2xl);
}

.sul-homeaud__icon {
    display: grid;
    place-items: center;
    width: var(--sul-avatar-lg);
    height: var(--sul-avatar-lg);
    margin-bottom: var(--sul-spacing-lg);
    border-radius: var(--sul-radius-xl);
    background: var(--sul-pastel-primary);
    color: var(--sul-primary-action-strong);
}

.sul-homeaud__title {
    margin: 0 0 var(--sul-spacing-sm);
    font-size: var(--sul-font-lg);
    font-weight: 700;
}

.sul-homeaud__text {
    flex: 1 1 auto;
    margin: 0 0 var(--sul-spacing-lg);
    font-size: var(--sul-font-sm);
    color: var(--sul-muted);
}

/* TEAL: a link, not the page's main action. */
.sul-homeaud__link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: var(--sul-control-touch-min);
    color: var(--sul-secondary-text);
    font-size: var(--sul-font-sm);
    font-weight: 600;
    text-decoration: none;
}

.sul-homeaud__link:hover { color: var(--sul-secondary-hover); text-decoration: underline; }

/* --- Final CTA --------------------------------------------------------------------
   Inverted: the text colour as the background. That pair flips in dark mode on its
   own, so the block stays the page's strongest contrast either way. */
.sul-homecta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sul-spacing-2xl);
    margin: calc(var(--sul-spacing-3xl) * 1.75) var(--sul-card-padding-h) 0;
    padding: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xs));
    border-radius: var(--sul-radius-3xl);
    background: var(--sul-text);
    color: var(--sul-background);
}

.sul-homecta__title {
    margin: 0;
    font-size: clamp(var(--sul-font-3xl), 3vw, var(--sul-font-4xl));
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: var(--sul-tracking-tighter);
}

.sul-homecta__text { margin: var(--sul-spacing-sm) 0 0; color: var(--sul-disabled); }

.sul-homecta__actions { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-base); }

.sul-homecta__ghost {
    background: transparent;
    color: inherit;
    border-color: var(--sul-muted);
}

.sul-homecta__ghost:hover { border-color: var(--sul-background); }

/* Breakpoint literal: @media cannot read a custom property. See
   breakpoint.sidebar-min in tokens.json - change both together. */
@media (min-width: 900px) {
    .sul-hero {
        grid-template-columns: 1.05fr 0.95fr;
        padding-top: calc(var(--sul-spacing-3xl) * 2.25);
        padding-bottom: calc(var(--sul-spacing-3xl) * 2);
    }
    .sul-homeband { padding-top: calc(var(--sul-spacing-3xl) * 2.5); padding-bottom: calc(var(--sul-spacing-3xl) * 2.5); }
    .sul-homesteps,
    .sul-homeaud { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sul-homesplit { grid-template-columns: 1fr 1fr; }
    .sul-homecta {
        margin-top: calc(var(--sul-spacing-3xl) * 2.5);
        padding: calc(var(--sul-spacing-3xl) + var(--sul-spacing-2xl));
    }
}

/* --- Shared with /pricing ---------------------------------------------------------
   Pricing.cshtml still builds its sections from these, so they stay as they were. */
.sul-homesection {
    padding: var(--sul-spacing-3xl) var(--sul-card-padding-h);
}

.sul-homesection__header {
    text-align: center;
    max-width: var(--sul-desktop-column-max);
    margin: 0 auto var(--sul-spacing-2xl);
}

/* The marketing scale, not the app's. 2xl (22px) is the biggest thing in the
   app and it is a card heading; a section title on a page read at arm's length
   is a different job. Clamped rather than stepped at a breakpoint, for the same
   reason as the hero. */
.sul-homesection__title {
    font-size: clamp(var(--sul-font-3xl), 3vw, var(--sul-font-4xl));
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: var(--sul-tracking-tight);
    margin: 0 0 var(--sul-spacing-sm);
    text-wrap: balance;
}

.sul-homesection__lede {
    margin: 0;
    color: var(--sul-muted);
    font-size: var(--sul-font-sm);
}

.sul-feature__title {
    font-size: var(--sul-font-lg);
    font-weight: 600;
    margin: var(--sul-spacing-base) 0 var(--sul-spacing-xs);
}

.sul-feature__text {
    margin: 0;
    font-size: var(--sul-font-sm);
    color: var(--sul-muted);
}

/* Three short answers in a row, each in a card with a teal edge. */
.sul-audiences {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--sul-desktop-card-min), 1fr));
    gap: var(--sul-spacing-lg);
    max-width: var(--sul-desktop-wide-max);
    margin: 0 auto;
}

.sul-audiences__item {
    border: var(--sul-card-border) solid var(--sul-border);
    border-left: var(--sul-spacing-xxs) solid var(--sul-secondary);
    border-radius: var(--sul-card-radius);
    background: var(--sul-surface);
    padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
}

.sul-audiences__item .sul-feature__title { margin-top: 0; }

/* --- Pricing cards ---------------------------------------------------------
   One product, one set of features; the only choice is how often you pay. So
   there is no "most popular" ribbon and no highlighted middle column - those
   exist to steer somebody between tiers, and there are no tiers here.

   The amount is the largest thing on the card because it is the one fact the
   visitor came for. Everything around it is quieter on purpose.
   -------------------------------------------------------------------------- */
.sul-priceplan__interval {
    margin: 0;
    font-size: var(--sul-font-micro);
    font-weight: 600;
    color: var(--sul-muted);
    text-transform: uppercase;
    letter-spacing: var(--sul-tracking-tight);
}

.sul-priceplan__amount {
    margin: var(--sul-spacing-xs) 0 0;
    font-size: var(--sul-font-3xl);
    font-weight: 700;
    letter-spacing: var(--sul-tracking-tighter);
    color: var(--sul-text);
}

.sul-priceplan__per {
    margin: 0;
    font-size: var(--sul-font-sm);
    color: var(--sul-text-secondary);
}

.sul-priceplan__tax {
    margin: var(--sul-spacing-sm) 0 var(--sul-spacing-base);
    font-size: var(--sul-font-xs);
    color: var(--sul-muted);
}

/* --- What is included ------------------------------------------------------
   A tick is drawn with ::before rather than with a character in the markup, so
   the same list can never end up with a tick in some items and not others - and
   so a screen reader reads the sentence rather than "check mark, Google
   Business Profile".
   -------------------------------------------------------------------------- */
.sul-included { list-style: none; margin: 0; padding: 0; }

.sul-included__item {
    position: relative;
    padding: var(--sul-card-padding-v) 0 var(--sul-card-padding-v) var(--sul-spacing-2xl);
    border-top: var(--sul-card-border) solid var(--sul-border);
    font-size: var(--sul-font-sm);
}

.sul-included__item:first-child { border-top: 0; }

/* --- Sign-in: one centred card ---------------------------------------------
   The card is a Razor element, not React's: #sul-login-root sits INSIDE it
   with the legal line after it, so the line is visually part of the card and
   still outside the node React replaces on mount.
   -------------------------------------------------------------------------- */
.sul-signin {
    max-width: var(--sul-desktop-signin-max);
    /* Tight on purpose: a laptop at 150% scaling leaves little height under
       the header, and Send code has to be visible without scrolling. */
    margin: var(--sul-spacing-base) auto 0;
    padding: var(--sul-spacing-xl) var(--sul-spacing-2xl);
    background: var(--sul-surface);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-2xl);
    box-shadow: var(--sul-shadow-md);
}

.sul-signin__title {
    margin: 0 0 var(--sul-spacing-xxs);
    font-size: var(--sul-font-xl);
    line-height: 1.25;
}

.sul-signin__lede {
    margin: 0 0 var(--sul-spacing-lg);
    font-size: var(--sul-font-sm);
    color: var(--sul-muted);
}

/* Mobile / Email as a segmented control rather than underline tabs: two
   equal choices of HOW, not two sections of a page. */
.sul-signin__seg {
    display: flex;
    padding: var(--sul-spacing-xxs);
    margin-bottom: var(--sul-spacing-lg);
    background: var(--sul-background);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-xl);
}

.sul-signin__seg-option {
    flex: 1;
    min-height: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xs));
    border: 0;
    border-radius: var(--sul-radius-lg);
    background: none;
    color: var(--sul-muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.sul-signin__seg-option[aria-selected="true"] {
    background: var(--sul-surface);
    color: var(--sul-text);
    box-shadow: var(--sul-shadow-sm);
}

.sul-signin__field { margin-bottom: var(--sul-spacing-base); }

.sul-signin__field .sul-field__label { display: block; margin-bottom: var(--sul-spacing-xs); }

.sul-signin__help {
    margin: var(--sul-spacing-xs) 0 0;
    font-size: var(--sul-font-xs);
    color: var(--sul-muted);
}

/* Country code and number as ONE bordered control, so the focus ring wraps
   both — they are one answer ("my number"), not two fields. */
.sul-signin__phone {
    display: flex;
    min-height: var(--sul-control-touch-min);
    overflow: hidden;
    background: var(--sul-surface);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-xl);
}

.sul-signin__phone:focus-within,
.sul-signin__input:focus,
.sul-signin__captcha-answer:focus {
    outline: var(--sul-spacing-xxs) solid var(--sul-focus);
    outline-offset: var(--sul-spacing-xxs);
}

.sul-signin__phone select {
    flex: 0 0 auto;
    padding: 0 var(--sul-spacing-sm) 0 var(--sul-spacing-base);
    border: 0;
    border-right: var(--sul-card-border) solid var(--sul-border);
    background: var(--sul-background);
    color: var(--sul-text);
    font: inherit;
    outline: none;
}

.sul-signin__phone input {
    flex: 1;
    min-width: 0;
    padding: 0 var(--sul-spacing-base);
    border: 0;
    background: none;
    color: var(--sul-text);
    font: inherit;
    font-size: var(--sul-font-base);
    outline: none;
}

.sul-signin__input {
    width: 100%;
    min-height: var(--sul-control-touch-min);
    padding: 0 var(--sul-spacing-base);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-xl);
    background: var(--sul-surface);
    color: var(--sul-text);
    font: inherit;
    font-size: var(--sul-font-base);
}

/* Image | refresh + listen | the one-letter answer, in one row. The row has a
   fixed height so the image's natural height cannot push Send code below
   the fold; cover crops only the empty margin above and below the letters. */
.sul-signin__captcha {
    display: flex;
    gap: var(--sul-spacing-sm);
    align-items: stretch;
    height: calc(var(--sul-control-touch-min) + var(--sul-spacing-base));
}

.sul-signin__help:empty { display: none; }

.sul-signin__captcha-image {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-xl);
}

.sul-signin__captcha-actions {
    display: flex;
    flex-direction: column;
    gap: var(--sul-spacing-xs);
}

.sul-signin__icon-button {
    flex: 1;
    /* Slice 41: holds a Lucide icon, centred. */
    display: inline-grid;
    place-items: center;
    min-width: var(--sul-spacing-3xl);
    padding: 0 var(--sul-spacing-sm);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-lg);
    background: var(--sul-surface);
    color: var(--sul-muted);
    line-height: 1;
    cursor: pointer;
}

.sul-signin__icon-button:hover { color: var(--sul-text); background: var(--sul-background); }

.sul-signin__nth {
    display: inline-block;
    margin: 0 var(--sul-spacing-xxs);
    padding: 0 var(--sul-spacing-xs);
    border-radius: var(--sul-radius-base);
    background: var(--sul-text);
    color: var(--sul-surface);
    font-size: var(--sul-font-xs);
    line-height: 1.6;
}

/* The answer box is the field — without a stronger edge it read as an empty
   panel next to the buttons, not as the place to type. */
.sul-signin__captcha-answer {
    flex: 0 0 auto;
    width: calc(var(--sul-spacing-3xl) * 2);
    border: var(--sul-spacing-xxs) solid var(--sul-primary-action);
    border-radius: var(--sul-radius-xl);
    background: var(--sul-pastel-primary);
    color: var(--sul-text);
    font: inherit;
    font-size: var(--sul-font-2xl);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.sul-signin__submit {
    width: 100%;
    min-height: var(--sul-control-touch-min);
    justify-content: center;
}

/* "Sent to +91 98765 43210 · Change" */
.sul-signin__sent {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-sm);
    padding: var(--sul-spacing-compact) var(--sul-spacing-base);
    margin-bottom: var(--sul-spacing-lg);
    background: var(--sul-background);
    border-radius: var(--sul-radius-xl);
    font-size: var(--sul-font-sm);
}

.sul-signin__sent strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }

.sul-signin__link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--sul-primary-action);
    font: inherit;
    font-size: var(--sul-font-sm);
    font-weight: 600;
    cursor: pointer;
}

.sul-signin__link:disabled { color: var(--sul-muted); cursor: default; }

/* The code boxes share the card's width rather than a fixed size each. */
.sul-signin .sul-otp-boxes { justify-content: space-between; }

.sul-signin .sul-otp-boxes__digit {
    flex: 1;
    min-width: 0;
    width: auto;
    height: calc(var(--sul-control-touch-min) + var(--sul-spacing-compact));
    border-radius: var(--sul-radius-xl);
}

.sul-signin__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--sul-spacing-compact);
    font-size: var(--sul-font-sm);
    color: var(--sul-muted);
}

.sul-signin .sul-devnotice { margin-bottom: var(--sul-spacing-lg); }

.sul-signin-terms {
    margin: var(--sul-spacing-lg) 0 0;
    text-align: center;
    font-size: var(--sul-font-xs);
    color: var(--sul-muted);
}

.sul-signin-terms a { color: var(--sul-text); }

@media (max-width: 640px) {
    .sul-signin {
        margin-top: var(--sul-spacing-base);
        padding: var(--sul-spacing-xl) var(--sul-spacing-lg);
    }
}

/* --- Legal: the numbered index --------------------------------------------
   The numbers come from the list itself, not from the markup - so a section
   inserted by legal renumbers everything after it without anybody editing a
   template. The anchors are a separate counter in LegalDocumentText and are
   deliberately NOT the visible numbers: an anchor has to survive a renumber.
   -------------------------------------------------------------------------- */
.sul-legalindex {
    margin: var(--sul-spacing-lg) 0 var(--sul-spacing-2xl);
    padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-card-radius);
    background: var(--sul-surface);
}

.sul-legalindex__list { margin: 0; padding-left: var(--sul-spacing-xl); }

.sul-legalindex__item { margin: var(--sul-spacing-xs) 0; font-size: var(--sul-font-sm); }

.sul-legalindex__link { color: var(--sul-secondary-text); }

.sul-included__item::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--sul-secondary-text);
    font-weight: 700;
}

/* ---------------------------------------------------------------------------
   Table — the support console's primary shape.

   The customer app has almost no tables: it shows a person their own handful of
   things, so cards and list rows fit. The support console is the opposite. An
   agent compares many rows of one kind — attempts, grants, webhook deliveries —
   and needs to scan a column, so a table is the honest control rather than a
   card list pretending to be one.

   Wrapped in .sul-tablewrap, which scrolls HORIZONTALLY on its own. Without it a
   wide table widens the page and the whole layout scrolls sideways on a phone,
   which is the one thing the rest of this stylesheet is careful to prevent.
   --------------------------------------------------------------------------- */
.sul-tablewrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sul-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--sul-font-sm);
}

.sul-table th,
.sul-table td {
    text-align: left;
    vertical-align: top;
    padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
    border-bottom: var(--sul-card-border) solid var(--sul-border);

    /* Support data is full of ids, timestamps and error codes. Wrapping them mid-token
       makes two rows look like four; the wrapper scrolls instead. */
    white-space: nowrap;
}

.sul-table th {
    font-size: var(--sul-font-xs);
    font-weight: 600;
    color: var(--sul-text-secondary);
}

.sul-table tbody tr:last-child td { border-bottom: none; }

/* Opt back in for the one or two columns that are prose — an error message, a
   reason-for-access. Those are read, not scanned. */
.sul-table__wrap {
    white-space: normal;
    min-width: var(--sul-desktop-connection-detail-min);
}

.sul-table__num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.sul-table__mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--sul-font-xs);
}

/* /admin/publish-attempts (migration 178): the attempts behind a dashboard Publishing count.
   Revamped 2026-11-04 to the publish-attempts design: platform header with a time range and CSV,
   a stat strip that is the filter, then one table card with a search box. */
.sul-pa { display: flex; flex-direction: column; gap: var(--sul-card-gap); }
.sul-pa__crumb { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-pa__crumb a { color: var(--sul-muted); text-decoration: none; }
.sul-pa__crumb a:hover, .sul-pa__crumb a:focus-visible { color: var(--sul-primary-action); text-decoration: underline; }

.sul-pa__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sul-spacing-lg); margin-bottom: var(--sul-spacing-sm); }
.sul-pa__title { display: flex; align-items: center; gap: var(--sul-spacing-base); min-width: 0; }
.sul-pa__title h1 { margin: 0; font-size: var(--sul-font-3xl); font-weight: 700; color: var(--sul-text); }
.sul-pa__title p { margin: var(--sul-spacing-xxs) 0 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-pa__plat { flex: none; display: grid; place-items: center; width: var(--sul-avatar-lg); height: var(--sul-avatar-lg); border-radius: var(--sul-radius-lg); background: var(--sul-surface); border: var(--sul-card-border) solid var(--sul-border); }
.sul-pa__plat .sul-platform-icon { width: var(--sul-avatar-sm); height: var(--sul-avatar-sm); }

.sul-pa__tools { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sul-spacing-sm); }
.sul-pa__seg { display: flex; padding: var(--sul-spacing-xxs); border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-pill); background: var(--sul-surface); }
.sul-pa__seg a { padding: var(--sul-spacing-xs) var(--sul-spacing-base); border-radius: var(--sul-radius-pill); font-size: var(--sul-font-xs); font-weight: 500; color: var(--sul-muted); text-decoration: none; white-space: nowrap; }
.sul-pa__seg a:hover { color: var(--sul-text); }
.sul-pa__seg a.is-on { background: var(--sul-pastel-primary); color: var(--sul-primary-action-strong); }
.sul-pa__btn { padding: var(--sul-spacing-xs) var(--sul-spacing-lg); border: var(--sul-card-border) solid var(--sul-primary-action); border-radius: var(--sul-radius-pill); font-size: var(--sul-font-sm); font-weight: 500; color: var(--sul-primary-action); text-decoration: none; white-space: nowrap; }
.sul-pa__btn:hover, .sul-pa__btn:focus-visible { background: var(--sul-selected-bg); }

.sul-pa__card { overflow: hidden; border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-card-radius); background: var(--sul-surface); }

.sul-pa__stats { display: flex; }
.sul-pa__stat { position: relative; flex: 1; padding: var(--sul-card-padding-v) var(--sul-card-padding-h); border-right: var(--sul-card-border) solid var(--sul-border); color: var(--sul-text); text-decoration: none; transition: background var(--sul-transition-fast); }
.sul-pa__stat:last-child { border-right: 0; }
.sul-pa__stat:hover { background: var(--sul-background); }
.sul-pa__stat.is-on { background: var(--sul-selected-bg); }
.sul-pa__stat.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--sul-spacing-xxs); background: var(--sul-primary); }
.sul-pa__stat b { display: block; font-size: var(--sul-metric-number-size); font-weight: 700; font-variant-numeric: tabular-nums; }
.sul-pa__stat span { font-size: var(--sul-metric-label-size); font-weight: 500; color: var(--sul-muted); text-transform: uppercase; letter-spacing: var(--sul-console-label-tracking); }
.sul-pa__n--success { color: var(--sul-success-dark); }
.sul-pa__n--danger { color: var(--sul-danger); }
.sul-pa__n--warning { color: var(--sul-warning-dark); }
.sul-pa__n--info { color: var(--sul-info-dark); }
.sul-pa__dot { display: inline-block; width: var(--sul-spacing-sm); height: var(--sul-spacing-sm); margin-right: var(--sul-spacing-xs); border-radius: var(--sul-radius-pill); vertical-align: baseline; }
.sul-pa__dot--success { background: var(--sul-success); }
.sul-pa__dot--danger { background: var(--sul-danger); }
.sul-pa__dot--warning { background: var(--sul-warning-dark); }
.sul-pa__dot--info { background: var(--sul-info-dark); }

.sul-pa__hdr { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sul-spacing-base); padding: var(--sul-card-header-pt) var(--sul-card-padding-h) var(--sul-card-header-pb); }
.sul-pa__hdr h2 { margin: 0; font-size: var(--sul-card-label-size); font-weight: 600; }
.sul-pa__search { position: relative; margin: 0; }
.sul-pa__search svg { position: absolute; left: var(--sul-spacing-sm); top: 50%; transform: translateY(-50%); color: var(--sul-placeholder); pointer-events: none; }
.sul-pa__search input[type="search"] { width: calc(var(--sul-spacing-3xl) * 8); max-width: 100%; padding: var(--sul-spacing-xs) var(--sul-spacing-compact) var(--sul-spacing-xs) var(--sul-spacing-3xl); border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-lg); background: var(--sul-background); font: inherit; font-size: var(--sul-font-sm); color: var(--sul-text); }
.sul-pa__search input[type="search"]::placeholder { color: var(--sul-placeholder); }
.sul-pa__search input[type="search"]:focus-visible { outline: none; border-color: var(--sul-focus); box-shadow: 0 0 0 var(--sul-card-border) var(--sul-focus); }

.sul-pa__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sul-pa__table th { padding: var(--sul-spacing-sm) var(--sul-card-padding-h); border-top: var(--sul-card-border) solid var(--sul-border); border-bottom: var(--sul-card-border) solid var(--sul-border); background: var(--sul-background); font-size: var(--sul-font-micro); font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: var(--sul-console-label-tracking); color: var(--sul-muted); }
.sul-pa__table td { padding: var(--sul-card-padding-v) var(--sul-card-padding-h); border-bottom: var(--sul-card-border) solid var(--sul-border); vertical-align: middle; font-size: var(--sul-font-sm); }
.sul-pa__table tbody tr { transition: background var(--sul-transition-fast); }
.sul-pa__table tbody tr:hover { background: var(--sul-background); }
.sul-pa__table tbody tr:last-child td { border-bottom: 0; }
.sul-pa__c-time { width: 13%; }
.sul-pa__c-biz { width: 24%; }
.sul-pa__c-status { width: 14%; }
.sul-pa__c-act { width: 8%; text-align: right; }
td.sul-pa__c-time b { display: block; font-weight: 500; white-space: nowrap; }
td.sul-pa__c-time span, .sul-pa__sub { display: block; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-pa__sub { margin-top: var(--sul-spacing-xxs); }
.sul-pa__now--success { color: var(--sul-success-dark); }
.sul-pa__now--danger { color: var(--sul-danger); }
.sul-pa__now--info { color: var(--sul-info-dark); }

.sul-pa__biz { display: flex; align-items: center; gap: var(--sul-spacing-sm); min-width: 0; }
.sul-pa__biz > div { min-width: 0; }
.sul-pa__biz a, .sul-pa__biz strong { display: block; overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sul-pa__biz > div > span { display: block; overflow: hidden; font-size: var(--sul-font-xs); color: var(--sul-muted); text-overflow: ellipsis; white-space: nowrap; }
.sul-pa__av { flex: none; display: grid; place-items: center; width: var(--sul-avatar-sm); height: var(--sul-avatar-sm); border-radius: var(--sul-radius-pill); font-size: var(--sul-font-micro); font-weight: 700; }
.sul-pa__av--0 { background: var(--sul-pastel-primary); color: var(--sul-primary-action); }
.sul-pa__av--1 { background: var(--sul-pastel-info); color: var(--sul-info-dark); }
.sul-pa__av--2 { background: var(--sul-pastel-success); color: var(--sul-success-dark); }

.sul-pa__post { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--sul-text-secondary); }
.sul-pa__err { display: block; margin-top: var(--sul-spacing-xxs); font-size: var(--sul-font-xs); color: var(--sul-danger); overflow-wrap: anywhere; }

.sul-pa__act { display: inline-flex; gap: var(--sul-spacing-xs); }
.sul-pa__ib { display: grid; place-items: center; width: var(--sul-avatar-sm); height: var(--sul-avatar-sm); border: var(--sul-card-border) solid transparent; border-radius: var(--sul-radius-lg); color: var(--sul-muted); }
.sul-pa__ib:hover, .sul-pa__ib:focus-visible { border-color: var(--sul-border); background: var(--sul-surface); color: var(--sul-primary-action); }

.sul-pa__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sul-spacing-sm); padding: var(--sul-card-padding-v) var(--sul-card-padding-h); border-top: var(--sul-card-border) solid var(--sul-border); font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-pa__empty { display: flex; flex-direction: column; align-items: center; gap: var(--sul-spacing-xs); padding: var(--sul-spacing-3xl) var(--sul-card-padding-h); border-top: var(--sul-card-border) solid var(--sul-border); text-align: center; }
.sul-pa__empty b { font-size: var(--sul-font-base); font-weight: 600; }
.sul-pa__empty span { color: var(--sul-muted); }
.sul-pa__empty-ic { display: grid; place-items: center; width: var(--sul-avatar-lg); height: var(--sul-avatar-lg); margin-bottom: var(--sul-spacing-sm); border-radius: var(--sul-radius-pill); background: var(--sul-pastel-success); color: var(--sul-success-dark); }

@media (max-width: 760px) {
    .sul-pa__stats { flex-wrap: wrap; }
    .sul-pa__stat { flex: 1 1 33%; border-bottom: var(--sul-card-border) solid var(--sul-border); }
    .sul-pa__search { flex: 1; }
    .sul-pa__search input[type="search"] { width: 100%; }
    .sul-pa__table thead { display: none; }
    .sul-pa__table, .sul-pa__table tbody, .sul-pa__table tr, .sul-pa__table td { display: block; width: 100%; }
    .sul-pa__table tr { padding: var(--sul-card-padding-v) 0; border-bottom: var(--sul-card-border) solid var(--sul-border); }
    .sul-pa__table td { padding: var(--sul-spacing-xs) var(--sul-card-padding-h); border: 0; }
    .sul-pa__c-act { text-align: left; }
}

/* The Connections table's leading cell: platform mark beside the account name and how long ago
   it was connected. A table cell is inline-axis by default, which stacked the icon above the
   text instead of beside it -- this is the one column that is not plain text. */
.sul-table__account {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-sm);
    white-space: normal;
}

.sul-table__account-name {
    font-weight: 600;
    color: var(--sul-text);
}

.sul-table__account-detail {
    color: var(--sul-muted);
    font-size: var(--sul-font-xs);
}

/* The Connections table's action cell can hold Reconnect AND Disconnect at once (a needs-reauth
   row offers both), so it needs its own flex row rather than the table's default nowrap text
   layout -- and its forms lose the block margin .sul-connection form resets for the old
   card layout, which this cell is not part of. */
.sul-table__actions {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-sm);
    white-space: normal;
}

.sul-table__actions form {
    margin: 0;
}

/* "Add a channel" row layout -- .sul-dialog--right, the geometry for the slide-over these rows
   sit inside, is defined next to its base class .sul-dialog further down this file (a modifier
   coming BEFORE its base class loses the cascade on every property they both set, at equal
   specificity, because the later rule wins -- that placement bug is why this panel briefly
   rendered at .sul-dialog's own centred dialog-max width instead of this variant's narrower one). */
.sul-add-channel__row {
    display: flex;
    align-items: flex-start;
    gap: var(--sul-spacing-sm);
    padding: var(--sul-card-padding-v) 0;
    border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-add-channel__row:last-child { border-bottom: none; }

.sul-add-channel__row-detail {
    display: flex;
    flex-direction: column;
    gap: var(--sul-spacing-xxs);
    flex: 1 1 auto;
    min-width: 0;
}

.sul-add-channel__row-head {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-sm);
    flex-wrap: wrap;
}

.sul-add-channel__row-copy {
    margin: 0;
    font-size: var(--sul-font-xs);
    color: var(--sul-muted);
}

.sul-add-channel__row form { margin: 0; flex-shrink: 0; }

/* Stacked, because each alert is a sentence to read rather than a chip to scan, and they
   need to sit apart to stay distinguishable. */
.sul-alerts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sul-spacing-sm);
  margin-top: var(--sul-spacing-base);
}

/* --- Admin: cost reporting -----------------------------------------------
   Estate-wide aggregates, so none of this is behind a support grant. */
.sul-admin-range {
  display: flex;
  align-items: baseline;
  gap: var(--sul-spacing-compact);
  flex-wrap: wrap;
  font-size: var(--sul-font-sm);
  color: var(--sul-text-secondary);
  margin-bottom: var(--sul-spacing-base);
}

.sul-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-xl);
}

.sul-metric { display: flex; flex-direction: column; }

/* tabular-nums so a total does not change width as it updates, and so the three figures line
   up against each other rather than drifting. */
.sul-metric__value {
  font-size: var(--sul-metric-number-size);
  font-weight: 600;
  color: var(--sul-text);
  font-variant-numeric: tabular-nums;
}

.sul-metric__label {
  font-size: var(--sul-metric-label-size);
  color: var(--sul-muted);
}

/* The daily trend. A bar per day including the empty ones -- omitting quiet days would
   compress the axis and make a flat week look like growth. */
.sul-spark {
  display: flex;
  align-items: flex-end;
  gap: var(--sul-spacing-xxs);
  height: var(--sul-spacing-3xl);
  margin-top: var(--sul-spacing-base);
}

.sul-spark__bar {
  flex: 1;
  min-width: var(--sul-spacing-xxs);
  /* --sul-data, not --sul-primary. A bar whose HEIGHT is the information is a graphical
     object under WCAG 1.4.11 and needs 3:1; the brand orange on a white card is 2.80:1. The
     reading was wrong before the ratio was — a chart in the button colour says the bars are
     things to press. */
  background: var(--sul-data);
  border-radius: var(--sul-radius-xs);
}

/* A day with no spend keeps its place in the row as a faint baseline, so the gap is visible
   as a gap rather than as a missing day. */
.sul-spark__bar--h0 {
  height: var(--sul-spacing-xxs);
  background: var(--sul-border);
}

/* Heights in 5% steps. A class per whole percent would be 101 rules to draw one chart, and
   rule 1 plus the design audit rule out an inline style attribute. See CostsModel.BarPercent. */
.sul-spark__bar--h0 { height: 0%; }
.sul-spark__bar--h5 { height: 5%; }
.sul-spark__bar--h10 { height: 10%; }
.sul-spark__bar--h15 { height: 15%; }
.sul-spark__bar--h20 { height: 20%; }
.sul-spark__bar--h25 { height: 25%; }
.sul-spark__bar--h30 { height: 30%; }
.sul-spark__bar--h35 { height: 35%; }
.sul-spark__bar--h40 { height: 40%; }
.sul-spark__bar--h45 { height: 45%; }
.sul-spark__bar--h50 { height: 50%; }
.sul-spark__bar--h55 { height: 55%; }
.sul-spark__bar--h60 { height: 60%; }
.sul-spark__bar--h65 { height: 65%; }
.sul-spark__bar--h70 { height: 70%; }
.sul-spark__bar--h75 { height: 75%; }
.sul-spark__bar--h80 { height: 80%; }
.sul-spark__bar--h85 { height: 85%; }
.sul-spark__bar--h90 { height: 90%; }
.sul-spark__bar--h95 { height: 95%; }
.sul-spark__bar--h100 { height: 100%; }

/* --- Business cards on Home ----------------------------------------------
   Home was a flat list of names. With more than one business you could not tell which had a
   dead token without opening each in turn, and reconnecting is the one thing that stops a post
   going out.

   Restyled to read as one considered unit rather than a form-like stack of rows: the role sits
   as a small label above the name (the card header already carries the business name), each
   channel gets its brand-tinted badge at avatar-md so it reads at a glance the way a platform
   connection reads everywhere else in the product, and the actions row gets its own separation
   from the channel list. Still every value from tokens.json — no new literals. */
.sul-business__role {
  margin: 0;
  font-size: var(--sul-font-xxs);
  font-weight: 600;
  color: var(--sul-muted);
  text-transform: uppercase;
}

.sul-business__empty {
  margin: 0;
  padding: var(--sul-spacing-base);
  background: var(--sul-background);
  border-radius: var(--sul-radius-lg);
  font-size: var(--sul-font-sm);
  color: var(--sul-text-secondary);
}

.sul-channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
}

.sul-channel {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  background: var(--sul-background);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
}

/* min-width:0 so a long page name truncates instead of pushing the status pill off the row. */
.sul-channel__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 0;
}

.sul-channel__name {
  font-size: var(--sul-font-sm);
  font-weight: 600;
  color: var(--sul-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The platform is named as well as coloured. Colour alone would make the row unreadable for a
   colour-blind customer and in a screenshot, and these are brand colours people do not all
   know. */
.sul-channel__platform {
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

/* margin-top: auto pins this row to the bottom of the card body's flex column, so a short card
   (setup unfinished, nothing connected yet) doesn't leave the button floating under a gap of
   empty space while a full card's rows fill the same stretched height next to it. */
.sul-business__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-sm);
  margin-top: auto;
  padding-top: var(--sul-spacing-base);
  border-top: var(--sul-card-border) solid var(--sul-border);
}

/* ==========================================================================
   Business Home dashboard (SC-142). ConnectionCardTagHelper, AttentionList/
   AttentionItemTagHelper and the .sul-home-cols split. .sul-stats/.sul-stat
   and .sul-channels/.sul-channel above are also used here, unchanged.
   ========================================================================== */

/* A warned stat's VALUE is coloured, not the whole tile -- the number is the thing
   that needs attention, and colouring the tile itself would compete with the
   warning pill patterns used elsewhere on the page. */
.sul-stat__value--warn {
  color: var(--sul-warning-dark);
}

/* The business Home dashboard's own header row -- the page header on the left, its two primary
   actions (Connect a platform / Create a post) at the top right rather than buried in the cards
   below. .sul-page-header already carries its own bottom margin, so this wrapper adds none of
   its own -- doubling it would push the stats strip down twice. */
.sul-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--sul-spacing-lg);
  margin-bottom: var(--sul-spacing-base);
}

.sul-page-head .sul-page-header {
  flex: 1 1 var(--sul-desktop-card-min);
  margin-bottom: 0;
}

.sul-page-head__actions {
  display: flex;
  gap: var(--sul-spacing-sm);
  padding: 0 var(--sul-card-padding-h);
  flex-shrink: 0;
}

.sul-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sul-spacing-base);
  padding: 0 var(--sul-card-padding-h);
  margin-bottom: var(--sul-spacing-sm);
}

/* Tightened for Home ONLY (gated the same way as the top-nav override, on the body class
 * _Layout.cshtml sets from ViewData["NavPlacement"]) -- this page stacks a header, a stats
 * strip, a card grid AND a two-column section, more sections than any other .sul-shell--wide
 * page carries, so the shared 32px shell/section spacing this page inherited left most of a
 * typical viewport scrolled past before Recent posts ever came into view. Every OTHER page
 * using .sul-stats, .sul-section-head or .sul-card-grid keeps its current spacing untouched. */
.sul-body--nav-top .sul-shell {
  padding-top: var(--sul-spacing-base);
  padding-bottom: var(--sul-spacing-lg);
}

.sul-body--nav-top .sul-stats {
  padding-bottom: var(--sul-spacing-base);
}

.sul-body--nav-top .sul-card-grid {
  margin-bottom: var(--sul-spacing-lg);
}

.sul-body--nav-top .sul-home-cols {
  gap: var(--sul-spacing-lg);
}

.sul-section-head__title {
  font-size: var(--sul-font-lg);
  font-weight: 600;
  margin: 0;
}

.sul-section-head__action {
  font-size: var(--sul-font-xs);
  font-weight: 500;
  color: var(--sul-primary-action);
  white-space: nowrap;
}

.sul-connection-card {
  gap: var(--sul-card-inner-gap);
}

.sul-connection-card__head {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
}

.sul-connection-card__name {
  font-weight: 600;
  font-size: var(--sul-card-label-size);
}

.sul-connection-card__account {
  margin: 0;
  font-size: var(--sul-font-sm);
  font-weight: 600;
  color: var(--sul-text);
}

.sul-connection-card__detail {
  margin: 0;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-connection-card__actions {
  margin-top: auto;
  padding-top: var(--sul-spacing-sm);
}

/* Two columns on a wide screen -- recent posts alongside the needs-attention panel -- one
   column below --sul-breakpoint-sidebar-min, the same token the app shell's own sidebar
   switches on, so the dashboard's layout changes hands at the same width the chrome around
   it does rather than at a second, independently chosen breakpoint. */
.sul-home-cols {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sul-spacing-2xl);
  align-items: start;
}

@media (max-width: 900px) {
  .sul-home-cols {
    grid-template-columns: 1fr;
  }
}

.sul-attention-list {
  display: flex;
  flex-direction: column;
}

.sul-attention-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-sm) 0;
  border-top: var(--sul-card-border) solid var(--sul-border);
  font-size: var(--sul-font-sm);
}

.sul-attention-item:first-child {
  border-top: none;
  padding-top: 0;
}

.sul-attention-item__dot {
  width: var(--sul-spacing-sm);
  height: var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  margin-top: var(--sul-spacing-xxs);
  flex-shrink: 0;
}

.sul-attention-item__dot--warning { background: var(--sul-warning-dark); }
.sul-attention-item__dot--neutral { background: var(--sul-disabled); }

.sul-attention-item__body {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xxs);
  min-width: 0;
}

.sul-attention-item__link {
  font-size: var(--sul-font-xs);
  font-weight: 500;
  color: var(--sul-primary-action);
}

/* --- AI assistance, inline ------------------------------------------------
   SC-72/73 used to render in their own cards BELOW the Publish button and outside the form,
   so the help arrived after the work was done. They now sit against the field each one fills:
   captions under the caption box, image generation beside the upload control.

   Tinted rather than bordered, because this is assistance offered inside a section rather than
   a section of its own — a fifth card on a screen that already has four reads as another step
   to complete. */
.sul-ai {
  background: var(--sul-pastel-primary);
  border-radius: var(--sul-radius-base);
  padding: var(--sul-spacing-compact);
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
}

.sul-ai__head {
  display: flex;
  align-items: baseline;
  gap: var(--sul-spacing-sm);
  flex-wrap: wrap;
}

.sul-ai__title {
  font-size: var(--sul-font-sm);
  font-weight: 600;
  color: var(--sul-text);
}

/* warning-dark, not primary: DESIGN-SYSTEM.md records that orange text on a light background
   fails contrast at small sizes, and every one of these is small. */
.sul-ai__quota {
  margin-left: auto;
  font-size: var(--sul-font-xs);
  /* -strong: this sits inside the AI panel, on pastel-primary, where -action is 4.09:1. */
  color: var(--sul-primary-action-strong);
  font-variant-numeric: tabular-nums;
}

/* The image quota sits outside the tinted panel, under the upload row, so it needs its own
   left alignment rather than being pushed to the end of a flex line. */
.sul-ai__quota--inline { margin-left: 0; }

.sul-ai__hint {
  margin: 0;
  font-size: var(--sul-font-xs);
  color: var(--sul-text-secondary);
}

/* Auto-width pill buttons, not the dialog's equal-split .sul-tabs — sitting inline on the
   Content step next to plenty of open space, a full-width segmented strip read as stretched and
   empty compared to the dialog's own compact context. */
.sul-ai__platformtabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-sm);
}

.sul-ai__platformtab {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xs) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  color: var(--sul-text-secondary);
  font-family: inherit;
  font-size: var(--sul-font-sm);
  font-weight: 600;
  cursor: pointer;
}

.sul-ai__platformtab--current {
  border-color: var(--sul-primary-action);
  color: var(--sul-primary-action);
}

.sul-ai__platformtab:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}

/* A solid card of its own for the generated text, distinct from the pastel-primary panel it sits
   inside — .sul-variant's plain border (built for the dialog's white-on-white context) all but
   disappeared here, where the surrounding panel is already tinted. */
.sul-ai__platformcard {
  background: var(--sul-surface);
  border-radius: var(--sul-radius-lg);
  padding: var(--sul-spacing-base);
}

.sul-ai__platformfoot {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  flex-wrap: wrap;
}

.sul-ai__results {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
}

/* The panel is a column, so a button would otherwise stretch edge to edge and read as the
   primary action of the whole screen rather than an offer inside one field. */
.sul-ai > .sul-button { align-self: flex-start; }

/* Suggest, then the edits. Wraps rather than scrolling: five actions do not fit one phone line,
   and a horizontally scrolling row hides the ones on the end. */
.sul-ai__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-sm);
}

/* One suggestion. A row rather than a card: nesting a card inside a card body puts a header
   inside a header (CLAUDE.md rule 2) and reads as a new section. */
.sul-ai__option {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-base);
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  flex-wrap: wrap;
}

.sul-ai__option-text {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  font-size: var(--sul-font-sm);
  color: var(--sul-text-secondary);
}

.sul-ai__option-body {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
  flex: 1 1 0;
  min-width: 0;
}

/* Upload and Generate, side by side. Wraps on a phone rather than shrinking the file input,
   which on Android truncates the chosen filename to nothing. */
.sul-media-actions {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  flex-wrap: wrap;
}

/* A percentage basis rather than a pixel min-width, so this needs no new token and stays
   responsive: on a narrow screen 60% plus the button exceeds the row and the button wraps to
   its own line, while on a wide one both sit together.

   min-width: 0 alone was not enough and running it proved so: on a narrow phone viewport the
   input shrank far enough that Chrome rendered "Choose File  N...sen", truncating the very
   state the control exists to report. A file input is one of the few elements whose own text
   cannot be styled, wrapped or shortened, so it has to be given room instead. */
.sul-media-actions .sul-input { flex: 1 1 60%; min-width: 0; }

/* The AI action itself. Tinted fill with the primary border so it reads as a distinct kind of
   action from Publish (solid) and Save as draft (outline), without competing with either. */
.sul-button--ai {
  background: var(--sul-pastel-primary);
  /* -dark, not -action: this text sits on the orange tint, where -action is 4.09:1. */
  color: var(--sul-primary-action-strong);
  border-color: var(--sul-primary-action);
}

.sul-button--compact {
  padding: var(--sul-spacing-xs) var(--sul-spacing-compact);
  font-size: var(--sul-font-xs);
}

/* AI image preview (SC-73): fit the generated image to the card without a fixed size. */
.sul-ai-image-preview {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: var(--sul-spacing-sm);
    border-radius: var(--sul-radius-base);
}

/* ---------------------------------------------------------------------------
   The template designer (023/024): pick a design, put your own words in it.
   --------------------------------------------------------------------------- */

/* auto-fill, not auto-fit: auto-fit collapses empty tracks and stretches a lone card across the
   whole row, so one design would read as a banner rather than as one of a set. */
.sul-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--sul-desktop-template-card-min), 1fr));
  gap: var(--sul-spacing-base);
}

.sul-template-card {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xs);
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-card-radius);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.sul-template-card:hover { border-color: var(--sul-primary-action); }

.sul-template-card:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}

/* The thumbnail IS the master SVG, so it can never fall out of step with what the renderer
   produces. aspect-ratio keeps every tile the same shape whatever the artwork declares, so the
   grid does not jump as designs are added. */
.sul-template-card__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--sul-radius-base);
  background: var(--sul-background);
}

.sul-template-card__name {
  font-size: var(--sul-font-sm);
  font-weight: 500;
  color: var(--sul-text);
}

.sul-template-editor {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-base);
}

.sul-template-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sul-spacing-sm);
  flex-wrap: wrap;
}

.sul-template-editor__name {
  font-size: var(--sul-font-base);
  font-weight: 600;
  color: var(--sul-text);
}

/* ---------------------------------------------------------------------------
   Dialog — the AI caption writer, and the first modal in this product.

   Native <dialog>, so the backdrop, focus trap and Escape come from the
   browser. ::backdrop cannot read a custom property in every engine that
   supports dialog, so the scrim is expressed with color-mix over a token
   rather than as a literal colour — the value still comes from the palette.
   (Saying the function name here would trip design-audit.sh, which does not
   exempt comments from the colour rules the way it does for px.)

   Sized by --sul-desktop-dialog-max and allowed to shrink on a phone, where a
   fixed width would push the tone radios off the side of the screen.
   --------------------------------------------------------------------------- */
.sul-dialog {
  width: calc(100% - var(--sul-spacing-xl));
  max-width: var(--sul-desktop-dialog-max);
  padding: 0;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-card-radius);
  background: var(--sul-surface);
  color: var(--sul-text);
  box-shadow: var(--sul-shadow-lg);
}

.sul-dialog::backdrop {
  background: color-mix(in srgb, var(--sul-text) 45%, transparent);
}

.sul-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sul-spacing-base);
  padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-dialog__headtext {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xxs);
  min-width: 0;
}

.sul-dialog__title {
  margin: 0;
  font-size: var(--sul-font-lg);
  letter-spacing: var(--sul-tracking-tight);
}

.sul-dialog__subtitle {
  margin: 0;
  font-size: var(--sul-font-xs);
  color: var(--sul-text-secondary);
}

.sul-dialog__close {
  border: 0;
  background: none;
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xl);
  line-height: 1;
  cursor: pointer;
  padding: var(--sul-spacing-xxs) var(--sul-spacing-xs);
  border-radius: var(--sul-radius-xs);
}

.sul-dialog__close:hover { color: var(--sul-text); }
.sul-dialog__close:focus-visible { outline: var(--sul-focus); }

.sul-dialog__body {
  padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
  /* Tall content scrolls INSIDE the dialog rather than growing it past the
     viewport, which on a phone would put the Write button out of reach. */
  max-height: 60vh;
  overflow-y: auto;
}

.sul-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-sm);
  align-items: center;
  padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
  border-top: var(--sul-card-border) solid var(--sul-border);
}

/* --right: a slide-over anchored to the right edge instead of centred, for the Connections
   page's "Add a channel" panel (SocialConnect.Web/wwwroot/js/sul-add-channel.js wires its
   showModal()/close()). Everything else on .sul-dialog -- backdrop, header, close button,
   scrolling body -- is unchanged; this only overrides geometry, and MUST stay textually after
   .sul-dialog above: a modifier class placed before its base class loses every property they
   both set once the cascade breaks the tie by source order, which is what put this panel at the
   base class's own centred dialog-max width instead of this variant's narrower one the first
   time it shipped. */
/* [open] on BOTH selectors below, and it matters more than it looks: the UA stylesheet's own
   dialog:not([open]) { display: none; } is what keeps a closed <dialog> invisible and out of the
   click target tree, and a plain .sul-dialog--right { display: flex } — no [open] qualifier —
   is a single class selector with HIGHER specificity than that UA type+:not() rule, so it won
   the cascade and forced the CLOSED panel to render (position:fixed, full height, right edge)
   regardless of .open. It sat on top of the whole page with no backdrop, and Playwright's
   actionability check named it exactly right: "the dialog subtree intercepts pointer events" —
   the "Add account" trigger UNDER it could never be clicked, which is also why the panel itself
   looked headerless and un-closeable: it was never showModal()'d, just visible as a stray block. */
.sul-dialog--right[open] {
  /* The UA stylesheet centres <dialog> via inset:0 auto auto 0 + margin:auto,
     which a plain top/right would not override -- these three replace it. */
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  height: 100%;
  max-height: 100%;
  width: min(100%, var(--sul-desktop-add-channel-max));
  max-width: var(--sul-desktop-add-channel-max);
  border-radius: 0;
  border-left: var(--sul-card-border) solid var(--sul-border);

  /* <dialog> is a block box; its content needs to be a column for the
     scrolling body (flex:1) to claim the space between the header and the
     bottom edge instead of leaving a gap under a short list. */
  display: flex;
  flex-direction: column;
}

.sul-dialog--right[open] .sul-dialog__body {
  flex: 1;
  max-height: none;
}

/* A row of mutually exclusive choices — tone, length, how many. Radios rather
   than a <select> because there are three or four of each and seeing all of
   them beats opening a list to find out what the options are. */
.sul-optionrow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-xs);
  margin-bottom: var(--sul-spacing-base);
}

.sul-optionrow__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-xs) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  cursor: pointer;
  font-size: var(--sul-font-sm);
  transition: var(--sul-transition-fast);
}

.sul-optionrow__item:hover { background: var(--sul-selected-bg); }

.sul-optionrow__item:has(input:checked) {
  background: var(--sul-selected-bg);
  border-color: var(--sul-primary-action);
  color: var(--sul-primary-action);
}

.sul-optionrow__item:has(input:focus-visible) { outline: var(--sul-focus); }

.sul-optionrow__item input { margin: 0; }

/* A generated caption waiting to be chosen. */
.sul-variant {
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-base);
  padding: var(--sul-spacing-base);
  margin-bottom: var(--sul-spacing-sm);
}

.sul-variant__text {
  margin: 0 0 var(--sul-spacing-sm);
  white-space: pre-wrap;
}

.sul-variant__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-sm);
  align-items: center;
  font-size: var(--sul-font-xs);
  color: var(--sul-text-secondary);
}

/* --- Long-form prose (T18) ------------------------------------------------ */
/*
   The ONE place in this product that renders a block of text somebody else wrote. Every other
   screen composes short, known strings into components; a legal document is paragraphs, headings
   and lists of unknown length, and it needs type rules rather than a layout.

   The measure is what makes it readable: a line of terms running the full width of a desktop
   window is a line nobody finishes. 68ch is the usual typographic advice and is expressed in ch
   deliberately, so it tracks the font rather than a pixel guess.
*/
.sul-prose {
  max-width: 68ch;
  margin: 0 auto;
  padding: var(--sul-spacing-xl) var(--sul-spacing-lg);
  color: var(--sul-text);
  line-height: 1.7;
}

.sul-prose h1 { font-size: var(--sul-font-2xl); margin: 0 0 var(--sul-spacing-base); }
.sul-prose h2 { font-size: var(--sul-font-xl); margin: var(--sul-spacing-xl) 0 var(--sul-spacing-sm); }
.sul-prose h3 { font-size: var(--sul-font-lg); margin: var(--sul-spacing-lg) 0 var(--sul-spacing-xs); }
.sul-prose h4 { font-size: var(--sul-font-base); margin: var(--sul-spacing-base) 0 var(--sul-spacing-xs); }

.sul-prose p  { margin: 0 0 var(--sul-spacing-base); }
.sul-prose ul,
.sul-prose ol { margin: 0 0 var(--sul-spacing-base); padding-left: var(--sul-spacing-xl); }
.sul-prose li { margin-bottom: var(--sul-spacing-xxs); }

/* --- Country switcher (T20) ----------------------------------------------- */
/*
   One row: label, select, button. It sits above long-form prose on the legal pages, so it is
   deliberately quiet -- a visitor who is in the right country should not have their eye drawn to
   it, and one who is not should be able to find it without hunting.
*/
.sul-country {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-xs);
  margin-bottom: var(--sul-spacing-lg);
}

.sul-country__select { width: auto; }

/* The hint goes on its own line under the row rather than squeezing into it. */
.sul-country .sul-field__hint { flex-basis: 100%; }

/* ---------------------------------------------------------------------------
   Legal document page (/legal/{code})

   A header card (title, version, country, print), tabs between the documents,
   then the contents panel beside the document on a desktop. On a phone the
   panel goes and a jump menu takes its place above the body, sticky, because
   44 sections is too many to scroll back through to reach the index.

   The section NUMBERS are a CSS counter over the headings LegalDocumentText
   anchors (h2[id]), the same order Sections() numbers the index in, so the
   number beside a heading and the number in the panel are always the same.
   --------------------------------------------------------------------------- */
.sul-legal { display: flex; flex-direction: column; gap: var(--sul-spacing-2xl); }

/* No card: segmented tabs, then the title row with the tools on the right, closed by one rule
   under the whole header. */
.sul-legal__head {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-2xl);
  padding-bottom: var(--sul-spacing-xl);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-legal__headrow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sul-spacing-lg);
}

.sul-legal__titles { flex: 1 1 var(--sul-desktop-card-min); min-width: 0; }

.sul-legal__title {
  margin: 0;
  font-size: var(--sul-font-5xl);
  line-height: 1.15;
  letter-spacing: var(--sul-tracking-tight);
}

.sul-legal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-sm);
  margin: var(--sul-spacing-base) 0 0;
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}

.sul-legal__chip {
  padding: var(--sul-spacing-xxs) var(--sul-spacing-compact);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-background);
  color: var(--sul-text-secondary);
}

.sul-legal__dot { color: var(--sul-border); }

.sul-legal__titles .sul-field__hint { margin: var(--sul-spacing-sm) 0 0; }

.sul-legal__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-sm);
}

.sul-legal__tools .sul-country { margin: 0; }

/* The same height as the country box beside it. */
.sul-legal__print {
  min-height: var(--sul-control-touch-min);
  border-radius: var(--sul-radius-xl);
}

.sul-legal__printicon {
  width: var(--sul-font-base);
  height: var(--sul-font-base);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

/* A segmented control: a tinted track, the current document raised on it. */
.sul-legal__tabs {
  display: inline-flex;
  align-self: flex-start;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xs);
  background: var(--sul-background);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
}

.sul-legal__tab {
  padding: var(--sul-spacing-sm) var(--sul-spacing-xl);
  border-radius: var(--sul-radius-lg);
  font-size: var(--sul-font-base);
  color: var(--sul-muted);
  text-decoration: none;
}

.sul-legal__tab:hover { color: var(--sul-text); }

.sul-legal__tab--current {
  background: var(--sul-surface);
  color: var(--sul-text);
  font-weight: 600;
  box-shadow: var(--sul-shadow-sm);
}

/* The compact country switch (legal header): one bordered box holding a globe, a borderless
   select and, when the country was guessed, an "auto" tag. */
.sul-country--compact { gap: var(--sul-spacing-sm); flex-wrap: nowrap; }

.sul-country__box {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  min-height: var(--sul-control-touch-min);
  padding: 0 var(--sul-spacing-base);
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  cursor: pointer;
}

.sul-country__box:focus-within {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}

.sul-country__globe {
  flex: none;
  width: var(--sul-font-lg);
  height: var(--sul-font-lg);
  fill: none;
  stroke: var(--sul-secondary);
  stroke-width: 1.6;
}

.sul-country--compact .sul-country__select {
  min-width: calc(var(--sul-control-touch-min) * 3);
  padding: var(--sul-spacing-xs) 0;
  border: 0;
  background: transparent;
  color: var(--sul-text);
  font: inherit;
  font-size: var(--sul-font-base);
  font-weight: 600;
  cursor: pointer;
}

.sul-country--compact .sul-country__select:focus { outline: none; }

.sul-country__auto {
  padding-left: var(--sul-spacing-sm);
  border-left: var(--sul-card-border) solid var(--sul-border);
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}

.sul-country__change { min-height: var(--sul-control-touch-min); }

/* With script the button waits until there is something to change. */
.sul-country--js:not(.sul-country--dirty) .sul-country__change { display: none; }

.sul-legal__layout {
  display: grid;
  grid-template-columns: var(--sul-desktop-sidebar-width) minmax(0, 1fr);
  gap: var(--sul-spacing-3xl);
  align-items: start;
}

.sul-legal__layout--single { grid-template-columns: minmax(0, 1fr); }

.sul-legal__toc {
  position: sticky;
  top: var(--sul-spacing-lg);
}

.sul-legal-toc {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--sul-spacing-3xl));
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-card-radius);
  overflow: hidden;
}

.sul-legal-toc__progress {
  display: block;
  width: 100%;
  height: var(--sul-spacing-xxs);
  border: 0;
  appearance: none;
  background: var(--sul-border);
}

.sul-legal-toc__progress::-webkit-progress-bar { background: var(--sul-border); }
.sul-legal-toc__progress::-webkit-progress-value { background: var(--sul-primary-action); }
.sul-legal-toc__progress::-moz-progress-bar { background: var(--sul-primary-action); }

.sul-legal-toc__head {
  display: flex;
  justify-content: space-between;
  padding: var(--sul-spacing-base) var(--sul-spacing-base) var(--sul-spacing-sm);
  font-size: var(--sul-font-xs);
}

.sul-legal-toc__heading { font-weight: 600; }
.sul-legal-toc__count { color: var(--sul-muted); }

.sul-legal-toc__search {
  padding: 0 var(--sul-spacing-base) var(--sul-spacing-base);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-legal-toc__input { width: 100%; font-size: var(--sul-font-sm); }

.sul-legal-toc__list {
  list-style: none;
  margin: 0;
  padding: var(--sul-spacing-xs);
  overflow: auto;
  flex: 1 1 auto;
}

.sul-legal-toc__link {
  display: flex;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
  border-radius: var(--sul-radius-base);
  font-size: var(--sul-font-xs);
  line-height: 1.4;
  color: var(--sul-muted);
  text-decoration: none;
}

.sul-legal-toc__link:hover { background: var(--sul-background); color: var(--sul-text); }

.sul-legal-toc__link--current,
.sul-legal-toc__link--current:hover {
  background: var(--sul-selected-bg);
  color: var(--sul-primary-action);
  font-weight: 600;
}

.sul-legal-toc__num {
  flex: none;
  min-width: var(--sul-spacing-xl);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sul-legal-toc__none { margin: 0; padding: var(--sul-spacing-base); font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-legal__jump { display: none; }

.sul-legal__doc {
  counter-reset: sul-legal-section;
  padding: var(--sul-spacing-3xl) var(--sul-spacing-3xl) var(--sul-spacing-xl);
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-card-radius);
  color: var(--sul-text-secondary);
  line-height: 1.65;
}

.sul-legal__doc--empty { padding: var(--sul-spacing-2xl); }

.sul-legal__doc h2,
.sul-legal__doc h3,
.sul-legal__doc h4 { color: var(--sul-text); letter-spacing: var(--sul-tracking-tight); scroll-margin-top: var(--sul-spacing-lg); }

.sul-legal__doc h2 {
  display: flex;
  gap: var(--sul-spacing-compact);
  align-items: baseline;
  margin: var(--sul-spacing-3xl) 0 var(--sul-spacing-sm);
  font-size: var(--sul-font-lg);
}

.sul-legal__doc h2:first-child { margin-top: 0; }

.sul-legal__doc h2[id]::before {
  counter-increment: sul-legal-section;
  content: counter(sul-legal-section) ".";
  min-width: var(--sul-spacing-2xl);
  font-size: var(--sul-font-sm);
  color: var(--sul-primary-action);
  font-variant-numeric: tabular-nums;
}

.sul-legal__doc h3 { margin: var(--sul-spacing-xl) 0 var(--sul-spacing-xs); font-size: var(--sul-font-base); }
.sul-legal__doc h4 { margin: var(--sul-spacing-lg) 0 var(--sul-spacing-xs); font-size: var(--sul-font-sm); }

.sul-legal__doc p { margin: 0 0 var(--sul-spacing-base); }

.sul-legal__doc ul,
.sul-legal__doc ol { margin: 0 0 var(--sul-spacing-base); padding-left: var(--sul-spacing-xl); }

.sul-legal__doc li { margin-bottom: var(--sul-spacing-xs); }

.sul-legal__totop {
  position: fixed;
  /* Slice 41: a Lucide arrow-up beside "Top". */
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xxs);
  right: var(--sul-spacing-2xl);
  bottom: var(--sul-spacing-2xl);
  min-height: var(--sul-control-touch-min);
  padding: 0 var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  box-shadow: var(--sul-shadow-lg);
  color: var(--sul-text);
  font-size: var(--sul-font-xs);
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 900px) {
  .sul-legal__layout { grid-template-columns: minmax(0, 1fr); gap: var(--sul-spacing-lg); }
  .sul-legal__toc { display: none; }

  .sul-legal__jump {
    display: block;
    position: sticky;
    top: 0;
    z-index: 5;
    padding: var(--sul-spacing-sm) 0;
    background: var(--sul-background);
  }

  .sul-legal__jumpselect { width: 100%; }
  .sul-legal__doc { padding: var(--sul-spacing-2xl) var(--sul-spacing-xl); }
}

@media (max-width: 640px) {
  .sul-legal__head { gap: var(--sul-spacing-lg); }
  .sul-legal__tab { padding: var(--sul-spacing-sm) var(--sul-spacing-base); font-size: var(--sul-font-sm); }
  .sul-legal__title { font-size: var(--sul-font-3xl); }
}

@media print {
  .sul-publicnav,
  .sul-publicfoot,
  .sul-legal__tools,
  .sul-legal__tabs,
  .sul-legal__toc,
  .sul-legal__jump,
  .sul-legal__totop { display: none !important; }

  .sul-legal__layout { display: block; }
  .sul-legal__head,
  .sul-legal__doc { border: 0; padding: 0; }
}

/* ---------------------------------------------------------------------------
   Package terms (T46, R7.2)

   A definition list rather than a table, because these are label/value pairs
   and not rows that compare across columns -- and a <dl> reflows to a single
   stacked column on a phone with no scroll container.

   THE MATERIAL ROWS CARRY THEIR OWN WEIGHT. R7.2 names the deletion timetable
   as the term that must not be buried, so those rows get a tinted panel and a
   rule rather than sitting in the same grey as "AI images a month". The tint is
   warning-light, not danger: nothing has gone wrong, and painting the normal
   terms of a package in red would teach customers to ignore red.
   --------------------------------------------------------------------------- */
.sul-terms {
  margin: var(--sul-spacing-base) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xxs);
}

.sul-terms__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--sul-spacing-xs) var(--sul-spacing-sm);
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
  border-radius: var(--sul-radius-sm);
}

/* Fractions rather than a fixed label column: rule 1 forbids px/rem/em literals, and a label
   width in ems would be wrong in every locale but the one it was measured in anyway. */
@media (max-width: 560px) {
  .sul-terms__row { grid-template-columns: minmax(0, 1fr); }
}

.sul-terms__label {
  margin: 0;
  color: var(--sul-muted);
  font-size: var(--sul-font-sm);
}

.sul-terms__value {
  margin: 0;
  color: var(--sul-text);
  font-size: var(--sul-font-sm);
}

.sul-terms__row--material {
  background: var(--sul-warning-light);
  border-left: var(--sul-spacing-xxs) solid var(--sul-warning-dark);
}

.sul-terms__row--material .sul-terms__label,
.sul-terms__row--material .sul-terms__value {
  color: var(--sul-text);
}

/* ---------------------------------------------------------------------------
   A directory listing on the "find your business" screen (T22, R2.3).

   Several matches for one verified number is the NORMAL case, so these stack
   and have to stay legible when there are three of them.
   --------------------------------------------------------------------------- */
.sul-listing {
  padding: var(--sul-spacing-compact) 0;
  border-top: var(--sul-card-border) solid var(--sul-border);
}

.sul-listing:first-child { border-top: 0; }

.sul-listing__name { margin: 0 0 var(--sul-spacing-xxs) 0; }

.sul-listing__where {
  margin: 0 0 var(--sul-spacing-sm) 0;
  color: var(--sul-muted);
  font-size: var(--sul-font-sm);
}

/* ---------------------------------------------------------------------------
   Find your business, as one flow: the search card, one pick-one results card
   with a single confirm, and the three steps under them.

   The results are RADIOS, not a button per listing. Three identical orange
   "This is my business" buttons stacked down a card read as three separate
   decisions; one choice and one confirm is what the customer is actually doing.
   Selection is styled with :has(), the same reason .sul-choice gives: no script
   keeping a class in step with the real value.
   --------------------------------------------------------------------------- */
.sul-find__search {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-lg) var(--sul-card-padding-h);
}

.sul-find__icon {
  width: var(--sul-avatar-lg);
  height: var(--sul-avatar-lg);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--sul-radius-xl);
  background: var(--sul-pastel-primary);
  color: var(--sul-primary-action);
}

.sul-find__intro { flex: 1; min-width: 0; }

.sul-find__title {
  margin: 0;
  font-size: var(--sul-font-base);
  font-weight: 600;
  color: var(--sul-text);
}

.sul-find__text {
  margin: var(--sul-spacing-xxs) 0 0;
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}

.sul-find__contact {
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 600;
  color: var(--sul-text);
}

.sul-find__go { flex: none; white-space: nowrap; }

.sul-find__sources {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
  padding: 0 var(--sul-card-padding-h) var(--sul-spacing-base);
}

.sul-find__quota {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-spacing-base) var(--sul-card-padding-h);
  border-top: var(--sul-card-border) solid var(--sul-border);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-find__meter {
  flex: 0 0 calc(var(--sul-spacing-3xl) * 3);
  height: var(--sul-spacing-xs);
  border: 0;
  border-radius: var(--sul-radius-pill);
  overflow: hidden;
  background: var(--sul-border);
  appearance: none;
}

.sul-find__meter::-webkit-progress-bar   { background: var(--sul-border); }
.sul-find__meter::-webkit-progress-value { background: var(--sul-primary-action); }
.sul-find__meter::-moz-progress-bar      { background: var(--sul-primary-action); }

.sul-find-results__head { padding: var(--sul-spacing-lg) var(--sul-card-padding-h) var(--sul-spacing-base); }

.sul-find-option {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-base) var(--sul-card-padding-h);
  border-top: var(--sul-card-border) solid var(--sul-border);
  cursor: pointer;
  transition: background var(--sul-transition-fast) ease;
}

.sul-find-option:hover { background: var(--sul-background); }

.sul-find-option:has(.sul-find-option__input:checked) { background: var(--sul-selected-bg); }

.sul-find-option:has(.sul-find-option__input:focus-visible) {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: calc(var(--sul-spacing-xxs) * -1);
}

.sul-find-option__input {
  margin: 0;
  flex: none;
  width: var(--sul-spacing-xl);
  height: var(--sul-spacing-xl);
  accent-color: var(--sul-primary-action);
}

.sul-find-option__mark {
  width: var(--sul-avatar-md);
  height: var(--sul-avatar-md);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--sul-radius-xl);
  background: var(--sul-pastel-info);
  color: var(--sul-info-dark);
  font-size: var(--sul-font-xs);
  font-weight: 700;
}

.sul-find-option__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xxs);
}

.sul-find-option__name  { font-size: var(--sul-font-base); font-weight: 600; color: var(--sul-text); }
.sul-find-option__where { font-size: var(--sul-font-sm); color: var(--sul-muted); }
.sul-find-option__tag   { flex: none; white-space: nowrap; }

.sul-find-option--unavailable { cursor: default; }
.sul-find-option--unavailable:hover { background: transparent; }
.sul-find-option--unavailable .sul-find-option__mark { background: var(--sul-background); color: var(--sul-muted); }

.sul-find-results__note {
  margin: 0;
  padding: var(--sul-spacing-sm) var(--sul-card-padding-h);
  border-top: var(--sul-card-border) solid var(--sul-border);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-find-results__none,
.sul-find-results__foot {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-base) var(--sul-card-padding-h);
  border-top: var(--sul-card-border) solid var(--sul-border);
}

.sul-find-results__none {
  background: var(--sul-background);
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}

.sul-find-results__none > span,
.sul-find-results__hint { flex: 1; }

.sul-find-results__hint { font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-find-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-sm);
}

/* The state glyph's tone. The default .sul-empty__glyph pastel is the brand's, which reads as
   "good news" on a refusal. A modifier on the empty state rather than a Find class, because the
   islands' shared EmptyState (clientapp/src/ui/primitives.tsx) emits it for every screen. */
.sul-empty__glyph--danger { background: var(--sul-pastel-danger); color: var(--sul-danger); font-weight: 700; }
.sul-empty__glyph--muted  { background: var(--sul-background); color: var(--sul-muted); font-weight: 700; }

.sul-find-steps__title {
  margin: var(--sul-spacing-2xl) var(--sul-card-padding-h) var(--sul-spacing-compact);
  font-size: var(--sul-font-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sul-muted);
}

.sul-find-steps {
  list-style: none;
  display: flex;
  gap: var(--sul-spacing-base);
  margin: 0 var(--sul-card-padding-h);
  padding: 0;
}

.sul-find-steps__item {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: var(--sul-spacing-compact);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-find-steps__item strong {
  display: block;
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
}

.sul-find-steps__n {
  width: var(--sul-avatar-sm);
  height: var(--sul-avatar-sm);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--sul-radius-pill);
  border: var(--sul-card-border) solid var(--sul-border);
  background: var(--sul-surface);
  font-size: var(--sul-font-micro);
  font-weight: 700;
  color: var(--sul-text);
}

@media (max-width: 560px) {
  .sul-find__search { flex-wrap: wrap; }
  .sul-find__go { width: 100%; }
  .sul-find-option { flex-wrap: wrap; }
  .sul-find-option__tag { margin-left: calc(var(--sul-spacing-xl) + var(--sul-avatar-md) + var(--sul-spacing-base) * 2); }
  .sul-find-results__none,
  .sul-find-results__foot { flex-wrap: wrap; }
  .sul-find-results__foot .sul-button { width: 100%; }
  .sul-find-steps { flex-direction: column; }
}

/* ---------------------------------------------------------------------------
   The match breakdown (T24, R2.7)

   "'72% match' tells nobody what to do; 'same phone, same website, different
   address' does." So the percentage is the small print and the FIELDS are the
   content -- a definition list for the same reason the package terms are one,
   and stacking to one column on a phone with no scroll container.

   THREE TINTS, BECAUSE THERE ARE THREE VERDICTS. A field nobody could compare
   is not a field that disagreed, and painting the two the same would be the
   exact collapse R2.7 names as the most likely mistake -- the Insights page's
   null / withheld / zero rule, on a different screen. Unknown therefore gets
   the page's own background rather than a tint: it says nothing, visibly.
   --------------------------------------------------------------------------- */
.sul-match {
  margin: var(--sul-spacing-base) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xxs);
}

.sul-match__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--sul-spacing-xs) var(--sul-spacing-sm);
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
  border-radius: var(--sul-radius-sm);
  border-left: var(--sul-spacing-xxs) solid var(--sul-border);
  background: var(--sul-background);
}

@media (max-width: 560px) {
  .sul-match__row { grid-template-columns: minmax(0, 1fr); }
}

.sul-match__label,
.sul-match__value {
  margin: 0;
  font-size: var(--sul-font-sm);
}

.sul-match__label { color: var(--sul-muted); }
.sul-match__value { color: var(--sul-text); }

.sul-match__row--agreed {
  background: var(--sul-pastel-success);
  border-left-color: var(--sul-success-dark);
}

.sul-match__row--differed {
  background: var(--sul-pastel-danger);
  border-left-color: var(--sul-danger);
}

.sul-match__score {
  margin: 0 0 var(--sul-spacing-sm) 0;
  color: var(--sul-muted);
  font-size: var(--sul-font-sm);
}

/* ---------------------------------------------------------------------------
   The business switcher in the header (R2.6, T27)

   A <details> disclosure, like the navigation's More sheet and the Add-another
   form: native, keyboard-operable and working with no script at all. The menu
   is absolutely positioned against the topbar's own sticky context, so it
   overlays the page rather than pushing it down when it opens.

   ONE BUSINESS SHOWS A NAME AND NOT A CONTROL. A dropdown with a single item
   cannot do anything, and offering it teaches a customer that the control does
   nothing. The name still shows, because "which business am I in?" is worth
   answering on every page either way.
   --------------------------------------------------------------------------- */
.sul-switcher {
  position: relative;
}

.sul-switcher__only,
.sul-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  max-width: var(--sul-switcher-max);
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
  border-radius: var(--sul-radius-sm);
  font-size: var(--sul-font-sm);
  color: var(--sul-text-secondary);
}

.sul-switcher__toggle {
  cursor: pointer;
  list-style: none;
}

/* The default marker Safari and Chrome draw on a <summary>, removed so the
   chevron below is the only affordance. */
.sul-switcher__toggle::-webkit-details-marker { display: none; }

.sul-switcher__toggle:hover,
.sul-switcher[open] .sul-switcher__toggle {
  background: var(--sul-background);
  color: var(--sul-text);
}

/* Truncated rather than wrapped: the topbar is one row high, and a long trading
   name would otherwise push the bell and the sign-out button off a phone. */
.sul-switcher__name,
.sul-switcher__only,
.sul-switcher__itemname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sul-switcher__chevron {
  /* The same idiom .sul-nav__icon uses: a spacing step as an icon box. */
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  flex-shrink: 0;
}

.sul-switcher[open] .sul-switcher__chevron { transform: rotate(180deg); }

.sul-switcher__menu {
  position: absolute;
  inset: 100% auto auto 0;
  min-width: var(--sul-switcher-max);
  display: flex;
  flex-direction: column;
  padding: var(--sul-spacing-xs);
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  box-shadow: var(--sul-shadow-lg);
  z-index: 20;
}

.sul-switcher__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
  border-radius: var(--sul-radius-sm);
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
  text-decoration: none;
}

.sul-switcher__item:hover { background: var(--sul-background); }

.sul-switcher__item--current {
  background: var(--sul-selected-bg);
  font-weight: 600;
}

.sul-switcher__item--manage {
  margin-top: var(--sul-spacing-xs);
  padding-top: var(--sul-spacing-sm);
  border-top: var(--sul-card-border) solid var(--sul-border);
  color: var(--sul-link);
}

.sul-switcher__badge {
  flex-shrink: 0;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

/* Which business /app opens (R2.6, T27). Its own line under the channels rather
   than in the card header, where the header pill already answers a different
   question — "can this business publish?" — and two pills side by side would
   read as one status. */
.sul-business__default {
  margin: var(--sul-spacing-sm) 0 0 0;
}

/* ---------------------------------------------------------------------------
   Per-platform captions (T32)

   One caption box could only ever hold one platform's answer, and the counter
   under it could only ever count against the tightest limit among every
   account picked — which flagged perfectly publishable Instagram text because
   Google Business Profile is 1,500 characters.

   The strip appears only with more than one platform selected: a tab strip
   with one tab is a control that cannot do anything. It reuses the shape of
   .sul-tabs rather than the shape of the AI panel's own platform tabs, because
   this one is part of the form rather than part of a result.
   --------------------------------------------------------------------------- */
.sul-captions {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
}

.sul-captions__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-xs);
}

.sul-captions__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
  background: var(--sul-background);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-sm);
  font-family: inherit;
  font-size: var(--sul-font-sm);
  color: var(--sul-text-secondary);
  cursor: pointer;
}

.sul-captions__tab--current {
  background: var(--sul-surface);
  border-color: var(--sul-primary-action);
  color: var(--sul-text);
  font-weight: 600;
}

/* "This one says something different" — the question somebody scanning the
   strip is actually asking. A dot rather than a count, because the number of
   characters is already under the box they are looking at. */
.sul-captions__own {
  color: var(--sul-primary-action);
  font-size: var(--sul-font-lg);
  line-height: 1;
}

.sul-captions__count {
  margin: 0;
  color: var(--sul-muted);
  font-size: var(--sul-font-xs);
}

/* Over the limit is a WARNING, not a danger: nothing has failed, and the post
   can still be shortened. danger is reserved for something that went wrong. */
.sul-captions__count--over {
  color: var(--sul-warning-dark);
  font-weight: 600;
}

/* Beside the account name on Review, not under it: it is part of what this
   account is getting, not a note about it. */
.sul-preview__kind {
  margin-left: var(--sul-spacing-xs);
  padding: 0 var(--sul-spacing-xs);
  background: var(--sul-background);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-sm);
  font-size: var(--sul-font-xs);
  font-weight: 400;
  color: var(--sul-text-secondary);
}

/* ── The pictures on a post, in the order they publish (R3.2, T34) ───────────
   A strip rather than a single figure, because the order is the customer's
   own and a list is the only shape that shows one. Wraps rather than scrolls
   sideways: ten images on a phone is four rows, and a horizontal scroller
   hides whichever of them is off the right edge. */
.sul-photos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sul-photos__item {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
  width: var(--sul-photo-thumb);
}

.sul-photos__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-sm);
  background: var(--sul-background);
}

/* Which one publishes first, said rather than left to be read off the layout —
   on a platform that takes a single image it is the only one that goes. */
.sul-photos__position {
  margin: 0;
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-text);
}

.sul-photos__facts {
  margin: 0;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-photos__actions {
  display: flex;
  gap: var(--sul-spacing-xs);
  align-items: center;
  font-size: var(--sul-font-xs);
}

/* A move that cannot happen is disabled rather than absent: a row of buttons
   that changes width as pictures are reordered is harder to use than one that
   greys out at the ends. */
.sul-photos__actions .sul-linkbutton[disabled] {
  color: var(--sul-muted);
  cursor: default;
  text-decoration: none;
}

/* ── Emoji, under the caption (T36) ──────────────────────────────────────────
   A native <details>: it opens with the keyboard, closes with Escape, and
   needs no JavaScript and no state to do either. Closed by default, because
   thirty-two coloured glyphs would be the loudest thing on a step that is
   about words. */
.sul-emoji {
  margin-top: var(--sul-spacing-xs);
}

.sul-emoji__summary {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  font-size: var(--sul-font-sm);
  color: var(--sul-text-secondary);
  cursor: pointer;
}

/* auto-fill, not a fixed column count: the same strip has to work in a phone's
   full width and in a desktop form column, and a count that suits one wraps
   badly in the other. */
.sul-emoji__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--sul-spacing-3xl), 1fr));
  gap: var(--sul-spacing-xxs);
  margin-top: var(--sul-spacing-xs);
}

.sul-emoji__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--sul-spacing-3xl);
  padding: 0;
  background: none;
  border: var(--sul-card-border) solid transparent;
  border-radius: var(--sul-radius-sm);
  font-size: var(--sul-font-lg);
  line-height: 1;
  cursor: pointer;
}

.sul-emoji__button:hover,
.sul-emoji__button:focus-visible {
  background: var(--sul-background);
  border-color: var(--sul-border);
}

/* ── Rewriting what is already written (T36) ─────────────────────────────────
   Sits under the caption it acts on rather than in a panel of its own: these
   change the words in the box above, and a control that far from its subject
   reads as a separate feature. */
.sul-refine {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
  margin-top: var(--sul-spacing-sm);
}

.sul-refine__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-xs);
}

.sul-refine__results {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
}
/* --- Compose Step 2: "Posting to" summary ---------------------------------
   A READ-ONLY echo of Step 1's picks (see the Caption step in compose.tsx) so the accounts a
   post is going to stay visible while writing, without a trip back to Step 1. Chip styling
   borrows .sul-choice's own "selected" language (pastel-primary fill, primary border) since both
   are naming an account that is already picked — this one just isn't a control. */
.sul-compose-accounts {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  flex-wrap: wrap;
  margin: var(--sul-spacing-lg) var(--sul-card-padding-h) 0;
}

.sul-compose-accounts__label {
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-muted);
}

.sul-compose-accounts__row {
  display: flex;
  gap: var(--sul-spacing-sm);
  flex-wrap: wrap;
}

.sul-chip-account {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xs) var(--sul-spacing-base) var(--sul-spacing-xs) var(--sul-spacing-xs);
  border: var(--sul-card-border) solid var(--sul-primary);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-selected-bg);
  color: var(--sul-text);
  font-size: var(--sul-font-xs);
}

.sul-compose-accounts__manage { margin-left: auto; }

/* Hashtag chips (add/remove) for whichever caption is showing — see HashtagEditor in
   islands/compose.tsx. Laid out as a wrapping row so the trailing add-input sits on the same
   line as the chips for as long as they fit, and drops to its own line once they don't, the same
   flex-wrap treatment .sul-optionrow already uses for a row of unevenly-sized items. */
.sul-hashtags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-xs);
}

.sul-hashtag-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-xxs) var(--sul-spacing-xs) var(--sul-spacing-xxs) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-primary);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-selected-bg);
  color: var(--sul-text);
  font-size: var(--sul-font-xs);
}

.sul-hashtag-chip__remove {
  border: 0;
  background: none;
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-sm);
  line-height: 1;
  cursor: pointer;
  padding: var(--sul-spacing-xxs);
  border-radius: var(--sul-radius-xs);
}

.sul-hashtag-chip__remove:hover { color: var(--sul-danger); }
.sul-hashtag-chip__remove:focus-visible { outline: var(--sul-focus); }

/* Sized to sit inline among the chips rather than stretch full-width like every other .sul-input
   — a hashtag is a few characters, not a caption, and a full-width box here would read as the
   next field down rather than "type another one of these". flex-basis 0 with flex-grow means its
   width comes from the row's remaining space, not a literal — nothing here is a size to tokenise. */
.sul-hashtag-add {
  width: auto;
  flex: 1 0 0;
  padding: var(--sul-spacing-xxs) var(--sul-spacing-xs);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  font-size: var(--sul-font-xs);
  color: var(--sul-text);
  background: var(--sul-surface);
  font-family: inherit;
}

.sul-hashtag-add::placeholder { color: var(--sul-placeholder); }
.sul-hashtag-add:focus-visible { outline: var(--sul-focus); }

/* ── "Check this post" (T55) ─────────────────────────────────────────────────
   A stack of findings under the button that asked for them. Deliberately quiet:
   this is advice, and advice painted like a failure gets read as one. Only the
   blocked item -- the single severity that stops a publish -- carries danger.

   Each finding is a title and a line saying what to do, because a review that
   reports a problem and stops has moved the work without moving anyone forward.
   --------------------------------------------------------------------------- */
.sul-review {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
  margin-top: var(--sul-spacing-sm);
}

.sul-review__clear {
  margin: 0;
  color: var(--sul-success-dark);
  font-size: var(--sul-font-sm);
}

.sul-review__item {
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
  border-radius: var(--sul-radius-sm);
  border-left: var(--sul-spacing-xxs) solid var(--sul-border);
  background: var(--sul-background);
}

/* Advice is warning-tinted, never danger: nothing has gone wrong and the post
   can still be published exactly as written. */
.sul-review__item--advice {
  background: var(--sul-warning-light);
  border-left-color: var(--sul-warning-dark);
}

/* The one that actually refuses. */
.sul-review__item--blocked {
  background: var(--sul-pastel-danger);
  border-left-color: var(--sul-danger);
}

.sul-review__title {
  margin: 0;
  font-size: var(--sul-font-sm);
  font-weight: 600;
  color: var(--sul-text);
}

/* Which account it is about, when it is about one. Muted, because the finding
   itself is what is being read and the account is the qualifier. */
.sul-review__where {
  font-weight: 400;
  color: var(--sul-muted);
}

.sul-review__detail {
  margin: var(--sul-spacing-xxs) 0 0 0;
  font-size: var(--sul-font-sm);
  color: var(--sul-text-secondary);
}

/* ── Tag filter row (T57) ──────────────────────────────────────────────────────────────────
   The drafts list and the calendar both show every tag this business has used, as a row of
   links. Links rather than buttons DELIBERATELY: each one is a different view of the same
   screen, so it has a URL, it can be opened in a new tab, and the browser's Back button undoes
   the filter — none of which is true of a control that mutates state in place.

   Shaped like .sul-hashtag-chip on purpose, so a tag reads as the same kind of thing wherever it
   appears; it does not REUSE that class because that one carries a remove button and this one is
   a link with a count, and one class serving two interactions is how a component drifts. */
.sul-tag-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-xs);
  margin-bottom: var(--sul-spacing-base);
}

.sul-tag-filter__label {
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
}

.sul-tag-filter__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-xxs) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  color: var(--sul-text);
  font-size: var(--sul-font-xs);
  text-decoration: none;
}

.sul-tag-filter__chip:hover { border-color: var(--sul-primary); }
.sul-tag-filter__chip:focus-visible { outline: var(--sul-focus); }

/* The selected chip. Its border is the brand value and its TEXT is not: rule 1's accessibility
   note says color.primary never carries text, so the label stays --sul-text and the tint does
   the work. */
.sul-tag-filter__chip--on {
  border-color: var(--sul-primary);
  background: var(--sul-selected-bg);
  font-weight: 600;
}

.sul-tag-filter__count {
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xxs);
}

/* A tag shown as a LABEL on a row, not as a filter control. Its own class rather than borrowing
   .sul-tag-filter__count, which means "how many posts carry this" — one class serving two
   meanings is exactly how a component drifts, and this file already records the cost of it. */
.sul-tag-mark {
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xxs);
}

/* ── Suggested posting times (T54) ─────────────────────────────────────────────────────────
   Buttons, not links: unlike the tag filter these change the draft in place rather than
   navigating, so there is no URL for them to have. */
.sul-suggested-times {
  margin-top: var(--sul-spacing-base);
}

.sul-suggested-times__label {
  display: block;
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
  margin-bottom: var(--sul-spacing-xxs);
}

.sul-suggested-times__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-xs);
}

.sul-suggested-times__chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-xs) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-base);
  background: var(--sul-surface);
  color: var(--sul-text);
  font-size: var(--sul-font-sm);
  text-align: left;
  cursor: pointer;
}

.sul-suggested-times__chip:hover { border-color: var(--sul-primary); }
.sul-suggested-times__chip:focus-visible { outline: var(--sul-focus); }

.sul-suggested-times__why {
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
}

/* ── Coming up: observances (T58) ──────────────────────────────────────────────────────────
   Not interactive. These are context for planning, not controls — there is nothing to click,
   so nothing here is a button or a link. */
.sul-observances {
  margin-bottom: var(--sul-spacing-base);
}

.sul-observances__label {
  display: block;
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
  margin-bottom: var(--sul-spacing-xxs);
}

.sul-observances__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-xs);
}

.sul-observances__item {
  display: inline-flex;
  align-items: baseline;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-xxs) var(--sul-spacing-base);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-muted);
  color: var(--sul-text);
  font-size: var(--sul-font-xs);
}

.sul-observances__when { color: var(--sul-text-secondary); }

/* The caveat. MUTED, NOT A WARNING: nothing is broken and nothing has been lost — it is a
   statement about what this list does and does not cover. Painting it as a warning is how a
   warning stops being read. */
.sul-observances__caveat {
  margin: var(--sul-spacing-xxs) 0 0;
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
}

/* ── Auto Generate: a three-step drawer (Topic, Style, Pick a caption) ───────────────────────
   Wider than the Add-a-channel panel it shares geometry with, because the ideas and the post
   types are two- and four-column grids. Placed after .sul-dialog--right so it wins on source
   order at equal specificity (see that rule's own comment on why the order matters). */
.sul-dialog--ai[open] {
  width: min(100%, var(--sul-desktop-dialog-max));
  max-width: var(--sul-desktop-dialog-max);
}

.sul-dialog--ai .sul-dialog__body {
  display: flex;
  flex-direction: column;
}

.sul-dialog__nav {
  flex: none;
  padding: 0 var(--sul-card-padding-h);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
}

/* The step bar. Numbers turn to a tick once a step is passed, and each step carries its answer
   underneath, so the choices made so far stay visible on the last screen. */
.sul-aisteps {
  display: flex;
  gap: var(--sul-spacing-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sul-aisteps__item {
  flex: 1 1 0;
  min-width: 0;
}

.sul-aisteps__step {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  width: 100%;
  padding: var(--sul-spacing-compact) var(--sul-spacing-xxs);
  border: 0;
  border-bottom: var(--sul-spacing-xxs) solid transparent;
  background: none;
  color: var(--sul-text-secondary);
  font: inherit;
  font-size: var(--sul-font-sm);
  text-align: left;
  cursor: pointer;
}

.sul-aisteps__step:disabled { cursor: default; }
.sul-aisteps__step:focus-visible { outline: var(--sul-focus); }

.sul-aisteps__step--current {
  color: var(--sul-text);
  font-weight: 600;
  border-bottom-color: var(--sul-primary-action);
}

.sul-aisteps__step--done { color: var(--sul-text); }

.sul-aisteps__num {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--sul-spacing-2xl);
  height: var(--sul-spacing-2xl);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  font-size: var(--sul-font-xs);
  font-weight: 700;
}

.sul-aisteps__step--current .sul-aisteps__num {
  background: var(--sul-primary-action);
  border-color: var(--sul-primary-action);
  color: var(--sul-surface);
}

.sul-aisteps__step--done .sul-aisteps__num {
  background: var(--sul-success-dark);
  border-color: var(--sul-success-dark);
  color: var(--sul-surface);
}

.sul-aisteps__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sul-aisteps__summary {
  overflow: hidden;
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* One step's content. A column, so a tip or a limit line can sit at the bottom of a short pane. */
.sul-aipane {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.sul-aipane__q {
  margin: 0 0 var(--sul-spacing-xxs);
  font-size: var(--sul-font-base);
}

.sul-aipane__qs {
  margin: 0 0 var(--sul-spacing-base);
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-sm);
}

.sul-aipane__own { margin-top: var(--sul-spacing-lg); }

.sul-aipane__own .sul-input { width: 100%; }

/* A hint about the data, not a warning. It sits at the foot of the pane so it is read after the
   ideas it qualifies. */
.sul-aipane__tip {
  margin: auto 0 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-radius: var(--sul-radius-base);
  background: var(--sul-background);
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
}

.sul-aipane__group { margin-bottom: var(--sul-spacing-lg); }

.sul-aipane__label {
  display: block;
  margin-bottom: var(--sul-spacing-sm);
  font-size: var(--sul-font-sm);
  font-weight: 600;
}

.sul-aipane__group .sul-optionrow { margin-bottom: 0; }

/* Three short numbers do not need the full width; a bar across the whole drawer reads as a
   slider. Sized by its segments instead. */
.sul-aipane__count { display: flex; }

.sul-aipane__count .sul-optionrow__item {
  min-width: calc(var(--sul-control-touch-min) * 1.5);
}

.sul-aipane__limit {
  margin: auto 0 0;
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
}

/* The content ideas (T56), as a grid of cards. Buttons, not links: picking one changes the
   dialog's state in place, so there is no URL for it. */
.sul-ideagrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sul-spacing-compact);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sul-ideacard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sul-spacing-xxs);
  width: 100%;
  height: 100%;
  padding: var(--sul-spacing-base) var(--sul-spacing-lg) var(--sul-spacing-base) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-card-radius);
  background: var(--sul-surface);
  color: var(--sul-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: var(--sul-transition-fast);
}

.sul-ideacard:hover { background: var(--sul-selected-bg); }
.sul-ideacard:focus-visible { outline: var(--sul-focus); }

/* Picked: a tint, the action colour on the border and a tick. aria-pressed says the same to a
   screen reader, so colour is never the only signal. */
.sul-ideacard--current {
  border-color: var(--sul-primary-action);
  background: var(--sul-selected-bg);
}

.sul-ideacard__badge {
  padding: 0 var(--sul-spacing-xs);
  border-radius: var(--sul-radius-xs);
  background: var(--sul-selected-bg);
  color: var(--sul-primary-action-strong);
  font-size: var(--sul-font-xs);
  font-weight: 700;
}

.sul-ideacard__title { font-size: var(--sul-font-sm); }

/* The reason the idea is there. MUTED but always present: an idea whose reason is hidden is
   indistinguishable from a stock list, which is the one thing this must not be. */
.sul-ideacard__why {
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
}

.sul-ideacard__check {
  position: absolute;
  top: var(--sul-spacing-base);
  right: var(--sul-spacing-base);
  color: var(--sul-primary-action);
  font-weight: 700;
}

/* OptionRow's other two looks. The native radio stays in the tree (visually hidden, same rules
   as .sul-visually-hidden) so the arrow keys and screen readers behave exactly as the pills do. */
.sul-optionrow--segmented .sul-optionrow__item,
.sul-optionrow--grid .sul-optionrow__item {
  position: relative;
  justify-content: center;
  min-height: var(--sul-control-touch-min);
  text-align: center;
}

.sul-optionrow--segmented .sul-optionrow__item input,
.sul-optionrow--grid .sul-optionrow__item input {
  position: absolute;
  width: var(--sul-card-border);
  height: var(--sul-card-border);
  overflow: hidden;
  clip-path: inset(50%);
}

/* Segmented: one joined bar. The chosen segment is filled with the text colour, which reads
   as "this one" in both themes because the dark theme remaps text and surface together. */
.sul-optionrow--segmented {
  flex-wrap: nowrap;
  gap: 0;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-base);
  overflow: hidden;
}

.sul-optionrow--segmented .sul-optionrow__item {
  flex: 1 1 0;
  min-width: 0;
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
  border: 0;
  border-left: var(--sul-card-border) solid var(--sul-border);
  border-radius: 0;
}

.sul-optionrow--segmented .sul-optionrow__item:first-child { border-left: 0; }

.sul-optionrow--segmented .sul-optionrow__item:has(input:checked) {
  background: var(--sul-text);
  color: var(--sul-surface);
  font-weight: 600;
}

.sul-optionrow--segmented .sul-optionrow__item:has(input:focus-visible) {
  outline-offset: calc(var(--sul-spacing-xxs) * -1);
}

/* Grid: the eight post types as tiles, four across. */
.sul-optionrow--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sul-spacing-sm);
}

.sul-optionrow--grid .sul-optionrow__item {
  padding: var(--sul-spacing-xs);
  border-radius: var(--sul-radius-base);
}

.sul-optionrow--grid .sul-optionrow__item:has(input:checked) { font-weight: 600; }

/* Step 3: the options side by side as cards. */
.sul-airesults__head {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  margin-bottom: var(--sul-spacing-base);
}

.sul-airesults__sum {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-sm);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sul-captions {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-compact);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sul-caption {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-card-radius);
  transition: var(--sul-transition-fast);
}

.sul-caption--current {
  border-color: var(--sul-primary-action);
  background: var(--sul-selected-bg);
}

.sul-caption__text {
  margin: 0;
  font-size: var(--sul-font-sm);
  white-space: pre-wrap;
}

.sul-caption__foot {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
}

.sul-caption__chars {
  flex: 1;
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
}

.sul-caption__chars--over {
  color: var(--sul-danger);
  font-weight: 500;
}

/* Placeholder lines while the model writes. The shimmer is switched off by the global
   prefers-reduced-motion rule; the lines alone still say "something is coming". */
.sul-caption--loading { gap: var(--sul-spacing-xs); }

.sul-skeleton {
  display: block;
  height: var(--sul-spacing-compact);
  border-radius: var(--sul-radius-pill);
  background: linear-gradient(90deg, var(--sul-border) 25%, var(--sul-background) 50%, var(--sul-border) 75%);
  background-size: 200% 100%;
  animation: sul-shimmer 1.2s infinite;
}

.sul-skeleton--long { width: 95%; }
.sul-skeleton--mid { width: 85%; }
.sul-skeleton--short { width: 60%; }

@keyframes sul-shimmer { to { background-position: -200% 0; } }

/* The footer: quota on the left, the step's actions on the right. */
.sul-aifoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-sm);
  width: 100%;
}

.sul-aifoot__quota {
  margin-right: auto;
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
}

.sul-aifoot__quota strong { color: var(--sul-text); }

@media (max-width: 560px) {
  .sul-ideagrid { grid-template-columns: minmax(0, 1fr); }
  .sul-optionrow--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sul-optionrow--segmented { flex-wrap: wrap; }
  .sul-aisteps__summary { display: none; }
}

/* ==========================================================================
   ADMIN CONSOLE CHROME — scoped overrides, not new base rules.

   Everything below is qualified under .sul-admin-shell (the class _AdminLayout.cshtml's <body>
   now carries) so none of it touches .sul-tabs, .sul-pill, .sul-card, .sul-status-pill or
   .sul-metric as they render in the shared customer-facing /app area. /app's <body> carries no
   such class, so a selector like ".sul-admin-shell .sul-tabs__tab" simply never matches there —
   the base rules a few thousand lines up are untouched and still govern /app exactly as before.

   Every value here is one of the SAME tokens the base rules already draw from; nothing new was
   added to tokens.json because nothing needed was missing (see the values picked below).
   ========================================================================== */

/* A warm-off-white ground for the console's own cards to sit on, per the reference. This does
   NOT touch --sul-background itself (that would repaint /app too) -- .sul-admin-shell sets its
   own background to the identical token value already used for the page ground everywhere else
   in the product, so "warm off-white under white cards" is achieved without redefining the
   token or its meaning. */
.sul-admin-shell {
  background: var(--sul-background);
}

/* Softer, more rounded cards with a slightly deeper shadow than the base .sul-card -- the
   reference's cards read less flat than the rest of the product's. radius-2xl is one step up
   the SAME radius scale tokens.json already defines from card-radius (what .sul-card already
   uses), and shadow-md is one step up the same shadow scale .sul-card already draws shadow-sm
   from -- both existing tokens, reused at a different step rather than invented. */
.sul-admin-shell .sul-card {
  border-radius: var(--sul-radius-2xl);
  box-shadow: var(--sul-shadow-md);
}

/* --- Role chips: the UPN as plain text, each role its own small neutral pill ----------------- */

.sul-admin-whoami {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
}

.sul-admin-whoami__upn {
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-sm);
}

/* Small caps, not a change of size from the base .sul-pill -- font-variant rather than a smaller
   font-size keeps it legible while still reading as a compact tag next to the UPN. */
.sul-admin-role {
  font-variant-caps: all-small-caps;
  letter-spacing: var(--sul-tracking-tight);
}

/* --- Status pill: icon + trailing action, separated rather than read as one run-on sentence -- */

.sul-admin-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sul-spacing-base);
  flex-wrap: wrap;
}

.sul-admin-alert__action {
  flex: 0 0 auto;
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-primary-action);
}

/* --- The "Find a business" advisory bar: muted, tinted, with a lock mark -------------------- */

/* .sul-devnotice is the one existing muted-callout pattern in the product (the dev-mode OTP
   notice); this reuses its box and swaps warning's pastel/ink pair for info's, because this is
   routine information about logging rather than something to be alarmed about. */
.sul-admin-advisory {
  background: var(--sul-pastel-info);
  color: var(--sul-info-dark);
  align-items: center;
}

.sul-admin-advisory__icon {
  display: inline-flex;
  flex: 0 0 auto;
}

.sul-admin-advisory__icon svg {
  width: var(--sul-font-base);
  height: var(--sul-font-base);
}

/* --- Dashboard (/admin) -----------------------------------------------------------------------

   A search bar with the button beside it, one results list for both sources, four stat tiles,
   then "Needs attention" and "Publishing by platform" side by side. Every value is an existing
   token. */

.sul-admin-search {
  display: flex;
  gap: var(--sul-spacing-compact);
  align-items: stretch;
}

.sul-admin-search__by {
  flex: 0 0 auto;
  width: auto;
  min-height: var(--sul-control-touch-min);
  font-size: var(--sul-font-base);
}

.sul-admin-search__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.sul-admin-search__icon {
  position: absolute;
  top: 50%;
  left: var(--sul-spacing-base);
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--sul-muted);
  pointer-events: none;
}

.sul-admin-search__icon svg {
  width: var(--sul-font-lg);
  height: var(--sul-font-lg);
}

.sul-admin-search__input {
  min-height: var(--sul-control-touch-min);
  padding-left: calc(var(--sul-spacing-base) + var(--sul-font-lg) + var(--sul-spacing-sm));
  padding-right: var(--sul-control-touch-min);
  font-size: var(--sul-font-base);
}

/* The browser's own clear control would sit beside ours; one is enough. */
.sul-admin-search__input::-webkit-search-cancel-button { display: none; }

.sul-admin-search__clear {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: var(--sul-control-touch-min);
  color: var(--sul-muted);
  font-size: var(--sul-font-xl);
  text-decoration: none;
  border-radius: var(--sul-radius-lg);
}

.sul-admin-search__clear:hover { color: var(--sul-text); }

.sul-admin-search__submit {
  min-height: var(--sul-control-touch-min);
  padding-left: var(--sul-spacing-2xl);
  padding-right: var(--sul-spacing-2xl);
}

/* "Find a business": one panel holding the type-ahead, its "Search in" chips and the operator
   notice. Stacked above the tiles (z-index) so the dropdown can overlap them, but BELOW the
   sticky topbar (z-index 10): at 20 the panel scrolled over the header and hid it. */
.sul-admin-find {
  position: relative;
  z-index: 2;
  margin: 0 var(--sul-card-padding-h) var(--sul-card-gap);
  padding: var(--sul-spacing-lg) var(--sul-spacing-lg) var(--sul-spacing-base);
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-2xl);
  box-shadow: var(--sul-shadow-md);
}

.sul-admin-find__title {
  margin: 0 0 var(--sul-spacing-base);
  font-size: var(--sul-font-base);
  font-weight: 700;
  color: var(--sul-text);
}

/* "1 What do you have?" / "2 Enter the listing ID": the two steps the panel is read in. */
.sul-admin-finder__step {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  margin: 0 0 var(--sul-spacing-sm);
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-muted);
}

.sul-admin-finder__step label { cursor: default; }

.sul-admin-finder__step-num {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  border-radius: 50%;
  background: var(--sul-primary-action);
  color: var(--sul-surface);
  font-size: var(--sul-font-micro);
}

.sul-admin-finder__kinds {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-xs);
  margin-bottom: var(--sul-spacing-base);
}

.sul-admin-finder__kind {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  min-height: var(--sul-control-touch-min);
  padding: 0 var(--sul-spacing-base) 0 var(--sul-spacing-compact);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  color: var(--sul-text);
  font: inherit;
  font-size: var(--sul-font-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--sul-transition-fast), background var(--sul-transition-fast);
}

.sul-admin-finder__kind:hover { border-color: var(--sul-muted); }

.sul-admin-finder__kind svg {
  flex: none;
  width: var(--sul-font-base);
  height: var(--sul-font-base);
  color: var(--sul-muted);
}

.sul-admin-finder__kind[aria-pressed="true"] {
  background: var(--sul-primary-action);
  border-color: var(--sul-primary-action);
  color: var(--sul-surface);
  box-shadow: 0 0 0 var(--sul-spacing-xxs) var(--sul-pastel-primary);
}

.sul-admin-finder__kind[aria-pressed="true"] svg { color: var(--sul-surface); }

.sul-admin-finder__kind:disabled {
  opacity: var(--sul-opacity-disabled);
  cursor: not-allowed;
}

.sul-admin-finder__kind-tag {
  padding: 0 var(--sul-spacing-xs);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-pastel-info);
  color: var(--sul-info-dark);
  font-size: var(--sul-font-micro);
  font-weight: 700;
}

.sul-admin-finder__kind[aria-pressed="true"] .sul-admin-finder__kind-tag {
  background: var(--sul-surface);
  color: var(--sul-primary-action-strong);
}

.sul-admin-finder { position: relative; }

.sul-admin-finder__row {
  display: flex;
  gap: var(--sul-spacing-sm);
}

.sul-admin-finder__row .sul-admin-finder__box { flex: 1 1 auto; min-width: 0; }

.sul-admin-finder__go-button {
  flex: none;
  min-height: calc(var(--sul-control-touch-min) + var(--sul-spacing-sm));
  border-radius: var(--sul-radius-xl);
}

.sul-admin-finder__box {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-compact);
  min-height: calc(var(--sul-control-touch-min) + var(--sul-spacing-sm));
  padding: 0 var(--sul-spacing-sm) 0 var(--sul-spacing-base);
  background: var(--sul-surface);
  border: calc(var(--sul-card-border) * 1.5) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  transition: border-color var(--sul-transition-fast), box-shadow var(--sul-transition-fast);
}

.sul-admin-finder__box:focus-within {
  border-color: var(--sul-primary-action);
  box-shadow: 0 0 0 var(--sul-spacing-xs) var(--sul-pastel-primary);
}

.sul-admin-finder__box > svg {
  flex: none;
  width: var(--sul-font-lg);
  height: var(--sul-font-lg);
  color: var(--sul-muted);
}

.sul-admin-finder__input {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  border: 0;
  outline: none;
  background: none;
  color: var(--sul-text);
  font: inherit;
  font-size: var(--sul-font-base);
}

.sul-admin-finder__input::placeholder { color: var(--sul-placeholder); }
.sul-admin-finder__input::-webkit-search-cancel-button { display: none; }

.sul-admin-finder__detect {
  flex: none;
  padding: var(--sul-spacing-xxs) var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-background);
  color: var(--sul-muted);
  font-size: var(--sul-font-micro);
  font-weight: 600;
  white-space: nowrap;
}

.sul-admin-finder__detect--on {
  background: var(--sul-pastel-primary);
  color: var(--sul-primary-action-strong);
}

.sul-admin-finder__spin {
  flex: none;
  width: var(--sul-font-base);
  height: var(--sul-font-base);
  border: calc(var(--sul-card-border) * 2) solid var(--sul-border);
  border-top-color: var(--sul-primary-action);
  border-radius: 50%;
  animation: sul-admin-finder-spin 0.6s linear infinite;
}

@keyframes sul-admin-finder-spin { to { transform: rotate(360deg); } }

.sul-admin-finder__clear {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--sul-avatar-sm);
  height: var(--sul-avatar-sm);
  padding: 0;
  border: 0;
  border-radius: var(--sul-radius-lg);
  background: none;
  color: var(--sul-muted);
  font-size: var(--sul-font-lg);
  cursor: pointer;
}

.sul-admin-finder__clear:hover { color: var(--sul-text); }

/* Locked while a business opens or imports: nothing here may start a second one. */
.sul-admin-finder__box--busy { background: var(--sul-background); }
.sul-admin-finder__input:disabled { color: var(--sul-text); -webkit-text-fill-color: var(--sul-text); }

.sul-admin-finder__box--error,
.sul-admin-finder__box--error:focus-within {
  border-color: var(--sul-danger);
  box-shadow: 0 0 0 var(--sul-spacing-xs) var(--sul-pastel-danger);
}

.sul-admin-finder__busy {
  margin: var(--sul-spacing-sm) 0 0;
  font-size: var(--sul-font-sm);
  font-weight: 600;
  color: var(--sul-primary-action-strong);
}

/* Under the box: what this kind of value expects, or what is wrong with it. */
.sul-admin-finder__hint {
  min-height: calc(var(--sul-font-xs) * 1.5);
  margin: var(--sul-spacing-sm) 0 0;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-admin-finder__hint--error { color: var(--sul-danger); }

/* The dropdown. Scrolls on its own; the key hints stay pinned to its foot. */
.sul-admin-finder__menu {
  position: absolute;
  top: calc(100% + var(--sul-spacing-xs));
  left: 0;
  right: 0;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  box-shadow: var(--sul-shadow-lg);
}

.sul-admin-finder__group {
  display: flex;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-compact) var(--sul-spacing-base) var(--sul-spacing-xs);
  font-size: var(--sul-font-micro);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--sul-muted);
}

.sul-admin-finder__group em {
  margin-left: auto;
  font-style: normal;
  text-transform: none;
}

.sul-admin-finder__option {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-left: calc(var(--sul-card-border) * 3) solid transparent;
  cursor: pointer;
}

.sul-admin-finder__option[aria-selected="true"] {
  background: var(--sul-selected-bg);
  border-left-color: var(--sul-primary-action);
}

.sul-admin-finder__option .sul-admin-result__mark {
  width: var(--sul-avatar-md);
  height: var(--sul-avatar-md);
  border-radius: var(--sul-radius-lg);
  font-size: var(--sul-font-xs);
}

.sul-admin-finder__text { flex: 1 1 auto; min-width: 0; }

/* The whole name, wrapped: listing names run long ("Himalayas Psychic & Indian Spiritual Healer
   Astrologer ...") and the part an ellipsis hides is often the part that tells two apart. */
.sul-admin-finder__name {
  display: block;
  font-weight: 600;
  color: var(--sul-text);
  overflow-wrap: anywhere;
}

.sul-admin-finder__meta {
  display: block;
  overflow: hidden;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sul-admin-finder__meta > span + span::before {
  content: "\00B7";
  margin: 0 var(--sul-spacing-xs);
}

.sul-admin-finder__why { color: var(--sul-primary-action-strong); }

.sul-admin-finder__go {
  flex: none;
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-primary-action);
  opacity: 0;
}

.sul-admin-finder__option[aria-selected="true"] .sul-admin-finder__go { opacity: 1; }

.sul-admin-finder__skel {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
}

.sul-admin-finder__skel i {
  display: block;
  border-radius: var(--sul-radius-base);
  background: var(--sul-background);
  animation: sul-admin-finder-pulse 1s ease-in-out infinite alternate;
}

.sul-admin-finder__skel i:first-child { flex: none; width: var(--sul-avatar-md); height: var(--sul-avatar-md); }
.sul-admin-finder__skel span { display: grid; flex: 1 1 auto; gap: var(--sul-spacing-xs); }
.sul-admin-finder__skel span i { width: 55%; height: var(--sul-spacing-base); }
.sul-admin-finder__skel span i + i { width: 30%; height: var(--sul-spacing-compact); }

@keyframes sul-admin-finder-pulse { to { opacity: var(--sul-opacity-disabled); } }

@media (prefers-reduced-motion: reduce) {
  .sul-admin-finder__spin,
  .sul-admin-finder__skel i { animation: none; }
}

.sul-admin-finder__empty {
  padding: var(--sul-spacing-xl) var(--sul-spacing-base);
  text-align: center;
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}

.sul-admin-finder__empty b {
  display: block;
  margin-bottom: var(--sul-spacing-xs);
  color: var(--sul-text);
}

.sul-admin-finder__recent {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  font-size: var(--sul-font-sm);
  color: var(--sul-text-secondary);
  cursor: pointer;
}

.sul-admin-finder__recent[aria-selected="true"] { background: var(--sul-selected-bg); color: var(--sul-text); }

.sul-admin-finder__recent svg {
  flex: none;
  width: var(--sul-font-sm);
  height: var(--sul-font-sm);
  color: var(--sul-muted);
}

.sul-admin-finder__keys {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-top: var(--sul-card-border) solid var(--sul-border);
  background: var(--sul-background);
  font-size: var(--sul-font-micro);
  color: var(--sul-muted);
}

.sul-admin-finder__keys kbd {
  padding: var(--sul-spacing-xxs) var(--sul-spacing-xs);
  border: var(--sul-card-border) solid var(--sul-border);
  border-bottom-width: calc(var(--sul-card-border) * 2);
  border-radius: var(--sul-radius-sm);
  background: var(--sul-surface);
  color: var(--sul-text-secondary);
  font: inherit;
}

.sul-admin-advisory-line {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  margin: var(--sul-spacing-xs) 0 0;
  font-size: var(--sul-font-xs);
  color: var(--sul-text-secondary);
}

.sul-admin-advisory-line__icon {
  display: inline-flex;
  flex: none;
  color: var(--sul-warning-dark);
}

.sul-admin-advisory-line__icon svg {
  width: var(--sul-font-sm);
  height: var(--sul-font-sm);
}

/* Results: a header line, then a divided list. */
.sul-admin-results__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-admin-results__count { font-size: var(--sul-font-base); color: var(--sul-text); }

.sul-admin-results__context { font-size: var(--sul-font-sm); color: var(--sul-muted); }

.sul-admin-results__notice { padding: var(--sul-spacing-base) var(--sul-spacing-lg) 0; }

.sul-admin-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sul-admin-result {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border-top: var(--sul-card-border) solid var(--sul-border);
}

.sul-admin-result:first-child { border-top: 0; }

.sul-admin-result__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--sul-control-touch-min);
  height: var(--sul-control-touch-min);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-pastel-primary);
  color: var(--sul-primary-action-strong);
  font-size: var(--sul-font-sm);
  font-weight: 700;
}

/* A listing that is not ours yet takes info's pair, matching its "On Sulekha" pill. */
.sul-admin-result__mark--directory {
  background: var(--sul-pastel-info);
  color: var(--sul-info-dark);
}

.sul-admin-result__body {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xxs);
  flex: 1 1 auto;
  min-width: 0;
}

.sul-admin-result__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sul-spacing-sm);
}

.sul-admin-result__name {
  font-size: var(--sul-font-base);
  font-weight: 600;
  color: var(--sul-text);
}

/* A Sulekha listing with no active campaign: listed, not importable; the pill says why. */
.sul-admin-result--off .sul-admin-result__name { color: var(--sul-text-secondary); }

.sul-admin-result__meta {
  display: flex;
  flex-wrap: wrap;
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}

/* A middot between parts, drawn by CSS so an absent part leaves no stray separator. */
.sul-admin-result__meta > span + span::before {
  content: "\00B7";
  margin: 0 var(--sul-spacing-sm);
}

.sul-admin-result__id { font-size: var(--sul-font-xs); }

.sul-admin-result__action { margin: 0; flex: none; }

.sul-admin-match {
  background: var(--sul-pastel-warning);
  color: inherit;
  border-radius: var(--sul-radius-xs);
  padding: 0 var(--sul-spacing-xxs);
}

.sul-admin-results__foot {
  margin: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-lg) var(--sul-spacing-base);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

/* Stat tiles and the two-up row sit in the same gutter as a .sul-card, so the page edges line up. */
.sul-admin-stats,
.sul-admin-split {
  display: grid;
  gap: var(--sul-spacing-base);
  margin: 0 var(--sul-card-padding-h) var(--sul-card-gap);
}

.sul-admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.sul-admin-split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }

.sul-admin-split > .sul-card { margin: 0; }

.sul-admin-stat {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-lg) var(--sul-spacing-lg) var(--sul-spacing-base);
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-2xl);
  box-shadow: var(--sul-shadow-md);
}

.sul-admin-stat__value {
  font-size: var(--sul-font-3xl);
  font-weight: 700;
  line-height: 1.1;
  color: var(--sul-text);
  font-variant-numeric: tabular-nums;
}

.sul-admin-stat__label { font-size: var(--sul-font-sm); color: var(--sul-muted); }

/* The dashboard's tiles read label, figure, note -- the figure larger than the list pages'. */
.sul-admin-stats--kpi .sul-admin-stat { gap: var(--sul-spacing-xxs); }
.sul-admin-stats--kpi .sul-admin-stat__value { font-size: var(--sul-font-4xl); letter-spacing: var(--sul-tracking-tighter); }

.sul-admin-stat__note { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-admin-stat__note--danger { color: var(--sul-danger); }

/* A tile that opens the list it counts. The global a:focus-visible ring covers the keyboard. */
a.sul-admin-stat { text-decoration: none; color: inherit; }
a.sul-admin-stat:hover { border-color: var(--sul-primary-action); }
a.sul-admin-stat:hover .sul-admin-stat__label { color: var(--sul-primary-action); }

.sul-admin-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-base) var(--sul-card-padding-h);
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}

.sul-admin-pager__links { display: flex; gap: var(--sul-spacing-sm); }

/* --- The business list (/admin/businesses) ----------------------------------------------------
   The admin-businesses island: KPI tiles that filter, a toolbar (search, channel, assignee, sort),
   an optional bulk bar, the table, the pager, and a slide-over with the detail. The table itself
   is the .sul-admin-biz rules below, shared with the markup it replaced. */

.sul-admin-bizlist__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sul-spacing-base);
  flex-wrap: wrap;
}

.sul-admin-bizlist__head > :first-child { flex: 1 1 auto; min-width: 0; }
.sul-admin-bizlist__add { flex: none; margin-top: var(--sul-spacing-lg); }

/* Five tiles across at console width, then three, then two. */
.sul-admin-bizlist__tiles {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--sul-spacing-compact);
  margin: 0 var(--sul-card-padding-h) var(--sul-card-gap);
}

.sul-admin-bizlist__tile {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xxs);
  min-width: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-card-radius);
  font: inherit;
  text-align: left;
  color: var(--sul-text);
  cursor: pointer;
  transition: border-color var(--sul-transition-fast), box-shadow var(--sul-transition-fast);
}

.sul-admin-bizlist__tile:hover { border-color: var(--sul-muted); }

.sul-admin-bizlist__tile:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}

.sul-admin-bizlist__tile--current,
.sul-admin-bizlist__tile--current:hover {
  border-color: var(--sul-text);
  box-shadow: 0 0 0 var(--sul-card-border) var(--sul-text);
}

.sul-admin-bizlist__tile-label {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  min-width: 0;
  font-size: var(--sul-font-xs);
  color: var(--sul-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sul-admin-bizlist__tile-count {
  font-size: var(--sul-font-xl);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: var(--sul-tracking-tight);
  font-variant-numeric: tabular-nums;
}

.sul-admin-bizlist__tile-note {
  font-size: var(--sul-font-2xs);
  color: var(--sul-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The staff pickers inside the Reassign popovers and the bulk bar hang below the card's edge. */
.sul-admin-bizlist__card { overflow: visible; }

.sul-admin-bizlist__toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-admin-bizlist__search {
  flex: 0 1 calc(var(--sul-spacing-3xl) * 10);
  min-width: 0;
}

.sul-admin-bizlist__select { width: auto; font-size: var(--sul-font-sm); }
.sul-admin-bizlist__spacer { flex: 1 1 auto; }

/* Only while rows are ticked: what is selected, who to hand them to, and the way out. */
.sul-admin-bizlist__bulk {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-sm) var(--sul-spacing-lg);
  background: var(--sul-selected-bg);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
  font-size: var(--sul-font-sm);
}

.sul-admin-bizlist__bulk .sul-staff-picker {
  position: relative;
  flex: 0 1 calc(var(--sul-spacing-3xl) * 9);
  min-width: 0;
}

.sul-admin-bizlist__notice {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  margin: 0 var(--sul-card-padding-h) var(--sul-card-gap);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-radius: var(--sul-radius-lg);
  font-size: var(--sul-font-sm);
}

.sul-admin-bizlist__notice--ok { background: var(--sul-success-light); color: var(--sul-success-dark); }
.sul-admin-bizlist__notice--bad { background: var(--sul-pastel-danger); color: var(--sul-danger); }

.sul-admin-bizlist__card .sul-admin-bizlist__notice { margin: var(--sul-spacing-base) var(--sul-spacing-lg); }

.sul-admin-bizlist__notice-close {
  margin-left: auto;
  padding: 0 var(--sul-spacing-xs);
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--sul-font-lg);
  color: inherit;
  cursor: pointer;
}

/* The table fits the card (fixed columns below), so nothing scrolls sideways and the channel
   tooltips and operator popovers are free to hang over the neighbouring rows. */
.sul-admin-bizlist__scroll { overflow: visible; }
.sul-admin-bizlist__scroll[aria-busy="true"] { opacity: var(--sul-opacity-hover); }

/* What the dots on the channel marks mean, once, above the rows rather than in every tooltip. */
.sul-admin-bizlist__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-xs) var(--sul-spacing-xl);
  padding: var(--sul-spacing-sm) var(--sul-spacing-lg);
  background: var(--sul-background);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-admin-bizlist__legend > span { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); }
.sul-admin-bizlist__dot-off { background: var(--sul-disabled); }

/* Fixed layout: every column takes a share of the card and its content ellipsises inside it. */
.sul-admin-bizlist__table { table-layout: fixed; }
.sul-admin-bizlist__col--check { width: calc(var(--sul-spacing-3xl) + var(--sul-spacing-base)); }
/* Channels holds six marks since Sulekha and ProManage were listed as always connected (2026-10-09),
   so it takes four points from Business, which ellipsises anyway. */
.sul-admin-bizlist__col--business { width: 26%; }
.sul-admin-bizlist__col--status { width: 12%; }
.sul-admin-bizlist__col--channels { width: 19%; }
.sul-admin-bizlist__col--posts { width: 11%; }
.sul-admin-bizlist__col--assigned { width: 16%; }
.sul-admin-bizlist__col--added { width: 8%; }
.sul-admin-bizlist__col--actions { width: calc(var(--sul-spacing-3xl) * 4 + var(--sul-spacing-base)); }

.sul-admin-bizlist__table td { padding-top: var(--sul-spacing-base); padding-bottom: var(--sul-spacing-base); }
.sul-admin-bizlist__num { text-align: right; }

.sul-admin-bizlist__check { width: var(--sul-spacing-3xl); }

.sul-admin-bizlist__check input {
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  accent-color: var(--sul-primary-action);
  cursor: pointer;
}

/* A red edge on a row that needs a person, so it can be found scrolling past. */
.sul-admin-bizlist__row--attention td:first-child { box-shadow: inset var(--sul-spacing-xxs) 0 0 var(--sul-danger); }
.sul-admin-bizlist__row--selected td,
.sul-admin-bizlist__row--selected:hover td { background: var(--sul-selected-bg); }

/* Business: logo, then name over "#id · city · Sulekha · Website", then the sync button. */
.sul-admin-bizlist__biz {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  min-width: 0;
}

.sul-admin-bizlist__logo {
  width: var(--sul-avatar-md);
  height: var(--sul-avatar-md);
  border-radius: var(--sul-radius-lg);
  font-size: var(--sul-font-xs);
}

/* BusinessLogo appends "--logo" to the LAST class it is given, so the uploaded-logo tile is
   sul-admin-bizlist__logo--logo, not the result tile's --logo. Without these the <img> renders
   at its natural size and spills over the rows below. */
.sul-admin-bizlist__logo--logo {
  overflow: hidden;
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
}

.sul-admin-bizlist__logo--logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sul-admin-bizlist__info {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xxs);
  flex: 1 1 auto;
  min-width: 0;
}

/* The business name opens the slide-over: a button, reset to look like the text it is. One line;
   the full name is the tooltip and the drawer's title. */
.sul-admin-bizlist__open {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--sul-font-sm);
  font-weight: 600;
  text-align: left;
  color: var(--sul-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.sul-admin-bizlist__open:hover { text-decoration: underline; }

.sul-admin-bizlist__meta {
  display: block;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sul-admin-bizlist__meta-item + .sul-admin-bizlist__meta-item::before {
  content: "·";
  margin: 0 var(--sul-spacing-xs);
  color: var(--sul-muted);
}

/* A square icon button: the row's Sync, which spins while the listing is being re-read. */
.sul-admin-bizlist__icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--sul-avatar-sm);
  height: var(--sul-avatar-sm);
  padding: 0;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-base);
  background: var(--sul-surface);
  color: var(--sul-muted);
  cursor: pointer;
}

.sul-admin-bizlist__icon-btn:hover:not(:disabled) { color: var(--sul-text); border-color: var(--sul-muted); background: var(--sul-background); }
.sul-admin-bizlist__icon-btn:disabled { cursor: default; }

.sul-admin-bizlist__icon-btn svg { width: var(--sul-font-sm); height: var(--sul-font-sm); }

.sul-admin-bizlist__icon-btn--busy svg { animation: sul-admin-bizlist-spin 1s linear infinite; }

/* Delete a business from its row (migration 133). */
.sul-admin-bizlist__icon-btn--danger:hover:not(:disabled) {
  color: var(--sul-danger);
  border-color: color-mix(in srgb, var(--sul-danger) 35%, var(--sul-border));
  background: var(--sul-pastel-danger);
}
.sul-admin-bizlist__delete-text { margin: 0; font-size: var(--sul-font-sm); color: var(--sul-text-secondary); }
.sul-admin-bizlist__delete-btn,
.sul-admin-bizlist__delete-btn:hover:not(:disabled) { background: var(--sul-danger); color: var(--sul-surface); }

@keyframes sul-admin-bizlist-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .sul-admin-bizlist__icon-btn--busy svg { animation: none; }
}

/* Channels: a round mark per platform, a dot on its corner, the words in a tooltip. */
/* Wraps rather than spilling into Posts · 7d when the column is narrower than the marks: a fixed-
   layout cell does not grow, and nowrap content simply paints over the next column. */
.sul-admin-bizlist__chs { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); max-width: 100%; }

.sul-admin-bizlist__ch {
  position: relative;
  display: inline-flex;
  border-radius: var(--sul-radius-pill);
  outline: none;
}

.sul-admin-bizlist__ch:focus-visible { box-shadow: 0 0 0 var(--sul-spacing-xxs) var(--sul-focus); }

/* Not connected: the same mark, drained of colour, on a dashed ring. */
.sul-admin-bizlist__ch--off .sul-platform-icon {
  background: var(--sul-background);
  outline: var(--sul-card-border) dashed var(--sul-disabled);
}

.sul-admin-bizlist__ch--off .sul-platform-icon__mark,
.sul-admin-bizlist__ch--off .sul-platform-pair__mark { filter: grayscale(1); opacity: var(--sul-opacity-disabled); }

.sul-admin-bizlist__ch-badge {
  position: absolute;
  right: calc(var(--sul-spacing-xxs) * -1);
  bottom: calc(var(--sul-spacing-xxs) * -1);
  width: var(--sul-spacing-compact);
  height: var(--sul-spacing-compact);
  border: var(--sul-spacing-xxs) solid var(--sul-surface);
  border-radius: var(--sul-radius-pill);
}

.sul-admin-bizlist__ch-badge--on { background: var(--sul-success-dark); }
.sul-admin-bizlist__ch-badge--attention { background: var(--sul-danger); }

.sul-admin-bizlist__tip {
  position: absolute;
  bottom: calc(100% + var(--sul-spacing-sm));
  left: 50%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  background: var(--sul-text);
  color: var(--sul-surface);
  border-radius: var(--sul-radius-lg);
  box-shadow: var(--sul-shadow-lg);
  font-size: var(--sul-font-xs);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(var(--sul-spacing-xs));
  transition: opacity var(--sul-transition-fast), transform var(--sul-transition-fast);
}

.sul-admin-bizlist__tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: calc(var(--sul-spacing-xs) * -1);
  border: var(--sul-spacing-xs) solid transparent;
  border-top-color: var(--sul-text);
}

.sul-admin-bizlist__ch:hover .sul-admin-bizlist__tip,
.sul-admin-bizlist__ch:focus-visible .sul-admin-bizlist__tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* The issue in the server's words under the marks; opens the drawer, where it can be fixed. */
.sul-admin-bizlist__issue-sum {
  display: block;
  max-width: 100%;
  margin-top: var(--sul-spacing-xs);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--sul-font-xs);
  font-weight: 600;
  text-align: left;
  color: var(--sul-danger);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.sul-admin-bizlist__issue-sum:hover { text-decoration: underline; }
.sul-admin-bizlist__issue-sum--warning { color: var(--sul-warning-dark); }

/* Assigned to: an avatar stack, the first name (+N), and Add / Reassign under it. */
.sul-admin-bizlist__asg { display: flex; align-items: center; gap: var(--sul-spacing-sm); min-width: 0; }
.sul-admin-bizlist__stack { display: flex; flex: none; }

.sul-admin-bizlist__av {
  display: grid;
  place-items: center;
  width: var(--sul-avatar-sm);
  height: var(--sul-avatar-sm);
  border: var(--sul-spacing-xxs) solid var(--sul-surface);
  border-radius: var(--sul-radius-pill);
  font-size: var(--sul-font-xxs);
  font-weight: 700;
}

.sul-admin-bizlist__av + .sul-admin-bizlist__av { margin-left: calc(var(--sul-spacing-sm) * -1); }

.sul-admin-bizlist__av--0 { background: var(--sul-role-super-admin-bg); color: var(--sul-role-super-admin); }
.sul-admin-bizlist__av--1 { background: var(--sul-role-content-admin-bg); color: var(--sul-role-content-admin); }
.sul-admin-bizlist__av--2 { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-admin-bizlist__av--3 { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }
.sul-admin-bizlist__av--4 { background: var(--sul-pastel-info); color: var(--sul-info-dark); }

.sul-admin-bizlist__asg-body { display: flex; flex-direction: column; min-width: 0; }

.sul-admin-bizlist__asg-name {
  font-size: var(--sul-font-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sul-admin-bizlist__asg-more { color: var(--sul-muted); }

.sul-admin-bizlist__asg-acts { display: flex; gap: var(--sul-spacing-compact); white-space: nowrap; }
.sul-admin-bizlist__asg-acts .sul-admin-biz__reassign-toggle { font-size: var(--sul-font-xs); }

/* Nobody operates it: a dashed "+ Assign" chip, the one thing to do in that cell. */
.sul-admin-bizlist__assign-empty {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xxs) var(--sul-spacing-compact) var(--sul-spacing-xxs) var(--sul-spacing-xxs);
  border: var(--sul-card-border) dashed var(--sul-disabled);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-primary-action);
}

.sul-admin-bizlist__assign-empty:hover { border-color: var(--sul-primary-action); }

.sul-admin-bizlist__assign-plus {
  display: grid;
  place-items: center;
  width: var(--sul-spacing-xl);
  height: var(--sul-spacing-xl);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-pastel-primary);
}

.sul-admin-bizlist__table .sul-admin-biz__cell-action { white-space: nowrap; }
.sul-admin-bizlist__table .sul-admin-biz__added { color: var(--sul-text-secondary); }

.sul-admin-bizlist__operate { display: inline-flex; align-items: center; gap: var(--sul-spacing-xxs); }
.sul-admin-bizlist__operate svg { width: var(--sul-font-sm); height: var(--sul-font-sm); }

.sul-admin-bizlist__link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-primary-action);
  cursor: pointer;
}

.sul-admin-bizlist__link:hover { text-decoration: underline; }


.sul-admin-bizlist__posts {
  display: inline-flex;
  align-items: flex-end;
  gap: var(--sul-spacing-sm);
  font-variant-numeric: tabular-nums;
}

/* Seven bars, one a day, oldest first. Heights are steps of a token: 0 posts is a stub, 4+ is full. */
.sul-admin-bizlist__spark {
  display: inline-flex;
  align-items: flex-end;
  gap: var(--sul-spacing-xxs);
  height: var(--sul-spacing-lg);
}

.sul-admin-bizlist__bar {
  width: var(--sul-spacing-xs);
  border-radius: var(--sul-radius-xs);
  background: var(--sul-primary);
}

.sul-admin-bizlist__bar--0 { height: var(--sul-spacing-xxs); background: var(--sul-border); }
.sul-admin-bizlist__bar--1 { height: calc(var(--sul-spacing-lg) / 4); }
.sul-admin-bizlist__bar--2 { height: calc(var(--sul-spacing-lg) / 2); }
.sul-admin-bizlist__bar--3 { height: calc(var(--sul-spacing-lg) * 3 / 4); }
.sul-admin-bizlist__bar--4 { height: var(--sul-spacing-lg); }

/* The pager's buttons were links; reset them to the same square. */
button.sul-admin-biz__page { background: none; font: inherit; cursor: pointer; }
button.sul-admin-biz__page:disabled,
button.sul-admin-biz__page:disabled:hover { color: var(--sul-disabled); background: none; cursor: default; }

/* The slide-over. */
.sul-admin-bizlist__drawer .sul-dialog__foot { display: flex; gap: var(--sul-spacing-sm); }
.sul-admin-bizlist__operate-wide { flex: 1 1 auto; justify-content: center; }

.sul-admin-bizlist__issues {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  margin-bottom: var(--sul-spacing-base);
  background: var(--sul-pastel-danger);
  border-radius: var(--sul-radius-lg);
}

.sul-admin-bizlist__drawer-head {
  margin: var(--sul-spacing-lg) 0 var(--sul-spacing-sm);
  font-size: var(--sul-font-2xs);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--sul-text-secondary);
}

.sul-admin-bizlist__channels { margin: 0; padding: 0; list-style: none; }

.sul-admin-bizlist__channel {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-sm) 0;
  border-bottom: var(--sul-card-border) solid var(--sul-border);
  font-size: var(--sul-font-sm);
}

.sul-admin-bizlist__channel-name { flex: 1 1 auto; }
.sul-admin-bizlist__channel-state { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-admin-bizlist__channel-state--on { color: var(--sul-success-dark); }
.sul-admin-bizlist__channel-state--attention { color: var(--sul-danger); }

.sul-admin-bizlist__facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--sul-spacing-xs) var(--sul-spacing-base);
  margin: 0;
  font-size: var(--sul-font-sm);
}

.sul-admin-bizlist__facts dt { color: var(--sul-text-secondary); }
.sul-admin-bizlist__facts dd { margin: 0; }

/* Breakpoint literals: @media cannot read a custom property. 640 is breakpoint.mobile-max.
   Seven compact tiles stay on one row on a laptop and wider (labels and notes ellipsise);
   below that they would be too narrow to read, so they wrap four a row. */
@media (max-width: 1100px) {
  .sul-admin-bizlist__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* A laptop: Added goes first (it is in the drawer), then the sparkline, so the rest still fits. */
@media (min-width: 861px) and (max-width: 1280px) {
  .sul-admin-bizlist__col--added,
  .sul-admin-bizlist__table .sul-admin-bizlist__added { display: none; }
  .sul-admin-bizlist__col--business { width: 28%; }
  .sul-admin-bizlist__col--assigned { width: 18%; }
}

@media (min-width: 861px) and (max-width: 1080px) {
  .sul-admin-bizlist__spark { display: none; }
  .sul-admin-bizlist__col--posts { width: 8%; }
}

@media (max-width: 640px) {
  .sul-admin-bizlist__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sul-admin-bizlist__search { flex-basis: 100%; }
  .sul-admin-bizlist__spacer { display: none; }
}

/* The table. */
.sul-admin-biz {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--sul-font-sm);
}

.sul-admin-biz th {
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  background: var(--sul-background);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
  text-align: left;
  font-size: var(--sul-font-xs);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--sul-text-secondary);
  white-space: nowrap;
}

.sul-admin-biz td {
  padding: var(--sul-spacing-base);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
  vertical-align: middle;
  color: var(--sul-text);
}

.sul-admin-biz th:first-child,
.sul-admin-biz td:first-child { padding-left: var(--sul-spacing-lg); }

.sul-admin-biz th:last-child,
.sul-admin-biz td:last-child { padding-right: var(--sul-spacing-lg); }

.sul-admin-biz tbody tr { transition: background var(--sul-transition-fast); }
.sul-admin-biz tbody tr:hover { background: var(--sul-background); }

.sul-admin-biz__business {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
}

.sul-admin-biz__names {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xxs);
  min-width: 0;
}

.sul-admin-biz__name {
  font-size: var(--sul-font-base);
  font-weight: 600;
  color: var(--sul-text);
}

.sul-admin-biz__city { color: var(--sul-muted); }

.sul-admin-biz__status,
.sul-admin-biz__channels { white-space: nowrap; }

.sul-admin-biz__steps {
  display: flex;
  gap: var(--sul-spacing-xs);
  margin: var(--sul-spacing-xs) 0 var(--sul-spacing-xxs);
}

.sul-admin-biz__step {
  width: var(--sul-spacing-xl);
  height: var(--sul-spacing-xs);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-border);
}

.sul-admin-biz__step--done { background: var(--sul-info-dark); }

.sul-admin-biz__step-label {
  display: block;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-admin-biz__channel-line {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-compact);
  font-variant-numeric: tabular-nums;
}

.sul-admin-biz__platforms { display: inline-flex; gap: var(--sul-spacing-xs); }

.sul-admin-biz__platform {
  display: inline-flex;
  border-radius: var(--sul-radius-pill);
}

/* Not connected: the same mark, drained of colour and faded, so the row still shows which four
   platforms exist and which ones this business has. */
.sul-admin-biz__platform--off .sul-platform-icon {
  filter: grayscale(1);
  opacity: var(--sul-opacity-disabled);
}

.sul-admin-biz__platform--attention {
  box-shadow: 0 0 0 var(--sul-spacing-xxs) var(--sul-danger);
}

.sul-admin-biz__problem {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-xxs);
  width: fit-content;
  margin-top: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xxs) var(--sul-spacing-sm);
  background: var(--sul-pastel-danger);
  border-radius: var(--sul-radius-sm);
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-danger);
}

/* A failed post is a warning, not a broken channel: nothing needs reconnecting to fix it. */
.sul-admin-biz__problem--warning {
  background: var(--sul-pastel-warning);
  color: var(--sul-warning-dark);
}

/* The problem is also the way to it: the Channels page or the failed-posts log. */
.sul-admin-biz__problem a {
  color: inherit;
  text-decoration: underline;
}

.sul-admin-biz__problem-icon { display: inline-flex; }

.sul-admin-biz__problem-icon svg {
  width: var(--sul-font-xs);
  height: var(--sul-font-xs);
}

.sul-admin-biz__id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--sul-font-xs);
  color: var(--sul-text);
}

.sul-admin-biz__none { color: var(--sul-muted); }

/* Assigned to: one line per operator, name over UPN, the same pairing as the business column. */
.sul-admin-biz__operator-list {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sul-admin-biz__operator {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xxs);
  min-width: 0;
}

.sul-admin-biz__operator-name {
  font-weight: 600;
  color: var(--sul-text);
}

.sul-admin-biz__operator-upn {
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
  overflow-wrap: anywhere;
}

.sul-admin-biz__added { white-space: nowrap; }

.sul-admin-biz__action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sul-spacing-xs);
}

.sul-admin-biz__action form { margin: 0; }

.sul-admin-biz__open {
  display: grid;
  place-items: center;
  width: var(--sul-avatar-sm);
  height: var(--sul-avatar-sm);
  border-radius: var(--sul-radius-base);
  color: var(--sul-muted);
}

.sul-admin-biz__open:hover { color: var(--sul-text); background: var(--sul-border); }

.sul-admin-biz__open svg {
  width: var(--sul-font-base);
  height: var(--sul-font-base);
}

/* The footer: how many, then the pager. */
.sul-admin-biz__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}

.sul-admin-biz__pager { display: flex; align-items: center; gap: var(--sul-spacing-sm); }

/* The same pager above the table: a line under it instead of space around it. */
.sul-admin-biz__foot--top {
  padding-top: var(--sul-spacing-sm);
  padding-bottom: var(--sul-spacing-sm);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-admin-biz__size {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  white-space: nowrap;
}

.sul-admin-biz__size .sul-admin-bizlist__select { width: auto; min-width: 0; }

.sul-admin-biz__page {
  display: grid;
  place-items: center;
  width: var(--sul-control-touch-min);
  height: var(--sul-control-touch-min);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  color: var(--sul-text);
}

.sul-admin-biz__page:hover { background: var(--sul-background); }

.sul-admin-biz__page--disabled,
.sul-admin-biz__page--disabled:hover {
  color: var(--sul-disabled);
  background: none;
}

.sul-admin-biz__page svg {
  width: var(--sul-font-base);
  height: var(--sul-font-base);
}

/* On a phone each row becomes a card: business first, then labelled facts, then the actions.
   Five columns of readable text do not fit a phone, and a sideways-scrolling table hides the
   Operate button off screen. */
@media (max-width: 860px) {

  .sul-admin-biz thead { display: none; }

  .sul-admin-biz,
  .sul-admin-biz tbody,
  .sul-admin-biz tr { display: block; }

  .sul-admin-biz tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sul-spacing-compact) var(--sul-spacing-base);
    padding: var(--sul-spacing-base) var(--sul-spacing-lg);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
  }

  .sul-admin-biz td,
  .sul-admin-biz td:first-child,
  .sul-admin-biz td:last-child {
    min-width: 0;
    padding: 0;
    border: 0;
    white-space: normal;
  }

  .sul-admin-biz tbody tr:hover { background: none; }

  .sul-admin-biz__cell-business,
  .sul-admin-biz__cell-action { grid-column: 1 / -1; }

  .sul-admin-biz td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: var(--sul-spacing-xxs);
    font-size: var(--sul-font-2xs);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--sul-text-secondary);
  }

  .sul-admin-bizlist__num { text-align: left; }

  .sul-admin-biz__action { justify-content: stretch; }
  .sul-admin-biz__action form { flex: 1 1 auto; }
  .sul-admin-biz__action .sul-button { width: 100%; }
}

.sul-alerts--flush { margin-top: 0; }

.sul-admin-muted { margin: 0; font-size: var(--sul-font-sm); color: var(--sul-muted); }

@media (max-width: 860px) {
  .sul-admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sul-admin-split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .sul-admin-search { flex-direction: column; }
  .sul-admin-finder__go-button { padding-inline: var(--sul-spacing-base); }
  .sul-admin-finder__detect,
  .sul-admin-finder__keys,
  .sul-admin-finder__go { display: none; }
  .sul-admin-result { flex-wrap: wrap; }
  .sul-admin-result__action { flex-basis: 100%; }
  .sul-admin-result__action .sul-button { width: 100%; }
}

/* --- Channels (/admin/businesses/{id}/channels) ---------------------------------------------

   The admin-channels island. A title with the summary pill on the right; then one card split in
   two: the channel list on the left (connected accounts grouped by platform, worst first, then
   what is not connected) and the chosen channel beside it -- who it is, a problem box when it
   needs attention, four facts, its ids, its permissions, its Sync, and the queued change menu
   when a write grant exists. Requested changes follow in their own card. Every value is a token;
   the tinted borders are color-mix() of a token, not a new colour. */

.sul-admin-ch {
  max-width: var(--sul-desktop-wide-max);
  margin: 0 auto;
}

.sul-admin-ch__head {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--sul-spacing-base);
  margin-bottom: var(--sul-spacing-lg);
}

.sul-admin-ch__title { margin: 0; font-size: var(--sul-font-xl); color: var(--sul-text); }
.sul-admin-ch__lede { margin: var(--sul-spacing-xxs) 0 0; font-size: var(--sul-font-sm); color: var(--sul-muted); }

.sul-admin-ch__chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sul-spacing-sm);
  margin-left: auto;
}

/* A dot inside a pill takes the pill's own colour. */
.sul-admin-ch__dot {
  display: inline-block;
  width: var(--sul-spacing-xs);
  height: var(--sul-spacing-xs);
  margin-right: var(--sul-spacing-xs);
  vertical-align: middle;
  border-radius: var(--sul-radius-pill);
  background: currentColor;
}

.sul-admin-dot {
  flex: none;
  width: var(--sul-spacing-sm);
  height: var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-disabled);
}

.sul-admin-dot--success { background: var(--sul-success-dark); }
.sul-admin-dot--danger { background: var(--sul-danger); }
.sul-admin-dot--warning { background: var(--sul-warning-dark); }

/* ---------------------------------------------------------------------
   AttentionNudge (clientapp/src/ui/attention-nudge.tsx): the dashboard's Customer attention nudge,
   after the support-console-dashboard-v3 mockup (2026-10-14). A compact bar (bell, chips, healthy
   ring, Details, Snooze) that opens into action rows beside the health bars and the Plans bar.
   The compact bar is sticky under the console top bar; with Details open it is not, or the panel
   would cover the page. The MOUNT is sticky, not the section: a sticky element cannot leave its
   own parent. Bars and the ring are SVG whose sizes are attributes, because the design audit
   refuses inline styles and a slice's width is data.
   --------------------------------------------------------------------- */
.sul-nudge-mount {
  position: sticky;
  top: var(--sul-desktop-topbar-height);
  z-index: 5;
  margin: 0 var(--sul-card-padding-h) var(--sul-card-gap);
}

.sul-nudge-mount:has(> .sul-nudge--open) { position: static; }

/* Snoozed, the mount holds only the fixed tab, so it gives its space back to the page. */
.sul-nudge-mount:has(> .sul-nudge-tab) { margin: 0; }

/* The left rule is amber, and red while anything red is on the bar. */
.sul-nudge {
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-left: var(--sul-spacing-xxs) solid var(--sul-warning);
  border-radius: var(--sul-radius-xl);
  box-shadow: var(--sul-shadow-md);
  overflow: hidden;
}

.sul-nudge--urgent { border-left-color: var(--sul-danger); }

.sul-nudge__head {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm) var(--sul-spacing-xs) var(--sul-spacing-compact);
}

.sul-nudge__icon { display: inline-flex; flex: none; color: var(--sul-warning-dark); }
.sul-nudge--urgent .sul-nudge__icon { color: var(--sul-danger); }
.sul-nudge__icon svg { width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); }

.sul-nudge__heading { font-size: var(--sul-font-sm); color: var(--sul-text); white-space: nowrap; }

/* The chips scroll sideways on a narrow screen rather than wrapping the bar onto three lines. */
.sul-nudge__chips {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: var(--sul-spacing-xs);
  overflow-x: auto;
  scrollbar-width: none;
}
.sul-nudge__chips::-webkit-scrollbar { display: none; }

.sul-nudge__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-xxs) var(--sul-spacing-compact);
  border: var(--sul-card-border) solid transparent;
  border-radius: var(--sul-radius-pill);
  font: inherit;
  font-size: var(--sul-font-xs);
  white-space: nowrap;
  cursor: pointer;
}
.sul-nudge__chip:hover, .sul-nudge__chip:focus-visible { border-color: currentColor; }
.sul-nudge__chip--danger { background: var(--sul-pastel-danger); color: var(--sul-danger); }
.sul-nudge__chip--warning { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }

.sul-nudge__health {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  padding-left: var(--sul-spacing-sm);
  border-left: var(--sul-card-border) solid var(--sul-border);
  font-size: var(--sul-font-xs);
  color: var(--sul-text-secondary);
  white-space: nowrap;
}

.sul-nudge__ring { width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); flex: none; }
.sul-nudge__ring circle { fill: none; stroke-width: 4; }
.sul-nudge__ring-track { stroke: var(--sul-background); }
.sul-nudge__ring-fill { stroke: var(--sul-success-dark); }

.sul-nudge__details, .sul-nudge__snooze {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--sul-font-xs);
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
  border-radius: var(--sul-radius-base);
  white-space: nowrap;
  cursor: pointer;
}
.sul-nudge__details { font-weight: 600; color: var(--sul-primary-action); }
.sul-nudge__details:hover { background: var(--sul-pastel-primary); color: var(--sul-primary-action-strong); }
.sul-nudge__chevron { display: inline-block; transition: transform 0.2s; }
.sul-nudge--open .sul-nudge__chevron { transform: rotate(180deg); }
.sul-nudge__snooze { color: var(--sul-muted); }
.sul-nudge__snooze:hover { background: var(--sul-background); color: var(--sul-text); }

@media (prefers-reduced-motion: reduce) {
  .sul-nudge__chevron { transition: none; }
}

/* Details: the action rows, then the picture behind them. */
.sul-nudge__panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-top: var(--sul-card-border) solid var(--sul-border);
}
.sul-nudge__panel[hidden] { display: none; }
.sul-nudge__panel:not(:has(.sul-nudge__actions)) { grid-template-columns: 1fr; }

.sul-nudge__actions {
  list-style: none;
  margin: 0;
  padding: 0;
  border-right: var(--sul-card-border) solid var(--sul-border);
}

.sul-nudge__action {
  display: grid;
  grid-template-columns: var(--sul-spacing-3xl) 1fr auto;
  gap: var(--sul-spacing-compact);
  align-items: center;
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
}
.sul-nudge__action:last-child { border-bottom: 0; }
.sul-nudge__action--hl { background: var(--sul-warning-light); }

.sul-nudge__n {
  font-size: var(--sul-font-xl);
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sul-nudge__n--danger { color: var(--sul-danger); }
.sul-nudge__n--warning { color: var(--sul-warning-dark); }

.sul-nudge__what { display: flex; flex-direction: column; min-width: 0; }
.sul-nudge__what strong { font-size: var(--sul-font-sm); color: var(--sul-text); }
.sul-nudge__what small { font-size: var(--sul-font-xs); color: var(--sul-text-secondary); }

.sul-nudge__stats { padding: var(--sul-spacing-sm) var(--sul-spacing-base); }

.sul-nudge__stat-head {
  display: flex;
  gap: var(--sul-spacing-sm);
  margin: 0 0 var(--sul-spacing-xs);
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-text-secondary);
}
.sul-nudge__stat-head a {
  margin-left: auto;
  font-weight: 500;
  color: var(--sul-primary-action);
  text-decoration: none;
  white-space: nowrap;
}
.sul-nudge__stat-head a:hover { text-decoration: underline; }

/* One grid for every row, so the labels share a column and the bars start at the same place. */
.sul-nudge__hrows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr var(--sul-spacing-2xl);
  gap: var(--sul-spacing-xs) var(--sul-spacing-sm);
  align-items: center;
  font-size: var(--sul-font-xs);
}

.sul-nudge__hrow { display: contents; }
.sul-nudge__hrow a { color: var(--sul-text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sul-nudge__hrow a:hover, .sul-nudge__hrow a:focus-visible { text-decoration: underline; }
.sul-nudge__hrow strong { text-align: right; font-variant-numeric: tabular-nums; }

.sul-nudge__track {
  display: block;
  width: 100%;
  height: var(--sul-spacing-xs);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-background);
  overflow: hidden;
}

.sul-nudge__note { margin: var(--sul-spacing-xxs) 0 var(--sul-spacing-sm); font-size: var(--sul-font-xxs); color: var(--sul-muted); }

.sul-nudge__bar {
  display: block;
  width: 100%;
  height: var(--sul-spacing-sm);
  margin: var(--sul-spacing-xs) 0;
  border-radius: var(--sul-radius-pill);
  background: var(--sul-background);
  overflow: hidden;
}

/* One colour per tone, shared by a slice, a health row's bar and a legend dot. */
.sul-nudge__seg--healthy { fill: var(--sul-success-dark); }
.sul-nudge__seg--neutral { fill: color-mix(in srgb, var(--sul-muted) 55%, var(--sul-surface)); }
.sul-nudge__seg--warning { fill: var(--sul-warning); }
.sul-nudge__seg--info { fill: var(--sul-info); }
.sul-nudge__seg--danger { fill: var(--sul-danger); }
.sul-nudge__seg--action { fill: var(--sul-primary-action); }

/* A hairline between slices, so two red groups side by side still read as two. */
.sul-nudge__seg { stroke: var(--sul-surface); stroke-width: 2; }

.sul-nudge__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-xxs) var(--sul-spacing-base);
  font-size: var(--sul-font-xs);
  color: var(--sul-text-secondary);
}

.sul-nudge__key, .sul-nudge__key a {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
}

.sul-nudge__key a { color: inherit; text-decoration: none; }
.sul-nudge__key a:hover, .sul-nudge__key a:focus-visible { color: var(--sul-text); text-decoration: underline; }

.sul-nudge__dot {
  flex: none;
  width: var(--sul-spacing-sm);
  height: var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
}

.sul-nudge__key--healthy .sul-nudge__dot { background: var(--sul-success-dark); }
.sul-nudge__key--neutral .sul-nudge__dot { background: color-mix(in srgb, var(--sul-muted) 55%, var(--sul-surface)); }
.sul-nudge__key--warning .sul-nudge__dot { background: var(--sul-warning); }
.sul-nudge__key--info .sul-nudge__dot { background: var(--sul-info); }
.sul-nudge__key--danger .sul-nudge__dot { background: var(--sul-danger); }

.sul-nudge__plans { margin-top: var(--sul-spacing-xs); }

@media (max-width: 900px) {
  .sul-nudge__panel { grid-template-columns: 1fr; }
  .sul-nudge__actions { border-right: 0; border-bottom: var(--sul-card-border) solid var(--sul-border); }
  .sul-nudge__health { display: none; }
}

/* Snoozed: a tab on the right edge of the window, under the top bar, until local midnight. It
   shows how many need attention and the healthy share, and opens the nudge again. */
.sul-nudge-tab {
  position: fixed;
  right: 0;
  top: calc(var(--sul-desktop-topbar-height) + var(--sul-spacing-xl));
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-xs) var(--sul-spacing-xs) var(--sul-spacing-xs) var(--sul-spacing-compact);
  border: var(--sul-card-border) solid var(--sul-border);
  border-right: 0;
  border-radius: var(--sul-radius-xl) 0 0 var(--sul-radius-xl);
  background: var(--sul-surface);
  box-shadow: var(--sul-shadow-md);
  color: var(--sul-text);
  cursor: pointer;
}

.sul-nudge-tab:hover { background: var(--sul-background); }

.sul-nudge-tab__icon { display: inline-flex; color: var(--sul-danger); }
.sul-nudge-tab__icon svg { width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); }
.sul-nudge-tab__count { font-size: var(--sul-font-sm); }
.sul-nudge-tab__pct { font-size: var(--sul-font-xxs); color: var(--sul-text-secondary); }
.sul-nudge-tab__chevron { font-size: var(--sul-font-lg); line-height: 1; color: var(--sul-muted); }

/* A wrapped console top bar has no fixed height, so the bar stops sticking there. */
@media (max-width: 860px) {
  .sul-nudge-mount { position: static; }
  .sul-nudge-tab { top: auto; bottom: var(--sul-spacing-xl); }
}

/* The Channels body, after the business-channels design (2026-11-11): a sticky list on the left
   and the chosen channel beside it as ONE card -- header, banner, four facts, health checks,
   identifiers and reach, a Google listing's admins as a table, Sync, activity. A channel not
   connected shows what connecting gives and the two ways to connect. Every value is a token;
   tinted fills are color-mix() of a token, not a new colour. */

.sul-admin-ch__notice { margin-bottom: var(--sul-spacing-base); }
.sul-admin-ch__muted { color: var(--sul-muted); }
.sul-admin-ch__para { margin: 0 0 var(--sul-spacing-sm); font-size: var(--sul-font-sm); }

/* Head: "2 of 8 connected" and its bar, beside any pending-request pill. */
.sul-admin-ch__prog {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-admin-ch__prog b { color: var(--sul-text); }
.sul-admin-ch__progbar { width: calc(var(--sul-spacing-3xl) * 4); height: var(--sul-spacing-xs); }
.sul-admin-ch__progtrack { fill: var(--sul-border); }
.sul-admin-ch__progfill { fill: var(--sul-success-dark); }

/* List | detail. The list stays in view while a long card scrolls. */
.sul-admin-ch__grid {
  display: grid;
  grid-template-columns: calc(var(--sul-spacing-3xl) * 8.5) minmax(0, 1fr);
  align-items: start;
  gap: var(--sul-spacing-base);
  margin-bottom: var(--sul-spacing-lg);
}

.sul-admin-ch__card {
  min-width: 0;
  overflow: hidden;
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
}

.sul-admin-ch__list {
  position: sticky;
  top: calc(var(--sul-desktop-topbar-height) + var(--sul-spacing-base));
  padding-bottom: var(--sul-spacing-xs);
}

.sul-admin-ch__items { margin: 0; padding: 0; list-style: none; }

.sul-admin-ch__lg {
  display: flex;
  margin: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-base) var(--sul-spacing-xxs);
  font-size: var(--sul-font-micro);
  font-weight: 700;
  letter-spacing: var(--sul-console-label-tracking);
  text-transform: uppercase;
  color: var(--sul-muted);
}

.sul-admin-ch__lg span { margin-left: auto; }
.sul-admin-ch__list > .sul-admin-ch__lg ~ .sul-admin-ch__lg { margin-top: var(--sul-spacing-xxs); border-top: var(--sul-card-border) solid var(--sul-border); }

.sul-admin-ch__it {
  display: grid;
  grid-template-columns: var(--sul-spacing-3xl) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-left: var(--sul-spacing-xxs) solid transparent;
  color: inherit;
  text-decoration: none;
}

a.sul-admin-ch__it:hover { background: var(--sul-background); }
a.sul-admin-ch__it:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: calc(var(--sul-spacing-xxs) * -1); }

.sul-admin-ch__it[aria-current='page'] {
  background: var(--sul-pastel-primary);
  border-left-color: var(--sul-primary-action);
}

.sul-admin-ch__it--sub { padding-left: var(--sul-spacing-xl); }
.sul-admin-ch__it--off .sul-admin-ch__pi { opacity: 0.45; }
.sul-admin-ch__it--soon { cursor: default; }

.sul-admin-ch__pi { display: grid; place-items: center; }

.sul-admin-ch__ittext { min-width: 0; }

.sul-admin-ch__ittext b,
.sul-admin-ch__ittext small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sul-admin-ch__ittext b { font-size: var(--sul-font-sm); font-weight: 600; }
.sul-admin-ch__ittext small { font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-admin-ch__line--warn { font-weight: 600; color: var(--sul-warning-dark) !important; }
.sul-admin-ch__line--bad { font-weight: 600; color: var(--sul-danger) !important; }

.sul-admin-ch__state {
  flex: none;
  width: var(--sul-spacing-sm);
  height: var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-border);
}

.sul-admin-ch__state--ok { background: var(--sul-success-dark); }
.sul-admin-ch__state--warn { background: var(--sul-warning-dark); }
.sul-admin-ch__state--bad { background: var(--sul-danger); }

.sul-admin-ch__chip {
  padding: var(--sul-spacing-xxs) var(--sul-spacing-sm);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-base);
  background: var(--sul-surface);
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-text);
}

.sul-admin-ch__chip--soon { color: var(--sul-muted); }

/* Buttons local to the card: the design's compact, outlined controls. */
.sul-admin-ch__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  min-height: var(--sul-console-control-height);
  padding: 0 var(--sul-spacing-compact);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  font: inherit;
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-text);
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.sul-admin-ch__btn::-webkit-details-marker { display: none; }
.sul-admin-ch__btn:hover:not(:disabled) { background: var(--sul-background); }
.sul-admin-ch__btn:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-admin-ch__btn:disabled { opacity: 0.45; cursor: not-allowed; }
.sul-admin-ch__btn--sm { min-height: calc(var(--sul-console-control-height) * 0.85); padding: 0 var(--sul-spacing-sm); }

.sul-admin-ch__btn--primary {
  background: var(--sul-primary-action);
  border-color: var(--sul-primary-action);
  color: var(--sul-surface);
}

.sul-admin-ch__btn--primary:hover:not(:disabled) { background: var(--sul-primary-action-strong); }

.sul-admin-ch__lnk {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-primary-action);
  cursor: pointer;
}

/* The card's header: logo, the account with its pills, platform and code; actions on the right. */
.sul-admin-ch__dh {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-spacing-base);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-admin-ch__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--sul-avatar-lg);
  height: var(--sul-avatar-lg);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-background);
}

.sul-admin-ch__logo--off { opacity: 0.55; }

.sul-admin-ch__dhtext { flex: 1 1 auto; min-width: 0; }

.sul-admin-ch__dhtext h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-sm);
  margin: 0;
  font-size: var(--sul-font-lg);
  color: var(--sul-text);
}

.sul-admin-ch__dhtext h2 a { color: inherit; text-decoration: none; }
.sul-admin-ch__dhtext h2 a:hover { text-decoration: underline; }
.sul-admin-ch__dhtext small { display: block; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-admin-ch__dhtext small code { font-size: var(--sul-font-micro); color: var(--sul-muted); }

.sul-admin-ch__dhact { display: flex; align-items: center; gap: var(--sul-spacing-xs); margin-left: auto; }

/* A dot inside a pill takes the pill's own colour (defined with the head above). */

/* The ⋯ menu. */
.sul-admin-ch__menu { position: relative; }

.sul-admin-ch__mm {
  position: absolute;
  top: calc(100% + var(--sul-spacing-xs));
  right: 0;
  z-index: 5;
  display: grid;
  min-width: calc(var(--sul-spacing-3xl) * 6);
  padding: var(--sul-spacing-xxs);
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  box-shadow: var(--sul-console-shadow-drop);
}

.sul-admin-ch__mm button {
  padding: var(--sul-spacing-sm) var(--sul-spacing-sm);
  border: 0;
  border-radius: var(--sul-radius-base);
  background: none;
  font: inherit;
  font-size: var(--sul-font-sm);
  text-align: left;
  color: var(--sul-text);
  cursor: pointer;
}

.sul-admin-ch__mm button:hover { background: var(--sul-background); }
.sul-admin-ch__mm .sul-admin-ch__mmd { color: var(--sul-danger); }

/* The banner: what is wrong (or that nothing is), with the Sync as its one action. */
.sul-admin-ch__alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-base);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
  color: var(--sul-text);
}

.sul-admin-ch__alert--bad { background: var(--sul-pastel-danger); --sul-admin-ch-tone: var(--sul-danger); }
.sul-admin-ch__alert--warn { background: var(--sul-pastel-warning); --sul-admin-ch-tone: var(--sul-warning-dark); }
.sul-admin-ch__alert--ok { background: var(--sul-pastel-success); --sul-admin-ch-tone: var(--sul-success-dark); }

.sul-admin-ch__alertic {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--sul-spacing-3xl);
  height: var(--sul-spacing-3xl);
  background: color-mix(in srgb, var(--sul-admin-ch-tone) 18%, var(--sul-surface));
  border-radius: var(--sul-radius-pill);
  font-weight: 800;
  color: var(--sul-admin-ch-tone);
}

.sul-admin-ch__alertbody { flex: 1 1 auto; min-width: 0; }
.sul-admin-ch__alertbody strong { display: block; font-size: var(--sul-font-sm); color: var(--sul-admin-ch-tone); }
.sul-admin-ch__alertbody p { margin: var(--sul-spacing-xxs) 0 0; font-size: var(--sul-font-sm); color: var(--sul-text-secondary); }
.sul-admin-ch__alertbody ul { margin: var(--sul-spacing-xs) 0 0; padding-left: var(--sul-spacing-lg); font-size: var(--sul-font-sm); }
.sul-admin-ch__alert > .sul-admin-ch__btn { flex: none; align-self: center; }

.sul-admin-ch__diag { margin-top: var(--sul-spacing-sm); font-size: var(--sul-font-xs); }
.sul-admin-ch__diag summary { cursor: pointer; font-weight: 600; color: var(--sul-admin-ch-tone); }

.sul-admin-ch__diag pre {
  margin: var(--sul-spacing-xs) 0 0;
  padding: var(--sul-spacing-sm);
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-base);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: var(--sul-font-micro);
  color: var(--sul-text);
}

/* Four facts in a row; the rules between them are the cells' own right borders. */
.sul-admin-ch__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-admin-ch__facts > div {
  min-width: 0;
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border-right: var(--sul-card-border) solid var(--sul-border);
}

.sul-admin-ch__facts > div:last-child { border-right: 0; }

.sul-admin-ch__facts dt {
  font-size: var(--sul-font-micro);
  font-weight: 700;
  letter-spacing: var(--sul-console-label-tracking);
  text-transform: uppercase;
  color: var(--sul-muted);
}

.sul-admin-ch__facts dd {
  margin: var(--sul-spacing-xxs) 0 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--sul-font-sm);
  font-weight: 600;
  color: var(--sul-text);
}

.sul-admin-ch__facts dd.sul-admin-ch__warn { color: var(--sul-warning-dark); }
.sul-admin-ch__facts dd.sul-admin-ch__factdetail { margin: 0; font-size: var(--sul-font-xs); font-weight: 400; color: var(--sul-muted); }

/* A section of the card: its heading row, then its body. */
.sul-admin-ch__sec { padding: var(--sul-spacing-base); border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-admin-ch__sec:last-child { border-bottom: 0; }

.sul-admin-ch__sh {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-sm);
  margin-bottom: var(--sul-spacing-sm);
}

.sul-admin-ch__sh h3 { margin: 0; font-size: var(--sul-font-sm); color: var(--sul-text); }
.sul-admin-ch__sh small { font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-admin-ch__shr {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  margin-left: auto;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-admin-ch__shr form { margin: 0; }

/* Health checks: one row each, in a bordered list. */
.sul-admin-ch__chk {
  margin: 0;
  padding: 0;
  list-style: none;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  overflow: hidden;
}

.sul-admin-ch__ck {
  display: grid;
  grid-template-columns: var(--sul-spacing-xl) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-top: var(--sul-card-border) solid var(--sul-border);
}

.sul-admin-ch__ck:first-child { border-top: 0; }
.sul-admin-ch__ck b { font-size: var(--sul-font-sm); font-weight: 600; }
.sul-admin-ch__ck small { display: block; font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-admin-ch__ci {
  display: grid;
  place-items: center;
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  border-radius: var(--sul-radius-pill);
  font-size: var(--sul-font-micro);
  font-style: normal;
  font-weight: 800;
}

.sul-admin-ch__ci--ok { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-admin-ch__ci--warn { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }
.sul-admin-ch__ci--bad { background: var(--sul-pastel-danger); color: var(--sul-danger); }
.sul-admin-ch__ci--na { background: var(--sul-background); color: var(--sul-muted); }

.sul-admin-ch__perms { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xxs); }

.sul-admin-ch__perms code {
  padding: 0 var(--sul-spacing-xs);
  border-radius: var(--sul-radius-sm);
  background: var(--sul-background);
  font-size: var(--sul-font-micro);
  color: var(--sul-muted);
}

/* Identifiers: boxes two to a row, the id monospaced with Copy beside it; then where posts reach. */
.sul-admin-ch__ids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sul-spacing-sm); }

.sul-admin-ch__idb {
  min-width: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
}

.sul-admin-ch__idb small {
  display: block;
  font-size: var(--sul-font-micro);
  font-weight: 700;
  letter-spacing: var(--sul-console-label-tracking);
  text-transform: uppercase;
  color: var(--sul-muted);
}

.sul-admin-ch__idv { display: flex; align-items: center; gap: var(--sul-spacing-xs); min-width: 0; }

.sul-admin-ch__idv code,
.sul-admin-ch__syncform input,
.sul-admin-ch__tw td code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sul-admin-ch__idv code {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--sul-font-xs);
}

.sul-admin-ch__copy {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--sul-spacing-xl);
  height: var(--sul-spacing-xl);
  padding: 0;
  border: 0;
  border-radius: var(--sul-radius-base);
  background: none;
  color: var(--sul-muted);
  cursor: pointer;
}

.sul-admin-ch__copy:hover { background: var(--sul-background); color: var(--sul-primary-action); }
.sul-admin-ch__copy--done { color: var(--sul-success-dark); }

.sul-admin-ch__reach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-xs);
  margin: var(--sul-spacing-sm) 0 0;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

/* Google listing admins: a table, Sulekha's shared account tinted. */
.sul-admin-ch__tw {
  overflow-x: auto;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
}

.sul-admin-ch__tw table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sul-admin-ch__tw th:first-child { width: calc(var(--sul-spacing-3xl) * 4); }
.sul-admin-ch__tw th:last-child { width: 40%; }

.sul-admin-ch__tw th {
  padding: var(--sul-spacing-xs) var(--sul-spacing-compact);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
  background: var(--sul-background);
  font-size: var(--sul-font-micro);
  font-weight: 700;
  letter-spacing: var(--sul-console-label-tracking);
  text-align: left;
  text-transform: uppercase;
  color: var(--sul-muted);
}

.sul-admin-ch__tw td {
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
  vertical-align: middle;
  font-size: var(--sul-font-sm);
}

.sul-admin-ch__tw tr:last-child td { border-bottom: 0; }
.sul-admin-ch__tw td b { font-weight: 600; }

.sul-admin-ch__tw td code {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--sul-font-micro);
  color: var(--sul-muted);
}

.sul-admin-ch__tw .sul-admin-ch__us td { background: color-mix(in srgb, var(--sul-pastel-warning) 55%, var(--sul-surface)); }

.sul-admin-ch__role {
  padding: var(--sul-spacing-xxs) var(--sul-spacing-xs);
  border-radius: var(--sul-radius-sm);
  font-size: var(--sul-font-micro);
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.sul-admin-ch__role--primary { background: var(--sul-role-super-admin-bg); color: var(--sul-role-super-admin); }
.sul-admin-ch__role--owner { background: var(--sul-role-admin-bg); color: var(--sul-role-admin); }
.sul-admin-ch__role--other { background: var(--sul-role-viewer-bg); color: var(--sul-role-viewer); }

.sul-admin-ch__foot { margin: var(--sul-spacing-sm) 0 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-admin-ch__gain { display: grid; gap: var(--sul-spacing-sm); margin-top: var(--sul-spacing-sm); }
.sul-admin-ch__gain form { margin: 0; }

/* A result line: what a Sync, Refresh or Gain access just did. */
.sul-admin-ch__result {
  margin: 0 0 var(--sul-spacing-sm);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-radius: var(--sul-radius-lg);
  font-size: var(--sul-font-sm);
}

.sul-admin-ch__gain .sul-admin-ch__result { margin: 0; }
.sul-admin-ch__result--ok { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-admin-ch__result--bad { background: var(--sul-pastel-danger); color: var(--sul-danger); }

/* Sync: a label, the id field and the button joined in a row. */
.sul-admin-ch__syncform {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-sm);
  margin: 0 0 var(--sul-spacing-sm);
}

.sul-admin-ch__syncform label { font-size: var(--sul-font-xs); font-weight: 600; color: var(--sul-muted); }

.sul-admin-ch__syncform input {
  width: calc(var(--sul-spacing-3xl) * 5);
  min-height: var(--sul-console-control-height);
  padding: 0 var(--sul-spacing-sm);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
}

.sul-admin-ch__syncform input:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: 0; }

.sul-admin-ch__spin {
  width: var(--sul-font-sm);
  height: var(--sul-font-sm);
  border: var(--sul-spacing-xxs) solid color-mix(in srgb, var(--sul-text) 25%, transparent);
  border-top-color: var(--sul-text);
  border-radius: var(--sul-radius-pill);
  animation: sul-admin-spin 0.7s linear infinite;
}

@keyframes sul-admin-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .sul-admin-ch__spin { animation: none; }
}

/* Activity: when, a dot, what happened. */
.sul-admin-ch__tl { display: grid; margin: 0; padding: 0; list-style: none; }

.sul-admin-ch__tl li {
  display: grid;
  grid-template-columns: calc(var(--sul-spacing-3xl) * 4) var(--sul-spacing-compact) minmax(0, 1fr);
  align-items: start;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-xxs) 0;
  font-size: var(--sul-font-xs);
}

.sul-admin-ch__tl li > span { color: var(--sul-muted); font-variant-numeric: tabular-nums; }

.sul-admin-ch__tl li > i {
  width: var(--sul-spacing-sm);
  height: var(--sul-spacing-sm);
  margin-top: var(--sul-spacing-xxs);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-border);
}

.sul-admin-ch__tl li > i.sul-admin-ch__tl--ok { background: var(--sul-success-dark); }
.sul-admin-ch__tl li > i.sul-admin-ch__tl--warn { background: var(--sul-warning-dark); }
.sul-admin-ch__tl li > i.sul-admin-ch__tl--bad { background: var(--sul-danger); }

/* Not connected: what connecting gives on the left; the ways to connect on the right. */
.sul-admin-ch__nc {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--sul-spacing-xl);
  padding: var(--sul-spacing-lg) var(--sul-spacing-base);
}

.sul-admin-ch__nc h4 { margin: 0 0 var(--sul-spacing-xs); font-size: var(--sul-font-base); color: var(--sul-text); }
.sul-admin-ch__nc ul { margin: 0 0 var(--sul-spacing-base); padding-left: var(--sul-spacing-lg); font-size: var(--sul-font-sm); }
.sul-admin-ch__nc li { margin: var(--sul-spacing-xxs) 0; }

.sul-admin-ch__opt {
  display: grid;
  gap: var(--sul-spacing-xs);
  margin-bottom: var(--sul-spacing-sm);
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
}

.sul-admin-ch__opt b { font-size: var(--sul-font-sm); font-weight: 600; }
.sul-admin-ch__opt small { font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-admin-ch__opt--rec {
  border-color: var(--sul-primary-action);
  box-shadow: 0 0 0 var(--sul-spacing-xxs) var(--sul-pastel-primary);
}

.sul-admin-ch__need {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-sm);
  margin-bottom: var(--sul-spacing-compact);
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-pastel-warning);
  font-size: var(--sul-font-xs);
  color: var(--sul-warning-dark);
}

.sul-admin-ch__need .sul-admin-ch__btn { margin-left: auto; }

.sul-admin-ch__steps {
  display: grid;
  gap: var(--sul-spacing-xs);
  margin: var(--sul-spacing-sm) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-admin-ch__steps li { padding: var(--sul-spacing-sm); border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-lg); }
.sul-admin-ch__steps b { display: block; font-size: var(--sul-font-sm); color: var(--sul-text); }

/* Requested changes. */
.sul-admin-ch__requested { padding: var(--sul-spacing-base); }
.sul-admin-ch__queue { margin: 0; padding: 0; list-style: none; }

.sul-admin-ch__queue li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-sm) 0;
  border-top: var(--sul-card-border) solid var(--sul-border);
  font-size: var(--sul-font-sm);
}

.sul-admin-ch__queue li > div { display: grid; min-width: 0; }
.sul-admin-ch__queue small { font-size: var(--sul-font-xs); }

/* One column under the design's 980px: the list goes above the card and stops sticking. */
@media (max-width: 980px) {
  .sul-admin-ch__grid { grid-template-columns: minmax(0, 1fr); }
  .sul-admin-ch__list { position: static; }
  .sul-admin-ch__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sul-admin-ch__facts > div:nth-child(2) { border-right: 0; }
  .sul-admin-ch__facts > div:nth-child(n + 3) { border-top: var(--sul-card-border) solid var(--sul-border); }
  .sul-admin-ch__nc { grid-template-columns: minmax(0, 1fr); }
  .sul-admin-ch__ids { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .sul-admin-ch__chips { margin-left: 0; }
  .sul-admin-ch__dhact { margin-left: 0; }
  .sul-admin-ch__alert { flex-wrap: wrap; }
  .sul-admin-ch__syncform input { flex: 1 1 auto; width: auto; min-width: 0; }
  .sul-admin-ch__tl li { grid-template-columns: minmax(0, 1fr); }
  .sul-admin-ch__tl li > i { display: none; }
}


/* --- "Add a staff member" (/admin/staff-access/new) ------------------------------------------

   One card: a search row, a result panel that changes with what Entra said, and a footer bar
   holding the only two actions. Every value is an existing token; the column width is the same
   desktop.column-max the customer forms use, so this reads as a form and not a report. */

.sul-admin-shell .sul-staff-add {
  max-width: var(--sul-desktop-column-max);
  margin: var(--sul-spacing-2xl) auto;
}

.sul-staff-add__body {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xl);
  padding: var(--sul-spacing-2xl);
}

.sul-staff-add__title {
  margin: 0;
  font-size: var(--sul-font-xl);
  font-weight: 600;
  color: var(--sul-text);
}

.sul-staff-add__lede {
  margin: var(--sul-spacing-xs) 0 0;
  color: var(--sul-muted);
}

.sul-staff-add__notice {
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  font-size: var(--sul-font-sm);
  gap: var(--sul-spacing-sm);
}

.sul-staff-add__notice a { color: inherit; font-weight: 600; }

.sul-staff-add__added {
  margin: 0;
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-pastel-success);
  color: var(--sul-success-dark);
  font-weight: 500;
}

.sul-staff-add__added a { color: inherit; }

/* The email box and its button side by side, wrapping under each other on a phone. */
.sul-staff-add__search {
  display: flex;
  gap: var(--sul-spacing-base);
  flex-wrap: wrap;
}

/* The WRAPPER draws the input's box, so the "@sulekha.com" suffix can sit inside it as a flex
   sibling -- no width guessed for the suffix, and no padding that has to match its length. */
.sul-staff-add__email {
  display: flex;
  align-items: center;
  flex: 1 1 var(--sul-desktop-choice-card-min);
  min-height: var(--sul-control-touch-min);
  padding: 0 var(--sul-spacing-base);
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
}

.sul-staff-add__email:focus-within {
  border-color: var(--sul-primary-action);
  box-shadow: 0 0 0 var(--sul-spacing-xs) var(--sul-pastel-primary);
}

.sul-staff-add__email-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: var(--sul-font-base);
  color: var(--sul-text);
  outline: none;
}

.sul-staff-add__email-input::placeholder { color: var(--sul-placeholder); }

.sul-staff-add__suffix {
  flex: 0 0 auto;
  color: var(--sul-muted);
}

.sul-staff-add__email--full .sul-staff-add__suffix { display: none; }

/* --- The result panel ----------------------------------------------------------------------- */

.sul-staff-add__result {
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  overflow: hidden;
  transition: opacity var(--sul-transition-fast) ease;
}

/* The email was edited after the search: the card no longer describes what Add would add. */
.sul-staff-add__result--stale { opacity: var(--sul-opacity-disabled); }

.sul-staff-add__result-head {
  margin: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-lg);
  font-size: var(--sul-font-sm);
  font-weight: 600;
}

.sul-staff-add__result-head--success { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-staff-add__result-head--warning { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }
.sul-staff-add__result-head--danger  { background: var(--sul-pastel-danger);  color: var(--sul-danger); }

.sul-staff-add__result-text {
  margin: 0;
  padding: var(--sul-spacing-base) var(--sul-spacing-lg) var(--sul-spacing-lg);
  color: var(--sul-text-secondary);
}

.sul-staff-add__person {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-lg);
  padding: var(--sul-spacing-lg);
}

.sul-staff-add__person p { margin: 0; }

/* primary-action-strong on pastel-primary: the orange-on-orange-tint pair CLAUDE.md names for
   text on an orange tint, rather than the brand orange, which is 2.80:1. */
.sul-staff-add__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--sul-avatar-lg);
  height: var(--sul-avatar-lg);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-pastel-primary);
  color: var(--sul-primary-action-strong);
  font-weight: 700;
}

.sul-staff-add__name {
  font-size: var(--sul-font-lg);
  font-weight: 600;
  color: var(--sul-text);
}

.sul-staff-add__meta {
  color: var(--sul-muted);
  font-size: var(--sul-font-sm);
}

.sul-staff-add__facts { margin: 0; }

/* Label | value | action. Grid rather than a table: three facts is a definition list, and the
   action column shrinks to nothing on the rows that have none. */
.sul-staff-add__fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) auto;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border-top: var(--sul-card-border) solid var(--sul-border);
}

.sul-staff-add__fact dt {
  color: var(--sul-muted);
  font-size: var(--sul-font-sm);
  font-weight: 600;
}

.sul-staff-add__fact dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sul-staff-add__fact-action { justify-self: end; }

.sul-staff-add__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--sul-font-sm);
}

/* Reads as plain text until focused, so the row looks like the other two; "Edit" moves focus
   here, and without the script it is simply an input you can click into. */
.sul-staff-add__inline-input {
  width: 100%;
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
  margin-left: calc(-1 * var(--sul-spacing-sm));
  border: var(--sul-card-border) solid transparent;
  border-radius: var(--sul-radius-base);
  background: transparent;
  font: inherit;
  font-size: var(--sul-font-base);
  color: var(--sul-text);
}

.sul-staff-add__inline-input:hover { border-color: var(--sul-border); }

.sul-staff-add__inline-input:focus {
  outline: none;
  border-color: var(--sul-primary-action);
  background: var(--sul-surface);
}

.sul-staff-add__source {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  color: var(--sul-muted);
  font-size: var(--sul-font-xs);
}

.sul-staff-add__lock { display: inline-flex; color: var(--sul-warning-dark); }

.sul-staff-add__lock svg {
  width: var(--sul-font-sm);
  height: var(--sul-font-sm);
}

/* --- Footer bar ----------------------------------------------------------------------------- */

.sul-staff-add__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sul-spacing-base);
  flex-wrap: wrap;
  padding: var(--sul-spacing-lg) var(--sul-spacing-2xl);
  background: var(--sul-background);
  border-top: var(--sul-card-border) solid var(--sul-border);
}

.sul-staff-add__footer-hint {
  margin: 0;
  color: var(--sul-muted);
  font-size: var(--sul-font-sm);
}

.sul-staff-add__footer-actions {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-lg);
  margin-left: auto;
}

.sul-staff-add__cancel {
  color: var(--sul-text-secondary);
  font-weight: 600;
  text-decoration: none;
}

.sul-staff-add__cancel:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .sul-staff-add__body { padding: var(--sul-spacing-lg); }
  .sul-staff-add__footer { padding: var(--sul-spacing-base) var(--sul-spacing-lg); }
  .sul-staff-add__fact { grid-template-columns: minmax(0, 1fr) auto; }
  .sul-staff-add__fact dt { grid-column: 1 / -1; }
}

/* --- Staff Details (/admin/staff-access) ----------------------------------------------------

   Roles & access has two views of one matrix. By role: a card per role on the left, the chosen
   role's permissions on the right as switches, each action indented under the page it is done on.
   Compare roles: every role side by side as dots, read-only. On/off differs by SHAPE as well as
   colour (knob position, filled dot vs ring; WCAG 1.4.1), and every mark has its word in the DOM
   for a screen reader. */

.sul-access {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-lg);
  max-width: var(--sul-desktop-wide-max);
  margin: var(--sul-spacing-2xl) auto;
}

.sul-access__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sul-spacing-base);
  flex-wrap: wrap;
}

.sul-access__title {
  margin: 0;
  font-size: var(--sul-font-3xl);
  font-weight: 600;
  letter-spacing: var(--sul-tracking-tight);
  color: var(--sul-text);
}

.sul-access__lede {
  margin: var(--sul-spacing-xs) 0 0;
  color: var(--sul-muted);
  font-size: var(--sul-font-sm);
}

/* Every control on Staff Details meets the touch floor: buttons, the filter, the role pickers.
   The compact button size reads as a tag at this density and is hard to hit. */
.sul-staff .sul-button { min-height: var(--sul-control-touch-min); }

.sul-access__actions {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  flex-wrap: wrap;
}

.sul-access__saved,
.sul-access__error {
  margin: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-radius: var(--sul-radius-lg);
  font-size: var(--sul-font-sm);
  font-weight: 500;
}

.sul-access__saved { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-access__error { background: var(--sul-pastel-danger);  color: var(--sul-danger); }

/* --- Search box, shared by the Members search and both Roles & access filters ----------------- */

.sul-access__filter {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  flex: 0 1 var(--sul-desktop-card-min);
  min-height: var(--sul-control-touch-min);
  box-sizing: border-box;
  padding: 0 var(--sul-spacing-base);
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
}

.sul-access__filter[hidden] { display: none; }

.sul-access__filter:focus-within {
  border-color: var(--sul-primary-action);
  box-shadow: 0 0 0 var(--sul-spacing-xs) var(--sul-pastel-primary);
}

.sul-access__filter-icon { display: inline-flex; color: var(--sul-muted); }

.sul-access__filter-icon svg {
  width: var(--sul-font-base);
  height: var(--sul-font-base);
}

.sul-access__filter-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--sul-spacing-sm) 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
  outline: none;
}

.sul-access__filter-input::placeholder { color: var(--sul-placeholder); }

.sul-access__mode-icon { display: inline-flex; }

.sul-access__mode-icon svg {
  width: var(--sul-font-sm);
  height: var(--sul-font-sm);
}

.sul-access__chevron { display: inline-flex; color: var(--sul-muted); }

.sul-access__chevron svg {
  width: var(--sul-font-lg);
  height: var(--sul-font-lg);
  transition: transform var(--sul-transition-fast) ease;
}

/* --- The members table ------------------------------------------------------------------------- */

.sul-access__card {
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  overflow: hidden;
}

.sul-access__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--sul-font-sm);
}

.sul-access__table th,
.sul-access__table td {
  padding: var(--sul-spacing-sm) var(--sul-spacing-lg);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
  text-align: left;
  vertical-align: middle;
}

.sul-access__table tbody tr:last-child td { border-bottom: none; }

.sul-access__empty {
  color: var(--sul-muted);
  font-size: var(--sul-font-sm);
  text-align: center;
}

.sul-access__people {
  color: var(--sul-primary-action);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.sul-access__people:hover { text-decoration: underline; }

.sul-access__people:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
  border-radius: var(--sul-radius-sm);
}

/* --- By role / Compare roles: a segmented switch at the right end of the tab bar --------------- */

.sul-seg {
  display: flex;
  align-self: center;
  gap: var(--sul-spacing-xxs);
  margin-left: auto;
  padding: var(--sul-spacing-xxs);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-border);
}

.sul-seg__opt {
  display: inline-flex;
  align-items: center;
  min-height: calc(var(--sul-control-touch-min) - var(--sul-spacing-sm));
  padding: 0 var(--sul-spacing-base);
  border-radius: var(--sul-radius-base);
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-sm);
  white-space: nowrap;
  text-decoration: none;
}

.sul-seg__opt:hover { color: var(--sul-text); }

.sul-seg__opt--on {
  background: var(--sul-surface);
  color: var(--sul-primary-action-strong);
  font-weight: 600;
  box-shadow: var(--sul-shadow-sm);
}

.sul-seg__opt:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}

/* --- By role: role cards on the left, the chosen role's permissions on the right --------------- */

.sul-rv {
  display: grid;
  grid-template-columns: calc(var(--sul-desktop-sidebar-width) + var(--sul-spacing-xl)) minmax(0, 1fr);
  gap: var(--sul-spacing-lg);
  align-items: start;
}

.sul-rv__roles {
  position: sticky;
  top: calc(var(--sul-desktop-topbar-height) + var(--sul-spacing-base));
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
}

.sul-rv__card {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-surface);
  color: var(--sul-text);
  text-decoration: none;
  transition: border-color var(--sul-transition-fast) ease, box-shadow var(--sul-transition-fast) ease;
}

.sul-rv__card:hover { border-color: var(--sul-muted); }

.sul-rv__card--on,
.sul-rv__card--on:hover {
  border-color: var(--sul-primary-action);
  box-shadow: 0 0 0 calc(var(--sul-spacing-xxs) + var(--sul-card-border)) var(--sul-pastel-primary);
}

/* A role holding unsaved changes: dashed, and "· unsaved" in words beneath. */
.sul-rv__card--dirty { border-style: dashed; }

.sul-rv__card:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}

.sul-rv__card-top {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
}

.sul-rv__card-top .sul-staff-role__dot {
  width: var(--sul-spacing-compact);
  height: var(--sul-spacing-compact);
}

.sul-rv__card-name { font-size: var(--sul-font-sm); font-weight: 600; }

.sul-rv__card-people {
  margin-left: auto;
  color: var(--sul-muted);
  font-size: var(--sul-font-xs);
  white-space: nowrap;
}

.sul-rv__card-desc {
  color: var(--sul-muted);
  font-size: var(--sul-font-xs);
  line-height: 1.4;
}

/* The share of permissions on, in the role's own colour. A native progress element: its fill comes
   from its value attribute, so no inline width is needed. */
.sul-rv__meter {
  appearance: none;
  width: 100%;
  height: var(--sul-spacing-xs);
  margin-top: var(--sul-spacing-xs);
  border: none;
  border-radius: var(--sul-radius-pill);
  background: var(--sul-border);
  overflow: hidden;
}

.sul-rv__meter::-webkit-progress-bar { background: var(--sul-border); border-radius: var(--sul-radius-pill); }
.sul-rv__meter::-webkit-progress-value { background: var(--sul-staff-ink, var(--sul-primary-action)); border-radius: var(--sul-radius-pill); }
.sul-rv__meter::-moz-progress-bar { background: var(--sul-staff-ink, var(--sul-primary-action)); border-radius: var(--sul-radius-pill); }

.sul-rv__card-count {
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
}

.sul-rv__card-dirty { color: var(--sul-warning-dark); font-weight: 600; }

/* The role's panel. */
.sul-rv__detail {
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-surface);
  overflow: hidden;
}

.sul-rv__head {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  flex-wrap: wrap;
  padding: var(--sul-spacing-lg) var(--sul-spacing-xl);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-rv__badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--sul-avatar-lg);
  height: var(--sul-avatar-lg);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-staff-tint, var(--sul-background));
  color: var(--sul-staff-ink, var(--sul-text));
  font-size: var(--sul-font-base);
  font-weight: 800;
}

.sul-rv__head-text { min-width: 0; }

.sul-rv__title {
  margin: 0;
  font-size: var(--sul-font-lg);
  font-weight: 600;
  color: var(--sul-text);
}

.sul-rv__sub {
  margin: var(--sul-spacing-xxs) 0 0;
  color: var(--sul-muted);
  font-size: var(--sul-font-sm);
}

.sul-rv__people {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  margin-left: auto;
}

.sul-rv__stack { display: flex; }

.sul-rv__avatar {
  display: grid;
  place-items: center;
  width: var(--sul-avatar-sm);
  height: var(--sul-avatar-sm);
  margin-left: calc(var(--sul-spacing-xs) * -1);
  border: var(--sul-spacing-xxs) solid var(--sul-surface);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-staff-tint, var(--sul-background));
  color: var(--sul-staff-ink, var(--sul-text));
  font-size: var(--sul-font-xxs);
  font-weight: 700;
}

.sul-rv__avatar:first-child { margin-left: 0; }

/* Super Admin's lock, and the view-only note for anyone who may not edit. */
.sul-rv__note {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  margin: 0;
  padding: var(--sul-spacing-compact) var(--sul-spacing-xl);
  background: var(--sul-background);
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-sm);
}

.sul-rv__note--locked {
  background: var(--sul-role-super-admin-bg);
  color: var(--sul-role-super-admin);
}

.sul-rv__tools {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base) var(--sul-spacing-lg);
  flex-wrap: wrap;
  padding: var(--sul-spacing-base) var(--sul-spacing-xl);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-rv__only {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  min-height: var(--sul-control-touch-min);
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-sm);
  cursor: pointer;
}

.sul-rv__only input {
  width: var(--sul-font-base);
  height: var(--sul-font-base);
  margin: 0;
  accent-color: var(--sul-primary-action);
}

/* A group: a heading that folds, how many are on, and Turn all on / off. */
.sul-rv__group { border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-rv__group:last-of-type { border-bottom: none; }

.sul-rv__ghead {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-xs) var(--sul-spacing-sm);
  flex-wrap: wrap;
  padding: var(--sul-spacing-xs) var(--sul-spacing-xl) var(--sul-spacing-xs) var(--sul-spacing-base);
  background: var(--sul-background);
}

.sul-rv__gtitle {
  margin: 0;
  font-size: var(--sul-font-sm);
  font-weight: 700;
  color: var(--sul-text);
}

.sul-rv__gtitle > span { display: inline-block; padding-left: var(--sul-spacing-sm); }

.sul-rv__gtoggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  min-height: var(--sul-control-touch-min);
  padding: 0 var(--sul-spacing-xs);
  border: none;
  border-radius: var(--sul-radius-base);
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.sul-rv__gtoggle:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: calc(var(--sul-spacing-xxs) * -1);
}

.sul-rv__gtoggle[aria-expanded="false"] .sul-access__chevron svg { transform: rotate(-90deg); }

.sul-rv__ghint { color: var(--sul-muted); font-size: var(--sul-font-xs); }

.sul-rv__gcount {
  margin-left: auto;
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
}

.sul-rv__gall {
  min-height: calc(var(--sul-control-touch-min) - var(--sul-spacing-sm));
  padding: 0 var(--sul-spacing-compact);
  border: none;
  border-radius: var(--sul-radius-base);
  background: none;
  color: var(--sul-primary-action);
  font: inherit;
  font-size: var(--sul-font-xs);
  font-weight: 600;
  cursor: pointer;
}

.sul-rv__gall:hover { background: var(--sul-pastel-primary); color: var(--sul-primary-action-strong); }

.sul-rv__gall:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}

.sul-rv__group--closed .sul-rv__items { display: none; }

/* One permission: what it is on the left, its switch on the right. */
.sul-rv__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-xs) var(--sul-spacing-lg) var(--sul-spacing-xs) calc(var(--sul-spacing-3xl) + var(--sul-spacing-sm));
  border-top: var(--sul-card-border) solid var(--sul-border);
}

.sul-rv__item:hover { background: var(--sul-selected-bg); }

/* An action, indented under its page with an elbow drawn from the page above. */
.sul-rv__item--child {
  position: relative;
  padding-left: calc(var(--sul-spacing-3xl) * 2);
  background: var(--sul-background);
}

.sul-rv__item--child::before {
  content: "";
  position: absolute;
  left: calc(var(--sul-spacing-3xl) + var(--sul-spacing-base) + var(--sul-spacing-xxs));
  top: 0;
  bottom: 50%;
  width: var(--sul-spacing-compact);
  border-left: var(--sul-spacing-xxs) solid var(--sul-border);
  border-bottom: var(--sul-spacing-xxs) solid var(--sul-border);
  border-bottom-left-radius: var(--sul-radius-base);
}

.sul-rv__label { display: flex; flex-direction: column; min-width: 0; padding: var(--sul-spacing-xs) 0; }

.sul-rv__name {
  font-size: var(--sul-font-sm);
  font-weight: 500;
  color: var(--sul-text);
}

.sul-rv__tag {
  margin-right: var(--sul-spacing-xs);
  color: var(--sul-muted);
  font-size: var(--sul-font-xxs);
  font-weight: 700;
  letter-spacing: var(--sul-tracking-tight);
  text-transform: uppercase;
}

/* The module's code, for whoever is matching a row to the database: shown on hover or focus only,
   so it never competes with the name. */
.sul-rv__code {
  margin-left: var(--sul-spacing-xs);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--sul-font-xxs);
  color: var(--sul-muted);
  opacity: 0;
  transition: opacity var(--sul-transition-fast) ease;
}

.sul-rv__item:hover .sul-rv__code,
.sul-rv__item:focus-within .sul-rv__code { opacity: 1; }

.sul-rv__hint {
  color: var(--sul-muted);
  font-size: var(--sul-font-xs);
}

.sul-rv__needs,
.sul-rv__unset {
  color: var(--sul-warning-dark);
  font-size: var(--sul-font-xs);
}

/* An action waiting for its page: dimmed, with "Turn on Billing first" left at full strength. */
.sul-rv__item--waiting .sul-rv__name,
.sul-rv__item--waiting .sul-switch { opacity: var(--sul-opacity-disabled); }

.sul-rv__always {
  padding: var(--sul-spacing-xs) var(--sul-spacing-compact);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-background);
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
  white-space: nowrap;
}

.sul-rv__empty {
  margin: 0;
  padding: var(--sul-spacing-xl);
  color: var(--sul-muted);
  font-size: var(--sul-font-sm);
  text-align: center;
}

.sul-rv__foot {
  display: flex;
  justify-content: flex-end;
  padding: var(--sul-spacing-base) var(--sul-spacing-xl);
  border-top: var(--sul-card-border) solid var(--sul-border);
}

/* --- The switch -----------------------------------------------------------------------------------

   A real checkbox (role="switch"), invisible over its drawn track, so it stays focusable, clickable
   and announced. The label is the hit area: the touch floor square around the smaller track. Off is
   the muted ink, not a pale grey, so the off track and the white knob both clear 3:1 (WCAG 1.4.11). */

.sul-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--sul-control-touch-min);
  min-height: var(--sul-control-touch-min);
  cursor: pointer;
}

.sul-switch__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.sul-switch__input:disabled { cursor: not-allowed; }

.sul-switch__track {
  position: relative;
  display: inline-block;
  width: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xs) + var(--sul-spacing-xxs));
  height: calc(var(--sul-spacing-xl) + var(--sul-spacing-xxs));
  border-radius: var(--sul-radius-pill);
  background: var(--sul-muted);
  transition: background var(--sul-transition-fast) ease;
}

.sul-switch__track::after {
  content: "";
  position: absolute;
  top: var(--sul-spacing-xxs);
  left: var(--sul-spacing-xxs);
  width: calc(var(--sul-spacing-lg) + var(--sul-spacing-xxs));
  height: calc(var(--sul-spacing-lg) + var(--sul-spacing-xxs));
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  box-shadow: var(--sul-shadow-sm);
  transition: transform var(--sul-transition-fast) ease;
}

.sul-switch__input:checked + .sul-switch__track { background: var(--sul-success-dark); }

.sul-switch__input:checked + .sul-switch__track::after {
  transform: translateX(var(--sul-spacing-lg));
}

.sul-switch:hover .sul-switch__input:not(:disabled) + .sul-switch__track { box-shadow: 0 0 0 var(--sul-spacing-xs) var(--sul-pastel-primary); }

.sul-switch__input:focus-visible + .sul-switch__track {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}

.sul-switch__input:disabled + .sul-switch__track { opacity: var(--sul-opacity-hover); }

/* Changed and not saved: an amber ring, the same signal as a changed role picker. */
.sul-switch--changed .sul-switch__track,
.sul-switch--changed:hover .sul-switch__input + .sul-switch__track {
  box-shadow: 0 0 0 var(--sul-spacing-xxs) var(--sul-surface), 0 0 0 var(--sul-spacing-xs) var(--sul-warning);
}

/* Super Admin's: drawn on, not a control. */
.sul-switch--locked { cursor: default; }
.sul-switch--locked .sul-switch__track { background: var(--sul-success-dark); opacity: var(--sul-opacity-hover); }
.sul-switch--locked .sul-switch__track::after { transform: translateX(var(--sul-spacing-lg)); }

/* --- Compare roles: every role side by side, read-only ------------------------------------------ */

.sul-cmp { display: flex; flex-direction: column; gap: var(--sul-spacing-base); }

.sul-cmp__tools {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base) var(--sul-spacing-lg);
  flex-wrap: wrap;
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-surface);
}

.sul-cmp__legend {
  display: flex;
  gap: var(--sul-spacing-lg);
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
}

.sul-cmp__legend li { display: inline-flex; align-items: center; gap: var(--sul-spacing-sm); }

/* Its own scroll box, bounded by the viewport on a desktop, so the role headings stay in view. It
   is the positioned ancestor of each cell's screen-reader word, or those would widen the page. */
.sul-cmp__scroll {
  position: relative;
  max-height: calc(100vh - var(--sul-desktop-topbar-height) * 4);
  overflow: auto;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-surface);
}

.sul-cmp__scroll:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: calc(var(--sul-spacing-xxs) * -1);
}

.sul-cmp__table {
  width: 100%;
  min-width: calc(var(--sul-desktop-card-min) * 2.4);
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--sul-font-sm);
}

.sul-cmp__table th,
.sul-cmp__table td {
  padding: var(--sul-spacing-sm);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
  background-clip: padding-box;
  text-align: center;
  vertical-align: middle;
}

.sul-cmp__table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: var(--sul-spacing-base) var(--sul-spacing-sm);
  background: var(--sul-background);
  color: var(--sul-text);
  font-weight: 600;
  white-space: nowrap;
}

.sul-cmp__table thead small {
  display: block;
  margin-top: var(--sul-spacing-xxs);
  color: var(--sul-muted);
  font-size: var(--sul-font-xs);
  font-weight: 400;
}

.sul-cmp__role { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); }

/* The permission column sticks to the left edge when the grid scrolls sideways. */
.sul-cmp__table tbody th,
.sul-cmp__table .sul-cmp__perm {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: calc(var(--sul-desktop-card-min) * 0.8);
  padding-left: var(--sul-spacing-lg);
  background: var(--sul-surface);
  border-right: var(--sul-card-border) solid var(--sul-border);
  font-weight: 500;
  text-align: left;
}

.sul-cmp__table thead .sul-cmp__perm { z-index: 3; background: var(--sul-background); }

.sul-cmp__group th,
.sul-cmp__table .sul-cmp__group th {
  background: var(--sul-background);
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
  font-weight: 700;
  letter-spacing: var(--sul-tracking-tight);
  text-transform: uppercase;
}

.sul-cmp__group th span { font-weight: 400; text-transform: none; color: var(--sul-muted); }

.sul-cmp__table .sul-cmp__row--child th {
  padding-left: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xs));
  color: var(--sul-text-secondary);
}

.sul-cmp__parent { color: var(--sul-muted); }

.sul-cmp__row:hover th,
.sul-cmp__row:hover td { background: var(--sul-selected-bg); }

.sul-cmp__locked { background: var(--sul-background); }

.sul-cmp__always {
  color: var(--sul-muted);
  font-size: var(--sul-font-xs);
}

/* A dot: filled for can open, a ring for no access, dashed for not set. Shape, not colour alone. */
.sul-dot {
  display: inline-block;
  width: var(--sul-spacing-compact);
  height: var(--sul-spacing-compact);
  box-sizing: border-box;
  border-radius: var(--sul-radius-pill);
  vertical-align: middle;
}

.sul-dot--on { background: var(--sul-success-dark); }
.sul-dot--off { border: var(--sul-card-border) solid var(--sul-muted); }
.sul-dot--unset { border: var(--sul-card-border) dashed var(--sul-muted); }
.sul-dot--changed { box-shadow: 0 0 0 var(--sul-spacing-xxs) var(--sul-surface), 0 0 0 var(--sul-spacing-xs) var(--sul-warning); }

/* --- The "N changes saved" toast ----------------------------------------------------------------- */

.sul-toast {
  position: fixed;
  left: 50%;
  bottom: var(--sul-spacing-xl);
  z-index: 60;
  margin: 0;
  padding: var(--sul-spacing-compact) var(--sul-spacing-lg);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-success-dark);
  color: var(--sul-surface);
  box-shadow: var(--sul-shadow-lg);
  font-size: var(--sul-font-sm);
  font-weight: 600;
  transform: translateX(-50%);
}

@media (prefers-reduced-motion: no-preference) {
  .sul-toast { animation: sul-savebar-in var(--sul-transition-base) ease-out; }
}

/* --- Staff Details: tabs, members, role colours, the save bar ------------------------------

   One hue per role (role.* in tokens.json), set once as two custom properties on a
   .sul-role--{code} class and read by the dot, the avatar, the picker and the matrix heading.
   The role's NAME is always printed beside its colour, so colour is never the only signal. */

.sul-role--super_admin      { --sul-staff-ink: var(--sul-role-super-admin);      --sul-staff-tint: var(--sul-role-super-admin-bg); }
.sul-role--admin            { --sul-staff-ink: var(--sul-role-admin);            --sul-staff-tint: var(--sul-role-admin-bg); }
.sul-role--content_admin    { --sul-staff-ink: var(--sul-role-content-admin);    --sul-staff-tint: var(--sul-role-content-admin-bg); }
.sul-role--operations_admin { --sul-staff-ink: var(--sul-role-operations-admin); --sul-staff-tint: var(--sul-role-operations-admin-bg); }
.sul-role--viewer           { --sul-staff-ink: var(--sul-role-viewer);           --sul-staff-tint: var(--sul-role-viewer-bg); }
/* A role added on Staff Details (migration 140) has no hue of its own. */
.sul-role--custom           { --sul-staff-ink: var(--sul-secondary-text);        --sul-staff-tint: var(--sul-secondary-bg); }

/* "Based on Admin: …" under an added role's name, with its Edit link. */
.sul-rv__based {
  margin: var(--sul-spacing-xxs) 0 0;
  color: var(--sul-muted);
  font-size: var(--sul-font-xs);
}

.sul-rv__based a,
.sul-rv__based button {
  color: var(--sul-secondary-text);
  font-weight: 600;
  margin-left: var(--sul-spacing-xxs);
}

/* Migration 196's round robin switch: a link-styled button posting its own form, outside the grid's. */
.sul-rv__based button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* The full-width admin tier (ViewData["AdminShell"] = "full") keeps a gutter, so a page that uses
   it never runs into the window's edge between the phone and desktop widths. */
.sul-admin-main--full {
  box-sizing: border-box;
  padding-left: var(--sul-spacing-2xl);
  padding-right: var(--sul-spacing-2xl);
}

.sul-access.sul-staff {
  max-width: none;
  margin: var(--sul-spacing-lg) 0 0;
}

.sul-staff { gap: var(--sul-spacing-lg); padding-bottom: calc(var(--sul-spacing-3xl) * 3); }

/* .sul-button and the flex rows here set their own display, which beats the UA [hidden] rule. */
.sul-staff [hidden] { display: none; }

.sul-staff__panel { display: flex; flex-direction: column; gap: var(--sul-spacing-lg); }
.sul-staff__panel[hidden] { display: none; }
.sul-staff__panel > form { display: flex; flex-direction: column; gap: var(--sul-spacing-lg); margin: 0; }

/* Tabs */
.sul-staff-tabs {
  display: flex;
  gap: var(--sul-spacing-xs);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
  overflow-x: auto;
}

.sul-staff-tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  min-height: var(--sul-control-touch-min);
  box-sizing: border-box;
  margin-bottom: calc(var(--sul-card-border) * -1);
  padding: 0 var(--sul-spacing-lg);
  border-bottom: var(--sul-spacing-xxs) solid transparent;
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-sm);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

.sul-staff-tabs__tab:hover { color: var(--sul-text); }

.sul-staff-tabs__tab--on {
  border-bottom-color: var(--sul-primary-action);
  color: var(--sul-primary-action-strong);
  font-weight: 600;
}

.sul-staff-tabs__tab:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: calc(var(--sul-spacing-xxs) * -1);
}

.sul-staff-tabs__count {
  padding: 0 var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-background);
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
  font-weight: 500;
}

/* Toolbar inside a card: chips or filter on the left, the rest on the right. */
.sul-staff__toolbar {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base) var(--sul-spacing-lg);
  flex-wrap: wrap;
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-staff__search { margin-left: auto; }

/* Role filter chips */
.sul-staff-chips {
  display: flex;
  gap: var(--sul-spacing-xs);
  flex-wrap: wrap;
}

.sul-staff-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  min-height: calc(var(--sul-control-touch-min) - var(--sul-spacing-sm));
  box-sizing: border-box;
  padding: 0 var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-sm);
  text-decoration: none;
}

.sul-staff-chip:hover { border-color: var(--sul-muted); }

.sul-staff-chip b { font-weight: 700; color: var(--sul-text); }

.sul-staff-chip--on {
  border-color: var(--sul-primary-action);
  background: var(--sul-primary-action);
  color: var(--sul-surface);
}

.sul-staff-chip--on b { color: var(--sul-surface); }
.sul-staff-chip--on .sul-staff-role__dot { background: var(--sul-surface); }

.sul-staff-chip:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}

/* The members table */
.sul-staff__table th,
.sul-staff__table td { text-align: left; }

.sul-staff__table thead th {
  background: var(--sul-background);
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
  font-weight: 600;
  letter-spacing: var(--sul-tracking-tight);
  text-transform: uppercase;
}

.sul-staff__row:hover td { background: var(--sul-background); }
.sul-staff__row--changed td,
.sul-staff__row--changed:hover td { background: var(--sul-warning-light); }

.sul-staff-member {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-compact);
}

.sul-staff-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--sul-avatar-md);
  height: var(--sul-avatar-md);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-staff-tint, var(--sul-background));
  color: var(--sul-staff-ink, var(--sul-muted));
  font-size: var(--sul-font-xs);
  font-weight: 700;
}

.sul-staff-member__text { display: flex; flex-direction: column; min-width: 0; }

.sul-staff-member__name {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--sul-text);
}

.sul-staff-member__upn {
  color: var(--sul-muted);
  font-size: var(--sul-font-xs);
}

.sul-staff-member__you {
  padding: 0 var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-pastel-primary);
  color: var(--sul-primary-action-strong);
  font-size: var(--sul-font-xxs);
  font-weight: 700;
}

/* A role: a pill whose dot and text carry the role's hue. As a picker, the select fills it. */
.sul-staff-role {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  color: var(--sul-staff-ink, var(--sul-text));
  font-size: var(--sul-font-xs);
  font-weight: 600;
}

.sul-staff-role--static {
  padding: var(--sul-spacing-xs) var(--sul-spacing-compact);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
}

.sul-staff-role__dot {
  display: inline-block;
  flex: 0 0 auto;
  width: var(--sul-spacing-sm);
  height: var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-staff-ink, var(--sul-muted));
}

.sul-staff-role .sul-staff-role__dot { position: relative; z-index: 1; }

[data-sul-role-pick] .sul-staff-role__dot {
  position: absolute;
  left: var(--sul-spacing-compact);
  pointer-events: none;
}

.sul-staff-role__select {
  appearance: none;
  min-height: var(--sul-control-touch-min);
  padding: 0 var(--sul-spacing-3xl) 0 calc(var(--sul-spacing-compact) + var(--sul-spacing-lg));
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.sul-staff-role__select:hover { border-color: var(--sul-muted); }

.sul-staff-role__select:focus-visible {
  outline: none;
  border-color: var(--sul-primary-action);
  box-shadow: 0 0 0 var(--sul-spacing-xs) var(--sul-pastel-primary);
}

/* A market picker (migration 141): the role picker's pill with no hue and no dot to clear. */
.sul-staff-role--market .sul-staff-role__select { padding-left: var(--sul-spacing-compact); }

/* Platforms a member works on (migration 175), under their market. None ticked = every platform. */
.sul-staff-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-xs) var(--sul-spacing-compact);
  margin: var(--sul-spacing-xs) 0 0;
  padding: 0;
  border: 0;
}

.sul-staff-platforms__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  font-size: var(--sul-font-sm);
}

.sul-staff-platforms__hint,
.sul-staff-platforms__static {
  display: block;
  width: 100%;
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
}

.sul-staff-platforms__static { margin-top: var(--sul-spacing-xs); }

/* The drop arrow: two borders of a square, turned. No glyph, so no font decides its size. */
[data-sul-role-pick]::after,
[data-sul-market-pick]::after {
  content: "";
  position: absolute;
  right: var(--sul-spacing-base);
  width: var(--sul-spacing-xs);
  height: var(--sul-spacing-xs);
  border-right: var(--sul-spacing-xxs) solid var(--sul-muted);
  border-bottom: var(--sul-spacing-xxs) solid var(--sul-muted);
  transform: translateY(-25%) rotate(45deg);
  pointer-events: none;
}

.sul-staff-role__was {
  margin-left: var(--sul-spacing-sm);
  color: var(--sul-warning-dark);
  font-size: var(--sul-font-xs);
}

.sul-staff__roles {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  flex-wrap: wrap;
}

.sul-staff__hint {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  color: var(--sul-muted);
  font-size: var(--sul-font-xs);
}

.sul-staff__can {
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-sm);
  white-space: nowrap;
}

.sul-staff__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sul-spacing-base);
  flex-wrap: wrap;
}

.sul-staff__foot .sul-access__lede { margin: 0; }

/* The save bar: floats at the foot of the screen while its form has unsaved changes. */
.sul-savebar {
  position: fixed;
  left: 50%;
  bottom: var(--sul-spacing-xl);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  max-width: calc(100% - var(--sul-spacing-3xl));
  padding: var(--sul-spacing-compact) var(--sul-spacing-compact) var(--sul-spacing-compact) var(--sul-spacing-lg);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-text);
  color: var(--sul-surface);
  box-shadow: var(--sul-shadow-lg);
  font-size: var(--sul-font-sm);
  transform: translateX(-50%);
}

.sul-savebar[hidden] { display: none; }
.sul-savebar__text { font-weight: 600; margin-right: auto; }

@media (prefers-reduced-motion: no-preference) {
  .sul-savebar { animation: sul-savebar-in var(--sul-transition-base) ease-out; }
}

@keyframes sul-savebar-in {
  from { opacity: 0; transform: translate(-50%, 50%); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* A tablet: the role cards become a row that scrolls sideways above the chosen role's permissions,
   and the compare legend drops under its filters. */
@media (max-width: 900px) {
  .sul-rv { grid-template-columns: minmax(0, 1fr); }
  .sul-rv__roles {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: var(--sul-spacing-xs);
    margin: calc(var(--sul-spacing-xs) * -1);
  }
  .sul-rv__card { flex: 0 0 calc(var(--sul-desktop-connection-detail-min) + var(--sul-spacing-xl)); }
  .sul-cmp__legend { margin-left: 0; }
}

@media (max-width: 640px) {
  .sul-admin-main--full { padding-left: var(--sul-spacing-lg); padding-right: var(--sul-spacing-lg); }
  .sul-access { margin: var(--sul-spacing-lg) auto; }
  .sul-access__title { font-size: var(--sul-font-xl); }
  .sul-access__head .sul-access__actions,
  .sul-access__head .sul-button { width: 100%; }
  .sul-access__filter { flex: 1 1 100%; }
  .sul-staff__search { margin-left: 0; flex: 1 1 100%; }
  .sul-staff__can-col,
  .sul-staff__can { display: none; }
  .sul-access__table th,
  .sul-access__table td { padding: var(--sul-spacing-sm); }
  /* The view switch takes its own line under the tabs rather than squeezing them. */
  .sul-staff-tabs { flex-wrap: wrap; overflow-x: visible; }
  .sul-seg { margin: var(--sul-spacing-xs) 0 var(--sul-spacing-sm); }
  .sul-rv__head, .sul-rv__tools, .sul-rv__note { padding-left: var(--sul-spacing-lg); padding-right: var(--sul-spacing-lg); }
  .sul-rv__people { margin-left: 0; flex: 1 1 100%; }
  .sul-rv__item { padding-left: var(--sul-spacing-lg); }
  .sul-rv__item--child { padding-left: calc(var(--sul-spacing-3xl) + var(--sul-spacing-sm)); }
  .sul-rv__item--child::before { left: var(--sul-spacing-xl); }
  .sul-rv__ghead { padding-right: var(--sul-spacing-lg); }
  /* Only sideways scrolling on a phone: a second vertical scroller inside the page traps touch. */
  .sul-cmp__scroll { max-height: none; }
  .sul-cmp__table { min-width: calc(var(--sul-desktop-card-min) * 2); }
  .sul-cmp__table tbody th,
  .sul-cmp__table .sul-cmp__perm { min-width: calc(var(--sul-desktop-card-min) * 0.45); }
  .sul-cmp__table thead th { position: static; }
  .sul-savebar { left: var(--sul-spacing-lg); right: var(--sul-spacing-lg); max-width: none; transform: none; animation: none; }
  .sul-savebar { flex-wrap: wrap; }
  .sul-toast { left: var(--sul-spacing-lg); right: var(--sul-spacing-lg); transform: none; text-align: center; }
}

/* --- Onboarding step 2: the category picker --------------------------------
   One combobox for many categories. The first chosen is the main category on
   Google; the rest are additional. category-picker.js drives it; without the
   script the same markup is checkboxes and a Search button. */
.sul-card-header__meta { font-size: var(--sul-font-xs); color: var(--sul-muted); }

/* The dropdown hangs below the input and must not be clipped by the card. */
.sul-card:has(.sul-cat-combo) { overflow: visible; }

.sul-cat-combo { position: relative; }

.sul-cat-combo__icon {
  position: absolute;
  left: var(--sul-spacing-base);
  top: 50%;
  transform: translateY(-50%);
  color: var(--sul-muted);
  pointer-events: none;
}

.sul-cat-combo__input {
  min-height: var(--sul-control-touch-min);
  padding-left: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xs));
  padding-right: var(--sul-spacing-3xl);
  font-size: var(--sul-font-base);
}

.sul-cat-combo__input:focus-visible { border-color: var(--sul-primary-action); }
.sul-cat-combo__input:disabled { background: var(--sul-background); }

.sul-cat-combo__spin {
  position: absolute;
  right: var(--sul-spacing-base);
  top: 50%;
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  margin-top: calc(var(--sul-spacing-sm) * -1);
  box-sizing: border-box;
  border: var(--sul-spacing-xxs) solid var(--sul-border);
  border-top-color: var(--sul-primary-action);
  border-radius: var(--sul-radius-pill);
  animation: sul-spin 0.7s linear infinite;
}

/* .sul-button sets its own display, which beats the UA [hidden] rule, so the no-JS Search
   button needs saying explicitly. */
.sul-cat-combo__spin[hidden],
.sul-cat-combo__list[hidden],
.sul-cat-sugg[hidden],
.sul-cat [data-category-search-button][hidden] { display: none; }

/* The PANEL floats and the LIST scrolls inside it, so the Done footer stays in view however long
   the results are. A footer inside the scroller would scroll away with the options it closes. */
.sul-cat-combo__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + var(--sul-spacing-xs));
  z-index: 10;
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  box-shadow: var(--sul-shadow-lg);
  overflow: hidden;
}

.sul-cat-combo__list {
  max-height: calc(var(--sul-spacing-3xl) * 9);
  overflow: auto;
  padding: var(--sul-spacing-xs);
}

/* Markup that predates the panel still floats its list on its own. */
.sul-cat-combo > .sul-cat-combo__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + var(--sul-spacing-xs));
  z-index: 10;
  max-height: calc(var(--sul-spacing-3xl) * 10);
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  box-shadow: var(--sul-shadow-lg);
}

.sul-cat-combo__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-top: var(--sul-card-border) solid var(--sul-border);
  background: var(--sul-background);
}

.sul-cat-combo__picked { font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-cat-combo__done { flex: none; padding: var(--sul-spacing-xs) var(--sul-spacing-lg); }

.sul-cat-combo__msg { padding: var(--sul-spacing-base) var(--sul-spacing-compact); color: var(--sul-muted); font-size: var(--sul-font-sm); }

.sul-cat-combo__retry {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--sul-primary-action);
  cursor: pointer;
}

.sul-cat-opt {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-radius: var(--sul-radius-lg);
  cursor: pointer;
  font-size: var(--sul-font-sm);
}

.sul-cat-opt--active { background: var(--sul-selected-bg); }
.sul-cat-opt--disabled { opacity: var(--sul-opacity-disabled); cursor: not-allowed; }
.sul-cat-opt mark { background: none; color: inherit; font-weight: 700; }
.sul-cat-opt__name { flex: 1; }

/* Sulekha's tags come first in the dropdown, under their own heading, then Google's categories.
   A tag says which Google category it maps to, because that is what reaches the listing. */
.sul-cat-combo__group {
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact) var(--sul-spacing-xs);
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-muted);
}

.sul-cat-opt__note,
.sul-cat-results__note,
.sul-cat-sel__note {
  flex: none;
  font-size: var(--sul-font-xs);
  font-weight: 400;
  color: var(--sul-muted);
}

.sul-cat-opt__box {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-placeholder);
  border-radius: var(--sul-radius-sm);
  font-size: var(--sul-font-micro);
  color: var(--sul-surface);
}

.sul-cat-opt[aria-selected="true"] .sul-cat-opt__box {
  background: var(--sul-primary-action);
  border-color: var(--sul-primary-action);
}

/* No-JS search results. */
.sul-cat-results { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: var(--sul-spacing-xs); }
.sul-cat-results__legend { padding: 0; margin-bottom: var(--sul-spacing-xs); font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-cat-results__item { display: flex; align-items: center; gap: var(--sul-spacing-sm); font-size: var(--sul-font-sm); }
.sul-cat-results__group { margin: var(--sul-spacing-xs) 0 0; font-size: var(--sul-font-xs); font-weight: 600; color: var(--sul-muted); }

.sul-cat-sugg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-sm);
  margin-top: var(--sul-spacing-sm);
}

.sul-cat-sugg__label { font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xs) var(--sul-spacing-base);
  border: var(--sul-card-border) dashed var(--sul-disabled);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  font: inherit;
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
  cursor: pointer;
}

.sul-cat-chip:hover { border-color: var(--sul-primary-action); color: var(--sul-primary-action); }
.sul-cat-chip:focus-visible,
.sul-cat-chip:has(input:focus-visible) { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
/* No-JS: a ticked suggestion reads as chosen. */
.sul-cat-chip:has(input:checked) { border-style: solid; border-color: var(--sul-primary-action); background: var(--sul-selected-bg); }

.sul-cat-selhd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--sul-spacing-lg);
}

.sul-cat-selhd__title { margin: 0; font-size: var(--sul-card-label-size); font-weight: 600; color: var(--sul-text); }
.sul-cat-selhd__note { font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-cat-none {
  margin: 0;
  padding: var(--sul-spacing-lg);
  border: var(--sul-card-border) dashed var(--sul-border);
  border-radius: var(--sul-radius-xl);
  text-align: center;
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}

.sul-cat-sel {
  list-style: none;
  margin: 0;
  padding: 0;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  overflow: hidden;
}

.sul-cat-sel__item {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border-top: var(--sul-card-border) solid var(--sul-border);
  background: var(--sul-surface);
}

.sul-cat-sel__item:first-child { border-top: 0; background: var(--sul-selected-bg); }

.sul-cat-sel__name {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  font-size: var(--sul-font-sm);
  font-weight: 500;
}

.sul-cat-badge {
  padding: 0 var(--sul-spacing-sm);
  border: var(--sul-card-border) solid var(--sul-primary);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  font-size: var(--sul-font-micro);
  font-weight: 700;
  color: var(--sul-primary-action-strong);
}

.sul-cat-sel__main,
.sul-cat-sel__remove {
  border: 0;
  background: none;
  font: inherit;
  color: var(--sul-muted);
  cursor: pointer;
  border-radius: var(--sul-radius-base);
}

.sul-cat-sel__main { padding: var(--sul-spacing-xs) var(--sul-spacing-sm); font-size: var(--sul-font-xs); }

.sul-cat-sel__remove {
  width: var(--sul-avatar-sm);
  height: var(--sul-avatar-sm);
  font-size: var(--sul-font-lg);
  line-height: 1;
}

.sul-cat-sel__main:hover { color: var(--sul-text); background: var(--sul-background); }
.sul-cat-sel__remove:hover { color: var(--sul-danger); background: var(--sul-background); }

/* Onboarding's action bar, on every step. Sticky, not fixed: it stays inside the content column, so it never needs to know the
   nav's width to avoid sitting under it. */
.sul-onb-foot {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  margin-top: var(--sul-spacing-lg);
  padding: var(--sul-spacing-base) var(--sul-card-padding-h);
  background: var(--sul-surface);
  border-top: var(--sul-card-border) solid var(--sul-border);
}

.sul-onb-foot__pick {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}

.sul-onb-foot__pick b { color: var(--sul-text); }

/* --- Onboarding step 1: the business --------------------------------------- */
.sul-onb-hello {
  margin: 0 var(--sul-card-padding-h) var(--sul-spacing-xs);
  font-size: var(--sul-card-label-size);
  font-weight: 600;
  color: var(--sul-primary-action);
}

.sul-onb-basics .sul-card-body { gap: var(--sul-spacing-xl); padding: var(--sul-spacing-xl); }

.sul-onb-lbl { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sul-spacing-sm); }

/* "Another business on this number?" under every onboarding step. */
.sul-onb-more { margin-top: var(--sul-spacing-xl); }
.sul-onb-more p { margin: 0; color: var(--sul-muted); }

.sul-onb-more__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sul-spacing-base);
    margin-top: var(--sul-spacing-base);
}

.sul-onb-more__link { color: var(--sul-primary-action); font-weight: 600; }
.sul-onb-lbl__note { font-size: var(--sul-font-xs); color: var(--sul-muted); }

/* City picker: a text box with a list of matching cities under it (onboarding step 1, and the
   Business details island's CityPicker). The list floats over the fields below it. */
.sul-city-picker { position: relative; }
.sul-city-picker__list {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
    margin: var(--sul-spacing-xs) 0 0; padding: var(--sul-spacing-xs) 0; list-style: none;
    max-height: calc(var(--sul-control-touch-min) * 6); overflow-y: auto;
    background: var(--sul-surface); border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-lg); box-shadow: var(--sul-shadow-lg);
}
.sul-city-picker__list[hidden] { display: none; }
.sul-city-picker__option {
    display: flex; align-items: baseline; gap: var(--sul-spacing-sm);
    min-height: var(--sul-control-touch-min); padding: var(--sul-spacing-sm) var(--sul-spacing-base);
    cursor: pointer; color: var(--sul-text); font-size: var(--sul-font-sm);
}
.sul-city-picker__option[aria-selected="true"],
.sul-city-picker__option:hover { background: var(--sul-selected-bg); }
.sul-city-picker__state { color: var(--sul-muted); font-size: var(--sul-font-xs); }
.sul-city-picker__empty { padding: var(--sul-spacing-sm) var(--sul-spacing-base); color: var(--sul-muted); font-size: var(--sul-font-xs); }

.sul-onb-phone { display: flex; gap: var(--sul-spacing-sm); }
.sul-onb-phone__code { flex: none; width: calc(var(--sul-spacing-3xl) * 3.75); }
.sul-onb-phone__number { position: relative; flex: 1; min-width: 0; }
.sul-onb-phone__number .sul-input { padding-right: calc(var(--sul-spacing-3xl) * 3); }

.sul-onb-verified {
  position: absolute;
  right: var(--sul-spacing-compact);
  top: 50%;
  transform: translateY(-50%);
  /* Slice 41: the tick is a Lucide icon (badge-check) beside the word. */
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-xxs) var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-success-light);
  color: var(--sul-success-dark);
  font-size: var(--sul-font-micro);
  font-weight: 700;
}

.sul-onb-verified[hidden] { display: none; }

.sul-onb-about { min-height: calc(var(--sul-spacing-3xl) * 3.5); resize: vertical; line-height: 1.5; }
.sul-onb-help { display: flex; justify-content: space-between; gap: var(--sul-spacing-sm); }
.sul-onb-count { flex: none; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-onb-count--warn { color: var(--sul-danger); }


/* --- Onboarding step 3: tone, customers, about ----------------------------- */
.sul-onb-tones { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sul-spacing-xs); }
.sul-onb-tones__legend { padding: 0; }

.sul-onb-tones__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sul-spacing-sm);
  margin-top: var(--sul-spacing-xs);
}

/* The radio is visually hidden; the card is its label, so a click anywhere on it chooses, and
   arrow keys move between tones natively because they are one radio group. */
.sul-onb-tone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-base) var(--sul-spacing-3xl) var(--sul-spacing-base) var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-surface);
  cursor: pointer;
  transition: border-color var(--sul-transition-fast), background var(--sul-transition-fast);
}

.sul-onb-tone:hover { border-color: var(--sul-placeholder); background: var(--sul-background); }
.sul-onb-tone:has(input:focus-visible) { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }

.sul-onb-tone:has(input:checked) {
  border-color: var(--sul-primary-action);
  background: var(--sul-selected-bg);
  box-shadow: inset 0 0 0 var(--sul-card-border) var(--sul-primary-action);
}

.sul-onb-tone:has(input:checked)::after {
  content: "\2713";
  position: absolute;
  right: var(--sul-spacing-base);
  top: var(--sul-spacing-base);
  font-weight: 700;
  color: var(--sul-primary-action);
}

.sul-onb-tone__name { font-size: var(--sul-font-sm); font-weight: 600; color: var(--sul-text); }
.sul-onb-tone__hint { font-size: var(--sul-font-xs); line-height: 1.4; color: var(--sul-muted); }

.sul-onb-tagbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-xs);
  min-height: var(--sul-control-touch-min);
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  box-sizing: border-box;
  cursor: text;
}

.sul-onb-tagbox:focus-within { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }

.sul-onb-tagbox__input {
  flex: 1;
  min-width: calc(var(--sul-spacing-3xl) * 5);
  padding: var(--sul-spacing-xs);
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
}

.sul-onb-tagbox__input::placeholder { color: var(--sul-placeholder); }

.sul-onb-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xxs) var(--sul-spacing-xs) var(--sul-spacing-xxs) var(--sul-spacing-compact);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-pastel-primary);
  color: var(--sul-primary-action-strong);
  font-size: var(--sul-card-label-size);
}

.sul-onb-tag__remove {
  width: var(--sul-spacing-xl);
  height: var(--sul-spacing-xl);
  padding: 0;
  border: 0;
  border-radius: var(--sul-radius-pill);
  background: none;
  color: inherit;
  font-size: var(--sul-font-sm);
  line-height: 1;
  cursor: pointer;
}

.sul-onb-tag__remove:hover { background: var(--sul-surface); }

.sul-onb-help--end { justify-content: flex-end; }

@media (max-width: 640px) {
  .sul-onb-tones__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------------
   Support console chrome: two rows, and nothing else above the content.
     Row 1  .sul-admin-topbar  brand + estate nav + who is signed in (roles and Sign out behind
                               the avatar)
     Row 2  .sul-admin-bizbar  the business in the route: identity, its tabs, and a slot the page
                               fills (Operate's session controls). Amber-tinted on every
                               tab, with a thick amber rule while operating.
   --------------------------------------------------------------------- */
.sul-admin-topbar {
    gap: var(--sul-spacing-lg);
}

.sul-admin-topbar .sul-topbar__brand { white-space: nowrap; }

.sul-admin-topnav {
    display: flex;
    gap: var(--sul-spacing-xxs);
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.sul-admin-topnav__link {
    padding: var(--sul-spacing-xs) var(--sul-spacing-compact);
    border-radius: var(--sul-radius-base);
    color: var(--sul-muted);
    font-size: var(--sul-font-sm);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.sul-admin-topnav__link:hover { background: var(--sul-background); color: var(--sul-text); }

/* Weight AND a surface, never colour alone. */
.sul-admin-topnav__link--current {
    background: var(--sul-background);
    color: var(--sul-text);
    font-weight: 600;
}

.sul-admin-topnav__link:focus-visible,
.sul-admin-bizbar__tab:focus-visible,
.sul-admin-menu > summary:focus-visible {
    outline: var(--sul-spacing-xxs) solid var(--sul-focus);
    outline-offset: var(--sul-spacing-xxs);
}

.sul-admin-topbar .sul-admin-whoami__upn { white-space: nowrap; }

/* --- The avatar menu and the Operators list: native <details> popovers ------------------- */

.sul-admin-menu { position: relative; }

.sul-admin-menu > summary { list-style: none; cursor: pointer; }
.sul-admin-menu > summary::-webkit-details-marker { display: none; }

.sul-admin-avatar {
    display: grid;
    place-items: center;
    width: var(--sul-avatar-sm);
    height: var(--sul-avatar-sm);
    border-radius: var(--sul-radius-pill);
    background: var(--sul-border);
    color: var(--sul-text);
    font-size: var(--sul-font-xs);
    font-weight: 700;
}

.sul-admin-popover {
    position: absolute;
    right: 0;
    top: calc(100% + var(--sul-spacing-sm));
    z-index: 30;
    padding: var(--sul-spacing-base);
    background: var(--sul-surface);
    color: var(--sul-text);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-xl);
    box-shadow: var(--sul-shadow-lg);
    font-size: var(--sul-font-sm);
    font-weight: 400;
    white-space: normal;
}

.sul-admin-popover--menu { width: calc(var(--sul-spacing-3xl) * 8); }

.sul-admin-popover__title {
    margin: 0 0 var(--sul-spacing-sm);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.sul-admin-menu__roles {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sul-spacing-xs);
    margin-bottom: var(--sul-spacing-base);
}

.sul-admin-menu__signout { width: 100%; }

.sul-admin-popover__list { list-style: none; margin: 0; padding: 0; }

.sul-admin-popover__list li {
    display: flex;
    justify-content: space-between;
    gap: var(--sul-spacing-sm);
    padding: var(--sul-spacing-sm) 0;
    border-top: var(--sul-card-border) solid var(--sul-border);
    overflow-wrap: anywhere;
}

.sul-admin-popover__list li:first-child { border-top: 0; }

.sul-admin-popover__muted { color: var(--sul-muted); white-space: nowrap; }

.sul-admin-popover__foot {
    margin: var(--sul-spacing-sm) calc(var(--sul-spacing-base) * -1) calc(var(--sul-spacing-base) * -1);
    padding: var(--sul-spacing-compact) var(--sul-spacing-base);
    border-top: var(--sul-card-border) solid var(--sul-border);
    color: var(--sul-muted);
    font-size: var(--sul-font-xs);
}

.sul-admin-popover__foot a { color: var(--sul-primary-action); font-weight: 600; }

/* --- Row 2: the business bar ------------------------------------------------------------- */

/* On the PAGE background, not the surface. Both rows on white with the same muted 14px links read
   as one nav split over two lines; on the page's own tint, row 2 reads as the header of the
   business below it and row 1 stays the console's chrome. */
.sul-admin-bizbar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: stretch;
    gap: var(--sul-spacing-lg);
    min-height: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xl));
    padding: 0 var(--sul-spacing-lg);
    background: var(--sul-pastel-warning);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
}

/* Capped, so a long business name ("Best Astrology Spritual Healer & Psychic Reader(Pandith
   Karthik JI)") ends in an ellipsis instead of pushing the tabs across the bar. The full name is
   the tooltip. */
.sul-admin-bizbar__identity {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    gap: var(--sul-spacing-compact);
    min-width: 0;
    max-width: calc(var(--sul-spacing-3xl) * 10);
    white-space: nowrap;
}

.sul-admin-bizbar__mark {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--sul-avatar-sm);
    height: var(--sul-avatar-sm);
    border-radius: var(--sul-radius-lg);
    background: var(--sul-pastel-primary);
    color: var(--sul-primary-action-strong);
    font-size: var(--sul-font-xs);
    font-weight: 700;
}

.sul-admin-bizbar__names { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }

.sul-admin-bizbar__crumb { color: var(--sul-muted); font-size: var(--sul-font-xs); }
.sul-admin-bizbar__crumb a { color: inherit; }

.sul-admin-bizbar__title { display: flex; align-items: center; gap: var(--sul-spacing-xs); min-width: 0; }
.sul-admin-bizbar__title > .sul-pill { flex: none; }

.sul-admin-bizbar__name {
    display: block;
    font-size: var(--sul-font-sm);
    overflow: hidden;
    text-overflow: ellipsis;
}

.sul-admin-bizbar__tabs {
    display: flex;
    align-items: stretch;
    gap: var(--sul-spacing-xxs);
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.sul-admin-bizbar__tab {
    display: flex;
    align-items: center;
    padding: 0 var(--sul-spacing-compact);
    border-bottom: var(--sul-spacing-xxs) solid transparent;
    color: var(--sul-muted);
    font-size: var(--sul-font-sm);
    text-decoration: none;
    white-space: nowrap;
}

.sul-admin-bizbar__tab:hover { color: var(--sul-text); }

.sul-admin-bizbar__tab--current {
    color: var(--sul-primary-action);
    font-weight: 600;
    border-bottom-color: var(--sul-primary-action);
}

/* Operating: the row is already amber-tinted on every tab, so a session adds the thick amber
   rule and amber current tab, which keep it impossible to lose sight of from any screen of the
   framed app. warning-dark carries the TEXT -- the amber itself is 2.16:1 on white and only ever
   paints a surface or the thick rule. */
.sul-admin-bizbar--operating {
    border-bottom: var(--sul-spacing-xxs) solid var(--sul-warning);
}

.sul-admin-bizbar--operating .sul-admin-bizbar__tab--current {
    color: var(--sul-warning-dark);
    border-bottom-color: var(--sul-warning-dark);
}

/* --- "More": the tabs a strip has no room for (sul-nav-overflow.js) -----------------------
   Each bar is ONE row whatever is added to it. The session controls squeezing the tabs used to
   push History and Customer link off the edge of a strip that scrolls with no visible scrollbar;
   giving the controls a row of their own only moves the problem to the next module added. The
   script hides links from the end, never the current one, and lists them here. */
.sul-nav-overflow--ready { overflow: visible; }

[data-sul-overflow] > .is-overflowed { display: none; }

.sul-admin-more { display: flex; flex: none; }
.sul-admin-more[hidden] { display: none; }

.sul-admin-more__toggle { gap: var(--sul-spacing-xxs); }

.sul-admin-more__count {
    padding: 0 var(--sul-spacing-xs);
    border-radius: var(--sul-radius-pill);
    background: var(--sul-border);
    color: var(--sul-text);
    font-size: var(--sul-font-micro);
    font-weight: 600;
}

.sul-admin-more__count:empty { display: none; }

.sul-admin-popover--more {
    display: flex;
    flex-direction: column;
    min-width: calc(var(--sul-spacing-3xl) * 5);
    padding: var(--sul-spacing-xs);
}

.sul-admin-more__item {
    display: block;
    padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
    border-radius: var(--sul-radius-base);
    color: var(--sul-text);
    text-decoration: none;
    white-space: nowrap;
}

.sul-admin-more__item[hidden] { display: none; }

.sul-admin-more__item:hover { background: var(--sul-background); }

.sul-admin-more__item:focus-visible {
    outline: var(--sul-spacing-xxs) solid var(--sul-focus);
    outline-offset: calc(var(--sul-spacing-xxs) * -1);
}

.sul-admin-more__item--current { color: var(--sul-primary-action); font-weight: 600; }

/* --- Operate's session controls, in the business bar's slot ------------------------------ */

.sul-admin-session {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-sm);
    white-space: nowrap;
    font-size: var(--sul-font-sm);
}

/* The controls keep their size; the tab strip beside them is what gives way, into "More". */
.sul-admin-session { flex: none; }

.sul-admin-session form { margin: 0; }

/* The chip: warning-DARK under the white text, because the amber itself is 2.16:1 against it. */
.sul-admin-session__chip {
    display: inline-flex;
    align-items: center;
    gap: var(--sul-spacing-xs);
    padding: var(--sul-spacing-xs) var(--sul-spacing-compact);
    border-radius: var(--sul-radius-pill);
    background: var(--sul-warning-dark);
    color: var(--sul-surface);
    font-size: var(--sul-font-xs);
    font-weight: 700;
}

.sul-admin-session__chip:focus-visible,
.sul-admin-session__exit:focus-visible {
    outline: var(--sul-spacing-xxs) solid var(--sul-focus);
    outline-offset: var(--sul-spacing-xxs);
}

.sul-admin-session__dot {
    width: var(--sul-spacing-sm);
    height: var(--sul-spacing-sm);
    border-radius: var(--sul-radius-pill);
    background: currentColor;
    animation: sul-admin-session-pulse 2s ease-in-out infinite;
}

@keyframes sul-admin-session-pulse { 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
    .sul-admin-session__dot { animation: none; }
}

.sul-admin-session__exit {
    padding: var(--sul-spacing-xs) var(--sul-spacing-compact);
    border: 0;
    border-radius: var(--sul-radius-pill);
    background: var(--sul-text);
    color: var(--sul-surface);
    font-size: var(--sul-font-xs);
    font-weight: 700;
    cursor: pointer;
}

.sul-admin-popover--session { width: calc(var(--sul-spacing-3xl) * 10); }

.sul-admin-session__note {
    margin: 0 0 var(--sul-spacing-sm);
    padding-bottom: var(--sul-spacing-compact);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
    color: var(--sul-muted);
}

.sul-admin-session__note strong { color: var(--sul-text); }

.sul-admin-session__section {
    margin-top: var(--sul-spacing-sm);
    padding-top: var(--sul-spacing-sm);
    border-top: var(--sul-card-border) solid var(--sul-border);
}

/* Inside the menu, Switch business opens IN PLACE, under its own button, rather than as a second
   popover floating over the first. */
.sul-admin-popover--session .sul-bizswitch__menu {
    position: static;
    width: auto;
    margin-top: var(--sul-spacing-sm);
    box-shadow: none;
}

.sul-admin-popover--session .sul-admin-session__button { width: 100%; justify-content: space-between; }

.sul-admin-session__button {
    display: inline-flex;
    align-items: center;
    gap: var(--sul-spacing-xs);
    padding: var(--sul-spacing-xs) var(--sul-spacing-compact);
    background: var(--sul-surface);
    color: var(--sul-warning-dark);
    border: var(--sul-card-border) solid var(--sul-warning);
    border-radius: var(--sul-radius-base);
    font-size: var(--sul-font-sm);
    font-weight: 600;
}

.sul-admin-session__count {
    padding: 0 var(--sul-spacing-xs);
    border-radius: var(--sul-radius-pill);
    background: var(--sul-pastel-warning);
    font-size: var(--sul-font-micro);
}

/* --- Switch business: the shared React BusinessSwitcher (ui/business-switcher.tsx) -------- */

/* Generic, so any island can mount it; a host bar restyles the button through the summary's
   extra class (Operate passes .sul-admin-session__button). */
.sul-bizswitch { position: relative; }

.sul-bizswitch > summary { list-style: none; cursor: pointer; }
.sul-bizswitch > summary::-webkit-details-marker { display: none; }

.sul-bizswitch > summary:focus-visible {
    outline: var(--sul-spacing-xxs) solid var(--sul-focus);
    outline-offset: var(--sul-spacing-xxs);
}

.sul-bizswitch__count {
    padding: 0 var(--sul-spacing-xs);
    border-radius: var(--sul-radius-pill);
    background: var(--sul-pastel-warning);
    font-size: var(--sul-font-micro);
}

.sul-bizswitch__menu {
    position: absolute;
    right: 0;
    top: calc(100% + var(--sul-spacing-sm));
    z-index: 30;
    width: calc(var(--sul-spacing-3xl) * 10);
    max-width: calc(100vw - var(--sul-spacing-lg) * 2);
    padding: var(--sul-spacing-base);
    background: var(--sul-surface);
    color: var(--sul-text);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-xl);
    box-shadow: var(--sul-shadow-lg);
    font-size: var(--sul-font-sm);
    font-weight: 400;
    white-space: normal;
}

.sul-bizswitch__title {
    margin: 0 0 var(--sul-spacing-sm);
    font-weight: 600;
}

.sul-bizswitch__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: calc(var(--sul-spacing-3xl) * 8);
    overflow-y: auto;
}

.sul-bizswitch__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sul-spacing-sm);
    padding: var(--sul-spacing-sm) 0;
    border-top: var(--sul-card-border) solid var(--sul-border);
}

.sul-bizswitch__item:first-child { border-top: 0; }

.sul-bizswitch__name { overflow-wrap: anywhere; }

.sul-bizswitch__muted { color: var(--sul-muted); }

/* Why a business is listed ("Same mobile · Same campaign"): its own line under the name. */
.sul-bizswitch__why {
  display: block;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

/* What tells a customer's businesses apart (Switch customer): Business ID, mobile, email. */
.sul-bizswitch__facts {
  display: block;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
  overflow-wrap: anywhere;
}

.sul-bizswitch__open { flex: none; }

.sul-bizswitch__section {
    margin-top: var(--sul-spacing-base);
    padding-top: var(--sul-spacing-base);
    border-top: var(--sul-card-border) solid var(--sul-border);
}

.sul-bizswitch__byhand { margin-top: var(--sul-spacing-base); }

.sul-bizswitch__byhand-row {
    display: flex;
    gap: var(--sul-spacing-sm);
    margin-top: var(--sul-spacing-xs);
}

.sul-bizswitch__byhand-row .sul-input { flex: 1; min-width: 0; }

.sul-bizswitch__foot {
    margin: var(--sul-spacing-sm) calc(var(--sul-spacing-base) * -1) calc(var(--sul-spacing-base) * -1);
    padding: var(--sul-spacing-compact) var(--sul-spacing-base);
    border-top: var(--sul-card-border) solid var(--sul-border);
    color: var(--sul-muted);
    font-size: var(--sul-font-xs);
}

/* --- Framed pages: the customer's app fills everything under the two bars ---------------- */

/* No page scroll and no dead margins: the body is exactly the viewport, and the frame takes
   whatever the bars leave. The frame scrolls inside itself, as the app does on its own. */
.sul-admin-shell--framed {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.sul-admin-shell--framed .sul-admin-topbar { position: static; flex: none; }
.sul-admin-shell--framed .sul-admin-bizbar { flex: none; }

.sul-admin-framed {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.sul-admin-framed > .sul-card,
.sul-admin-framed > .sul-status-pill,
.sul-admin-framed > .sul-pill { flex: none; margin: var(--sul-spacing-sm) var(--sul-spacing-lg); }

.sul-operate-frame {
    flex: 1;
    display: block;
    width: 100%;
    min-height: 0;
    /* The amber rule under the business bar continues down both sides: everything inside it is the
       customer's own app, run as them. */
    border: var(--sul-spacing-xxs) solid var(--sul-warning);
    border-top: 0;
    background: var(--sul-background);
}

/* Narrow screens: each bar wraps rather than scrolling the page sideways -- the tab strips
   scroll within their own row. */
@media (max-width: 900px) {
    .sul-admin-topbar { flex-wrap: wrap; height: auto; padding-top: var(--sul-spacing-sm); padding-bottom: var(--sul-spacing-sm); }
    .sul-admin-topnav { order: 3; flex-basis: 100%; }
    .sul-admin-topbar .sul-admin-whoami__upn { display: none; }
    .sul-admin-bizbar { flex-wrap: wrap; padding-top: var(--sul-spacing-sm); padding-bottom: var(--sul-spacing-sm); }
    .sul-admin-bizbar__tabs { order: 3; flex-basis: 100%; min-height: var(--sul-avatar-md); }
}

/* --- Admin plans (/admin/plans, clientapp/src/islands/plans.tsx) --------------------------
   Two panes: every plan down the left, the chosen one on the right with four tabs and a save
   footer that sticks to the bottom of the window while a long allowance table scrolls. Every
   value is a token; the tints are color-mix() of a token, not a new colour. Allowances carry a
   "Versioned" badge and Features a "Live" one, because the two save in opposite ways and that
   difference is the whole design of this screen. */

.sul-plans {
  display: grid;
  grid-template-columns: calc(var(--sul-spacing-3xl) * 9) minmax(0, 1fr);
  gap: var(--sul-spacing-lg);
  align-items: start;
}

.sul-plans__rail,
.sul-plans__editor {
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-card-radius);
}

.sul-plans__rail {
  position: sticky;
  top: var(--sul-spacing-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sul-plans__railhead { padding: var(--sul-spacing-lg) var(--sul-spacing-lg) var(--sul-spacing-sm); }
.sul-plans__title { margin: 0; font-size: var(--sul-font-xl); color: var(--sul-text); }
.sul-plans__lede { margin: var(--sul-spacing-xxs) 0 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-plans__list {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xs) var(--sul-spacing-compact) var(--sul-spacing-compact);
}

.sul-plans__card {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-base);
  border: var(--sul-card-border) solid transparent;
  border-radius: var(--sul-radius-xl);
  color: inherit;
  text-decoration: none;
  transition: background var(--sul-transition-fast);
}

.sul-plans__card:hover { background: var(--sul-background); }

.sul-plans__card--current,
.sul-plans__card--current:hover {
  background: var(--sul-pastel-primary);
  border-color: color-mix(in srgb, var(--sul-primary-action) 35%, var(--sul-border));
}

.sul-plans__cardtitle { display: flex; align-items: center; gap: var(--sul-spacing-sm); }
.sul-plans__cardtitle strong { font-size: var(--sul-font-base); color: var(--sul-text); }

/* A dot and the word: colour is never the only signal. */
.sul-plans__sale {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-plans__sale::before {
  content: "";
  width: var(--sul-spacing-sm);
  height: var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-disabled);
}

.sul-plans__sale--on::before { background: var(--sul-success-dark); }

.sul-plans__cardmeta { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-plans__older { font-size: var(--sul-font-xs); font-weight: 600; color: var(--sul-warning-dark); }

.sul-plans__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sul-spacing-xs);
  margin-top: var(--sul-spacing-sm);
}

.sul-plans__kpis > span {
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  font-size: var(--sul-font-micro);
  line-height: 1.25;
  color: var(--sul-muted);
}

.sul-plans__kpis strong { display: block; font-size: var(--sul-font-sm); color: var(--sul-text); }

.sul-plans__rules {
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border-top: var(--sul-card-border) solid var(--sul-border);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-plans__rules summary { cursor: pointer; font-weight: 600; color: var(--sul-text); }
.sul-plans__rules ul { margin: var(--sul-spacing-xs) 0 0; padding-left: var(--sul-spacing-lg); }
.sul-plans__rules li + li { margin-top: var(--sul-spacing-xs); }

/* --- Editor --- */

.sul-plans__editor { display: flex; flex-direction: column; min-width: 0; }

.sul-plans__head {
  padding: var(--sul-spacing-lg) var(--sul-spacing-2xl) 0;
  border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-plans__headrow { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sul-spacing-base); }
.sul-plans__name { margin: 0; font-size: var(--sul-font-2xl); color: var(--sul-text); }
.sul-plans__meta { font-size: var(--sul-font-sm); color: var(--sul-muted); }
.sul-plans__meta strong { color: var(--sul-text); }

.sul-plans code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-plans__sold {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-xs) var(--sul-spacing-base) var(--sul-spacing-xs) var(--sul-spacing-xs);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  font-size: var(--sul-font-sm);
  cursor: pointer;
}

/* One switch for both uses: the On sale checkbox and each feature's button. :checked and
   aria-checked paint it the same way, so the two cannot look different for the same state. */
.sul-plans__switch {
  appearance: none;
  position: relative;
  flex: none;
  width: calc(var(--sul-spacing-lg) * 2.25);
  height: var(--sul-spacing-xl);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--sul-radius-pill);
  background: var(--sul-disabled);
  cursor: pointer;
  transition: background var(--sul-transition-fast);
}

.sul-plans__switch::after {
  content: "";
  position: absolute;
  top: var(--sul-spacing-xxs);
  left: var(--sul-spacing-xxs);
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  box-shadow: var(--sul-shadow-sm);
  transition: left var(--sul-transition-fast);
}

.sul-plans__switch:checked,
.sul-plans__switch[aria-checked="true"] { background: var(--sul-success-dark); }

.sul-plans__switch:checked::after,
.sul-plans__switch[aria-checked="true"]::after { left: calc(var(--sul-spacing-lg) + var(--sul-spacing-xxs)); }

.sul-plans__switch:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-plans__switch:disabled { opacity: var(--sul-opacity-disabled); cursor: not-allowed; }

.sul-plans__tabs { display: flex; gap: var(--sul-spacing-xs); margin-top: var(--sul-spacing-base); overflow-x: auto; }

.sul-plans__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border-bottom: var(--sul-spacing-xxs) solid transparent;
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
  text-decoration: none;
  white-space: nowrap;
}

.sul-plans__tab:hover { color: var(--sul-text); }

.sul-plans__tab--current {
  color: var(--sul-primary-action);
  font-weight: 600;
  border-bottom-color: var(--sul-primary-action);
}

.sul-plans__badge {
  padding: 0 var(--sul-spacing-xs);
  border-radius: var(--sul-radius-sm);
  font-size: var(--sul-font-xxs);
  font-weight: 700;
  text-transform: uppercase;
}

.sul-plans__badge--versioned { background: var(--sul-pastel-primary); color: var(--sul-primary-action-strong); }
.sul-plans__badge--live { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }

.sul-plans__count {
  padding: 0 var(--sul-spacing-xs);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-primary-action);
  color: var(--sul-surface);
  font-size: var(--sul-font-micro);
  font-weight: 700;
}

.sul-plans__body { padding: var(--sul-spacing-xl) var(--sul-spacing-2xl); }
.sul-plans__pane { max-width: var(--sul-desktop-wide-max); }

.sul-plans__hint { margin: 0 0 var(--sul-spacing-base); font-size: var(--sul-font-sm); color: var(--sul-muted); }
.sul-plans__hint strong { color: var(--sul-text); }

.sul-plans__notice {
  margin: 0 0 var(--sul-spacing-base);
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-pastel-info);
  color: var(--sul-info-dark);
  font-size: var(--sul-font-sm);
}

.sul-plans__notice--ok { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-plans__notice--error { background: var(--sul-pastel-danger); color: var(--sul-danger); }

/* --- Allowances --- */

.sul-plans__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  overflow: hidden;
}

.sul-plans__table th,
.sul-plans__table td {
  padding: var(--sul-spacing-sm) var(--sul-spacing-lg);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
  text-align: left;
  vertical-align: middle;
}

.sul-plans__table tr:last-child td { border-bottom: 0; }

.sul-plans__table thead th,
.sul-plans__group {
  background: var(--sul-background);
  font-size: var(--sul-font-micro);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sul-muted);
}

.sul-plans__group { padding-top: var(--sul-spacing-xs); padding-bottom: var(--sul-spacing-xs); }

.sul-plans__label { font-weight: 600; color: var(--sul-text); }
.sul-plans__unit { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-plans__now { width: calc(var(--sul-spacing-3xl) * 3); color: var(--sul-muted); font-variant-numeric: tabular-nums; }

.sul-plans__row--changed td { background: color-mix(in srgb, var(--sul-pastel-primary) 60%, var(--sul-surface)); }

.sul-plans__num {
  display: flex;
  align-items: center;
  width: calc(var(--sul-spacing-3xl) * 4.5);
  height: var(--sul-avatar-md);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  overflow: hidden;
}

.sul-plans__row--changed .sul-plans__num { border-color: var(--sul-primary-action); }

.sul-plans__num:focus-within {
  border-color: var(--sul-primary-action);
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}

.sul-plans__num input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--sul-text);
  outline: none;
  appearance: textfield;
}

.sul-plans__num input::-webkit-inner-spin-button,
.sul-plans__num input::-webkit-outer-spin-button { appearance: none; margin: 0; }

.sul-plans__step {
  width: var(--sul-spacing-3xl);
  height: 100%;
  border: 0;
  background: none;
  font-size: var(--sul-font-base);
  color: var(--sul-muted);
  cursor: pointer;
}

.sul-plans__step:hover { background: var(--sul-background); color: var(--sul-text); }

.sul-plans__diff { font-size: var(--sul-font-xs); font-weight: 600; white-space: nowrap; }
.sul-plans__diff--up { color: var(--sul-success-dark); }
.sul-plans__diff--down { color: var(--sul-danger); }
.sul-plans__diff--none { color: var(--sul-muted); }

/* --- Features --- */

.sul-plans__features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--sul-desktop-card-min), 1fr));
  gap: var(--sul-spacing-compact);
}

.sul-plans__feature {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
}

.sul-plans__feature--on { border-color: color-mix(in srgb, var(--sul-success-dark) 35%, var(--sul-border)); }

.sul-plans__featuretext { flex: 1; min-width: 0; }
.sul-plans__featuretext strong { display: block; font-size: var(--sul-font-sm); color: var(--sul-text); }
.sul-plans__featuretext small { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-plans__overridden { font-weight: 600; color: var(--sul-info-dark); }

/* --- Details --- */

.sul-plans__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--sul-desktop-choice-card-min), 1fr));
  gap: var(--sul-spacing-lg);
  max-width: var(--sul-desktop-column-max);
  padding: var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
}

/* --- History --- */

.sul-plans__timeline { margin: 0; padding: 0; list-style: none; }

.sul-plans__event { position: relative; padding: 0 0 var(--sul-spacing-lg) var(--sul-spacing-2xl); }

.sul-plans__event::before {
  content: "";
  position: absolute;
  top: var(--sul-spacing-lg);
  bottom: 0;
  left: calc(var(--sul-spacing-sm) - var(--sul-card-border));
  width: var(--sul-spacing-xxs);
  background: var(--sul-border);
}

.sul-plans__event:last-child::before { display: none; }

.sul-plans__event::after {
  content: "";
  position: absolute;
  top: var(--sul-spacing-xs);
  left: 0;
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  box-sizing: border-box;
  border: var(--sul-spacing-xxs) solid var(--sul-primary-action);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
}

.sul-plans__event--current::after { background: var(--sul-primary-action); }

.sul-plans__eventcard {
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
}

.sul-plans__eventtitle { display: flex; align-items: center; gap: var(--sul-spacing-sm); margin: 0; font-size: var(--sul-font-sm); }
.sul-plans__eventmeta { margin: var(--sul-spacing-xxs) 0 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-plans__eventnote { margin: var(--sul-spacing-xs) 0 0; font-size: var(--sul-font-sm); color: var(--sul-text); }

.sul-plans__chips { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); margin: var(--sul-spacing-xs) 0 0; padding: 0; list-style: none; }

.sul-plans__chip {
  padding: 0 var(--sul-spacing-sm);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-base);
  background: var(--sul-background);
  font-size: var(--sul-font-xs);
}

/* --- Footer --- */

.sul-plans__foot {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-spacing-base) var(--sul-spacing-2xl);
  border-top: var(--sul-card-border) solid var(--sul-border);
  border-radius: 0 0 var(--sul-card-radius) var(--sul-card-radius);
  background: var(--sul-surface);
}

.sul-plans__footmsg { flex: 1; min-width: 0; font-size: var(--sul-font-sm); color: var(--sul-muted); }
.sul-plans__footmsg strong { color: var(--sul-text); }

.sul-plans__reason {
  width: calc(var(--sul-spacing-3xl) * 10);
  max-width: 100%;
  border-color: color-mix(in srgb, var(--sul-primary-action) 35%, var(--sul-border));
  background: var(--sul-pastel-primary);
}

.sul-plans__danger,
.sul-plans__danger:hover { background: var(--sul-danger); }

@media (max-width: 900px) {
  .sul-plans { grid-template-columns: minmax(0, 1fr); }
  .sul-plans__rail { position: static; }
  .sul-plans__kpis { display: none; }
  .sul-plans__head,
  .sul-plans__body,
  .sul-plans__foot { padding-left: var(--sul-spacing-lg); padding-right: var(--sul-spacing-lg); }
  .sul-plans__reason { width: 100%; }
}

/* ==========================================================================
   Shared island blocks (clientapp/src/ui/blocks.tsx) and "Your businesses"
   (clientapp/src/islands/businesses.tsx, /app with at least one business).

   The blocks come first and name nothing about businesses, so the next island
   reuses them as they are: page header with an action, avatar, meta tag,
   status strip, overflow menu, option card, action tile, dialog spacer.
   Every value is a token; dark mode follows because the tokens themselves swap.
   ========================================================================== */

/* --- Page header with an action on the right; wraps under the title on a phone --- */
.sul-page-header--action {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sul-spacing-base);
}
.sul-page-header__text {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
  flex: 1 1 0;
  min-width: min(100%, var(--sul-desktop-card-min));
}
.sul-page-header__action { flex: none; }

/* --- Avatar: initials in a rounded square --- */
.sul-avatar {
  width: var(--sul-avatar-lg);
  height: var(--sul-avatar-lg);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--sul-radius-xl);
  font-size: var(--sul-font-sm);
  font-weight: 700;
}
.sul-avatar--primary { background: var(--sul-pastel-primary); color: var(--sul-primary-action-strong); }
.sul-avatar--info    { background: var(--sul-pastel-info);    color: var(--sul-info-dark); }

/* --- Meta tag: a role or a small fact beside a name. Not a status; that is .sul-pill --- */
.sul-meta-tag {
  display: inline-block;
  padding: 0 var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  font-size: var(--sul-font-xxs);
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.sul-meta-tag--neutral {
  background: var(--sul-background);
  border: var(--sul-card-border) solid var(--sul-border);
  color: var(--sul-muted);
}
.sul-meta-tag--success { background: var(--sul-pastel-success); color: var(--sul-success-dark); }

/* --- Status strip: icon, title, sentence, extra content, one action --- */
.sul-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
}
.sul-strip--success { background: var(--sul-pastel-success); }
.sul-strip--warning { background: var(--sul-pastel-warning); }
.sul-strip__icon {
  width: var(--sul-avatar-md);
  height: var(--sul-avatar-md);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  font-weight: 700;
}
.sul-strip--success .sul-strip__icon { color: var(--sul-success-dark); }
.sul-strip--warning .sul-strip__icon { color: var(--sul-warning-dark); }
.sul-strip__text { flex: 1 1 0; min-width: min(100%, var(--sul-desktop-choice-card-min)); }
.sul-strip__title { margin: 0; font-size: var(--sul-font-sm); font-weight: 700; color: var(--sul-text); }
.sul-strip__detail { margin: 0; font-size: var(--sul-font-xs); color: var(--sul-text-secondary); }
.sul-strip__action { flex: none; }

/* --- Overflow menu: a native <details> --- */
.sul-menu { position: relative; }
.sul-menu__toggle {
  list-style: none;
  width: var(--sul-control-touch-min);
  height: var(--sul-control-touch-min);
  display: grid;
  place-items: center;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-lg);
  cursor: pointer;
}
.sul-menu__toggle::-webkit-details-marker { display: none; }
.sul-menu__toggle:hover { background: var(--sul-background); color: var(--sul-text); }
.sul-menu__toggle:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}
.sul-menu__list {
  position: absolute;
  right: 0;
  top: calc(100% + var(--sul-spacing-xs));
  z-index: 10;
  min-width: max-content;
  display: flex;
  flex-direction: column;
  padding: var(--sul-spacing-xs);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  box-shadow: var(--sul-shadow-lg);
}
.sul-menu__item {
  display: block;
  width: 100%;
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border: 0;
  border-radius: var(--sul-radius-sm);
  background: none;
  color: var(--sul-text);
  font: inherit;
  font-size: var(--sul-font-sm);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.sul-menu__item:hover { background: var(--sul-background); }
.sul-menu__item[disabled] { opacity: var(--sul-opacity-disabled); cursor: not-allowed; }

/* --- Option card: one way of doing something, the whole card clickable --- */
.sul-option-list { display: flex; flex-direction: column; gap: var(--sul-spacing-sm); }
.sul-option-card {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  width: 100%;
  padding: var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-surface);
  color: var(--sul-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.sul-option-card:hover { border-color: var(--sul-primary-action); background: var(--sul-pastel-primary); }
.sul-option-card__icon {
  width: var(--sul-avatar-md);
  height: var(--sul-avatar-md);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--sul-radius-lg);
  background: var(--sul-background);
  font-size: var(--sul-font-lg);
}
.sul-option-card__text { display: flex; flex-direction: column; min-width: 0; }
.sul-option-card__title { font-size: var(--sul-font-sm); font-weight: 700; }
.sul-option-card__hint { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-option-card__badge {
  margin-left: var(--sul-spacing-sm);
  padding: 0 var(--sul-spacing-xs);
  border: var(--sul-card-border) solid var(--sul-primary-action);
  border-radius: var(--sul-radius-xs);
  color: var(--sul-primary-action);
  font-size: var(--sul-font-micro);
  font-weight: 700;
  text-transform: uppercase;
}

/* --- Action tile: the dashed "add another" that closes a list --- */
.sul-action-tile {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  width: 100%;
  margin-top: var(--sul-spacing-lg);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border: var(--sul-card-border) dashed var(--sul-border);
  border-radius: var(--sul-card-radius);
  background: transparent;
  color: var(--sul-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sul-action-tile:hover { background: var(--sul-surface); border-color: var(--sul-primary-action); }
.sul-action-tile__plus {
  width: var(--sul-avatar-lg);
  height: var(--sul-avatar-lg);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--sul-radius-xl);
  background: var(--sul-background);
  color: var(--sul-muted);
  font-size: var(--sul-font-2xl);
}
.sul-action-tile__text { display: flex; flex-direction: column; }
.sul-action-tile__title { font-size: var(--sul-font-base); font-weight: 700; }
.sul-action-tile__hint { font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-dialog__spacer { flex: 1 1 auto; }

/* --- "Your businesses" ------------------------------------------------------ */
.sul-bizlist { display: flex; flex-direction: column; gap: var(--sul-spacing-base); }

/* The card's own sections run edge to edge, so the strip's tint reaches the border. */
.sul-bizcard { padding: 0; overflow: visible; }
.sul-bizcard > .sul-strip { border-top: var(--sul-card-border) solid var(--sul-border); }

.sul-bizcard__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-lg);
}
.sul-bizcard__id { flex: 1 1 0; min-width: min(100%, var(--sul-desktop-choice-card-min)); }
.sul-bizcard__nameline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); }
.sul-bizcard__name {
  font-size: var(--sul-font-lg);
  font-weight: 700;
  color: var(--sul-text);
  text-decoration: none;
}
.sul-bizcard__name:hover { text-decoration: underline; }
.sul-bizcard__where { margin: 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-bizcard__tools { display: flex; align-items: center; gap: var(--sul-spacing-sm); }

.sul-channel-marks {
  list-style: none;
  margin: var(--sul-spacing-xs) 0 0;
  padding: 0;
  display: flex;
  gap: var(--sul-spacing-xs);
}
/* Dimmed when not connected, and the words are in the markup either way (WCAG 1.4.1). */
.sul-channel-marks__item { opacity: var(--sul-opacity-disabled); }
.sul-channel-marks__item--on { opacity: 1; }
.sul-channel-marks__item--attention {
  border-radius: var(--sul-radius-pill);
  outline: var(--sul-spacing-xxs) solid var(--sul-warning-dark);
}

.sul-bizsug { margin-top: var(--sul-spacing-xl); }
.sul-bizsug__title {
  margin: 0 0 var(--sul-spacing-xxs);
  font-size: var(--sul-font-xs);
  font-weight: 700;
  letter-spacing: var(--sul-tracking-tight);
  text-transform: uppercase;
  color: var(--sul-muted);
}
.sul-bizsug__count { font-weight: 400; text-transform: none; }
.sul-bizsug__lede { margin: 0 0 var(--sul-spacing-sm); font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-bizsug__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-base);
  margin-bottom: var(--sul-spacing-sm);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border: var(--sul-card-border) dashed var(--sul-border);
  border-radius: var(--sul-card-radius);
  background: var(--sul-surface);
}
.sul-bizsug__text { flex: 1 1 0; min-width: min(100%, var(--sul-desktop-choice-card-min)); }
.sul-bizsug__name { margin: 0; font-size: var(--sul-font-base); font-weight: 700; }
.sul-bizsug__id { font-family: ui-monospace, Consolas, monospace; }

/* ==========================================================================
   Navigation progress (sul-navigating.js). Every page change here is a full
   load, and until the server answered nothing on screen moved -- inside the
   console's Operate frame not even the browser's tab spinner is in view. The
   bar says "your click landed, the page is coming".

   It grows quickly at first and then slows, never reaching the end: the
   browser cannot say how far along a response is, so a bar that finished
   would be a claim nobody can make. Brand orange is right here -- it carries
   no text. With reduced motion it is a steady full-width line instead.
   ========================================================================== */
.sul-navprogress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--sul-spacing-xxs);
  background: var(--sul-primary);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
}
.sul-navprogress--active {
  opacity: 1;
  animation: sul-navprogress 10s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}
@keyframes sul-navprogress {
  0%   { transform: scaleX(0); }
  10%  { transform: scaleX(0.4); }
  100% { transform: scaleX(0.92); }
}
.sul-navigating,
.sul-navigating a,
.sul-navigating button { cursor: progress; }

@media (prefers-reduced-motion: reduce) {
  .sul-navprogress--active { transform: scaleX(1); opacity: 0.7; }
}

/* ---------------------------------------------------------------------------
   Shared island blocks: SectionCard, StatTile, Timeline, Banner (ui/blocks.tsx).
   Written for Plans & billing first and named for the second user, so nothing
   here says "billing".
   --------------------------------------------------------------------------- */
.sul-section-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sul-spacing-xs) var(--sul-spacing-compact);
  padding: var(--sul-spacing-lg) var(--sul-spacing-xl) var(--sul-spacing-base);
}

.sul-section-card__title {
  margin: 0;
  font-size: var(--sul-font-lg);
  font-weight: 700;
  color: var(--sul-text);
}

.sul-section-card__aside {
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-stat-tile {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  list-style: none;
}

.sul-stat-tile--plain { border-style: dashed; }

.sul-stat-tile__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sul-spacing-sm);
}

.sul-stat-tile__label {
  font-size: var(--sul-font-sm);
  color: var(--sul-text-secondary);
}

.sul-stat-tile__flag {
  font-size: var(--sul-font-2xs);
  font-weight: 700;
  letter-spacing: var(--sul-tracking-tight);
  text-transform: uppercase;
  color: var(--sul-muted);
}

.sul-stat-tile__value {
  margin: 0;
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}

.sul-stat-tile__value strong {
  font-size: var(--sul-font-xl);
  font-weight: 700;
  color: var(--sul-text);
}

.sul-stat-tile__note {
  margin: 0;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-stat-tile__meter {
  width: 100%;
  height: var(--sul-spacing-xs);
  border: 0;
  border-radius: var(--sul-radius-pill);
  overflow: hidden;
  background: var(--sul-border);
  appearance: none;
}

.sul-stat-tile__meter::-webkit-progress-bar   { background: var(--sul-border); }
.sul-stat-tile__meter::-webkit-progress-value { background: var(--sul-success); }
.sul-stat-tile__meter::-moz-progress-bar      { background: var(--sul-success); }

/* Full is grey, not red: using everything a trial offers is not a fault. The flag says it in words. */
.sul-stat-tile--flagged .sul-stat-tile__meter::-webkit-progress-value { background: var(--sul-muted); }
.sul-stat-tile--flagged .sul-stat-tile__meter::-moz-progress-bar      { background: var(--sul-muted); }

.sul-timeline {
  margin: 0;
  padding: 0 var(--sul-spacing-xl) var(--sul-spacing-lg);
  list-style: none;
}

/* when | mark | what. The rail is the mark column's own border, so it needs no pseudo-element
   measured against anything. */
.sul-timeline__step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 5fr);
  column-gap: var(--sul-spacing-compact);
  position: relative;
}

.sul-timeline__when {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
  padding-top: var(--sul-spacing-xxs);
}

.sul-timeline__when strong {
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
}

.sul-timeline__mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--sul-avatar-sm);
  height: var(--sul-avatar-sm);
  border-radius: var(--sul-radius-pill);
  border: var(--sul-spacing-xxs) solid currentColor;
  background: var(--sul-surface);
  font-size: var(--sul-font-xs);
  font-weight: 700;
}

/* The mark sits in its own column, which stretches to the step's height; the line is that
   column's flex filler, so it is always centred under the circle and never crosses the text. */
.sul-timeline__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sul-timeline__step:not(:last-child) .sul-timeline__rail::after {
  content: "";
  flex: 1;
  border-left: var(--sul-card-border) solid var(--sul-border);
}

.sul-timeline__what { padding-bottom: var(--sul-spacing-lg); }

.sul-timeline__title {
  margin: 0;
  font-size: var(--sul-font-base);
  font-weight: 700;
  color: var(--sul-text);
}

.sul-timeline__text {
  margin: var(--sul-spacing-xxs) 0 0;
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}

.sul-timeline__step--ok .sul-timeline__mark {
  color: var(--sul-surface);
  background: var(--sul-success-dark);
  border-color: var(--sul-success-dark);
}
.sul-timeline__step--warn .sul-timeline__mark   { color: var(--sul-warning-dark); }
.sul-timeline__step--hide .sul-timeline__mark   { color: var(--sul-primary-action); }
.sul-timeline__step--danger .sul-timeline__mark { color: var(--sul-danger); }
.sul-timeline__step--danger .sul-timeline__title { color: var(--sul-danger); }

.sul-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-lg) var(--sul-spacing-xl);
}

.sul-banner__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--sul-avatar-lg);
  height: var(--sul-avatar-lg);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-pastel-primary);
  font-size: var(--sul-font-xl);
}

.sul-banner__text { flex: 1; min-width: 0; }

.sul-banner__title {
  margin: 0;
  font-size: var(--sul-font-lg);
  font-weight: 700;
  color: var(--sul-text);
}

.sul-banner__detail {
  margin: var(--sul-spacing-xxs) 0 0;
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}

.sul-banner__action { flex: none; }

/* Admin console > Categories: Sync now (2026-11-11). */
.sul-catsync__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sul-spacing-base);
  margin-bottom: var(--sul-spacing-base);
}
.sul-catsync__lead {
  margin: 0;
  flex: 1;
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}
.sul-catsync__done {
  margin-bottom: var(--sul-spacing-base);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-pastel-success);
  color: var(--sul-success-dark);
  font-size: var(--sul-font-sm);
}
.sul-catsync__done-title { margin: 0; font-weight: 700; }
.sul-catsync__list { margin: var(--sul-spacing-xxs) 0 0; padding-left: var(--sul-spacing-lg); }

/* Support console: a Super Admin viewing the console as another staff member (?altuser=). */
.sul-admin-altuser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-xs) var(--sul-spacing-base);
  background: var(--sul-warning-light);
  border-bottom: var(--sul-card-border) solid var(--sul-warning);
  color: var(--sul-warning-dark);
  font-size: var(--sul-font-sm);
}

.sul-admin-altuser__exit {
  color: var(--sul-warning-dark);
  font-weight: 700;
}

/* ---------------------------------------------------------------------------
   Plans & billing (islands/billing.tsx).
   --------------------------------------------------------------------------- */
.sul-billing {
  max-width: var(--sul-desktop-column-max);
  margin-inline: auto;
}

.sul-billing__notice { margin: 0 var(--sul-card-padding-h) var(--sul-card-gap); }

.sul-billing-hero__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sul-spacing-lg);
  padding: var(--sul-spacing-xl) var(--sul-spacing-xl) var(--sul-spacing-base);
}

.sul-billing-hero__plan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-compact);
  margin: 0;
  font-size: var(--sul-font-2xl);
  font-weight: 700;
  color: var(--sul-text);
}

.sul-billing-hero__summary {
  margin: var(--sul-spacing-xs) 0 0;
  font-size: var(--sul-font-sm);
  color: var(--sul-text-secondary);
}

.sul-billing-hero__summary strong { color: var(--sul-text); }

.sul-billing-hero__countdown {
  flex: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sul-billing-hero__days {
  font-size: var(--sul-font-5xl);
  font-weight: 800;
  line-height: 1;
  color: var(--sul-primary-action);
}

.sul-billing-hero__countdown--urgent .sul-billing-hero__days { color: var(--sul-danger); }

.sul-billing-hero__days-label {
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-billing-hero__period { padding: 0 var(--sul-spacing-xl) var(--sul-spacing-lg); }

.sul-billing-hero__bar {
  display: block;
  width: 100%;
  height: var(--sul-spacing-sm);
  border: 0;
  border-radius: var(--sul-radius-pill);
  overflow: hidden;
  background: var(--sul-border);
  appearance: none;
}

.sul-billing-hero__bar::-webkit-progress-bar   { background: var(--sul-border); }
.sul-billing-hero__bar::-webkit-progress-value { background: var(--sul-primary-action); }
.sul-billing-hero__bar::-moz-progress-bar      { background: var(--sul-primary-action); }

.sul-billing-hero__ends {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sul-spacing-xs);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-billing-hero__foot,
.sul-billing-hero__accept {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-spacing-base) var(--sul-spacing-xl);
  border-top: var(--sul-card-border) solid var(--sul-border);
  background: var(--sul-background);
}

.sul-billing-hero__call,
.sul-billing-hero__accept p {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--sul-font-sm);
  color: var(--sul-text-secondary);
}

.sul-billing-hero__call strong { color: var(--sul-text); }

.sul-billing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-sm);
}

.sul-billing__usage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sul-spacing-compact);
  margin: 0;
  padding: 0 var(--sul-spacing-xl) var(--sul-spacing-xl);
}

@media (max-width: 720px) {
  .sul-billing__usage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .sul-billing__usage { grid-template-columns: minmax(0, 1fr); }
  .sul-billing-hero__main { flex-direction: column; }
  .sul-billing-hero__countdown { flex-direction: row; align-items: baseline; gap: var(--sul-spacing-sm); }
  .sul-banner { flex-direction: column; align-items: flex-start; }
}

.sul-billing__plans-title {
  margin: var(--sul-spacing-lg) var(--sul-card-padding-h) var(--sul-spacing-xxs);
  font-size: var(--sul-font-lg);
  font-weight: 700;
}

.sul-billing__plans-text {
  margin: 0 var(--sul-card-padding-h) var(--sul-spacing-base);
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}

.sul-billing-price {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
}

.sul-billing-price + .sul-billing-price {
  padding-top: var(--sul-spacing-base);
  border-top: var(--sul-card-border) solid var(--sul-border);
}

.sul-billing-price__amount { margin: 0; color: var(--sul-muted); }

.sul-billing-price__amount strong {
  font-size: var(--sul-font-xl);
  color: var(--sul-text);
}

.sul-billing__footnote {
  margin: var(--sul-spacing-sm) var(--sul-card-padding-h) var(--sul-spacing-xl);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

/* ==========================================================================
   Composer step 3, Post details
   The cards are grouped by WHO SEES THEM (public, one platform, only you), each header saying
   where it applies, beside a live preview and the server's own checks. See the step's comment
   in islands/compose.tsx.
   ========================================================================== */

/* The page is a wide shell so this step has room for the preview. Every other step keeps the
   form column, where a label stays next to its input. */
.sul-compose { max-width: var(--sul-desktop-column-max); }
.sul-compose--wide { max-width: none; }

/* Cards and preview side by side, wrapping to one column with no breakpoint: the main column
   refuses to be narrower than 55% of the row, so on a narrow screen the preview drops below. */
.sul-details {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--sul-spacing-2xl);
}

.sul-details__main {
  flex: 999 1 0;
  min-inline-size: 55%;
  display: flex;
  flex-direction: column;
  gap: var(--sul-card-gap);
}

.sul-details__aside {
  flex: 1 1 calc(var(--sul-desktop-card-min) + var(--sul-spacing-3xl));
  position: sticky;
  top: var(--sul-spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-base);
}

.sul-details__preview[data-stale] { opacity: var(--sul-opacity-hover); }

/* The Edit / Done toggle for the account's own caption, above the preview it edits. */
.sul-details__previewbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--sul-spacing-sm);
}
.sul-details__preview .sul-preview { padding: 0; border-bottom: none; }
.sul-details__preview .sul-preview__image {
  max-width: 100%;
  max-height: none;
  width: 100%;
  margin-bottom: var(--sul-spacing-sm);
}

/* The collapsible card. The <summary> is the card header. */
.sul-dcard__head {
  align-items: center;
  justify-content: flex-start;
  gap: var(--sul-spacing-compact);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.sul-dcard__head::-webkit-details-marker { display: none; }
.sul-dcard__head:focus-visible { outline: var(--sul-focus); border-radius: var(--sul-card-radius); }

.sul-dcard__icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--sul-avatar-sm);
  height: var(--sul-avatar-sm);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-text);
  color: var(--sul-surface);
}

.sul-dcard__title {
  flex: 1;
  min-width: 0;
  font-size: var(--sul-font-sm);
  font-weight: 600;
  color: var(--sul-text);
}

.sul-dcard__hint {
  font-size: var(--sul-font-xs);
  font-weight: 400;
  color: var(--sul-muted);
}

.sul-dcard__chev {
  color: var(--sul-muted);
  transition: transform var(--sul-transition-fast);
}

.sul-dcard:not([open]) .sul-dcard__chev { transform: rotate(-90deg); }
.sul-dcard__body { border-top: var(--sul-card-border) solid var(--sul-border); }

.sul-dicon {
  flex: none;
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
}

/* Small grey pill: a count, or "Saved only" in the warning family. */
.sul-dpill {
  display: inline-block;
  padding: var(--sul-spacing-xxs) var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-background);
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xxs);
  font-weight: 600;
  line-height: 1.4;
  vertical-align: middle;
}

.sul-dpill--soon {
  background: var(--sul-warning-light);
  color: var(--sul-warning-dark);
}

.sul-field__optional,
.sul-field__aside {
  font-weight: 400;
  color: var(--sul-muted);
}

.sul-field__label--row { display: flex; align-items: baseline; gap: var(--sul-spacing-sm); }
.sul-field__aside { margin-left: auto; }

/* An input with a leading icon. */
.sul-iconinput { position: relative; }

.sul-iconinput > .sul-dicon {
  position: absolute;
  left: var(--sul-spacing-base);
  top: 50%;
  transform: translateY(-50%);
  color: var(--sul-placeholder);
  pointer-events: none;
}

.sul-iconinput > .sul-input { padding-left: calc(var(--sul-spacing-base) * 2 + var(--sul-spacing-lg)); }

/* Chips inside one bordered box that reads as a single input. */
.sul-hashtags--box {
  min-height: var(--sul-control-touch-min);
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  cursor: text;
}

.sul-hashtags--box:focus-within {
  border-color: var(--sul-primary-action);
  outline: var(--sul-focus);
}

.sul-hashtags--box .sul-hashtag-add {
  min-width: calc(var(--sul-spacing-3xl) * 4);
  border: 0;
  background: transparent;
  padding: var(--sul-spacing-xs);
}

/* The box carries the focus ring, so the bare input inside does not draw a second one. */
.sul-hashtags--box .sul-hashtag-add:focus-visible { outline: none; }

.sul-hashtags--box .sul-hashtag-chip { border-radius: var(--sul-radius-base); }

.sul-hashtags--neutral .sul-hashtag-chip {
  background: var(--sul-background);
  border-color: var(--sul-border);
}

/* Hashtags suggested from the business's own facts. */
.sul-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-xs);
  margin-top: var(--sul-spacing-sm);
}

.sul-suggest__label {
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-suggest__chip {
  padding: var(--sul-spacing-xxs) var(--sul-spacing-sm);
  border: var(--sul-card-border) dashed var(--sul-border);
  border-radius: var(--sul-radius-base);
  background: var(--sul-surface);
  color: var(--sul-text-secondary);
  font: inherit;
  font-size: var(--sul-font-xs);
  cursor: pointer;
}

.sul-suggest__chip:hover { border-color: var(--sul-primary-action); color: var(--sul-primary-action); }
.sul-suggest__chip:focus-visible { outline: var(--sul-focus); }

/* Post Details' platform tabs: folder tabs joined to the panel under them. The open tab shares
   the panel's surface and covers the panel's top border, so the two read as one piece. */
.sul-dtabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--sul-spacing-sm);
  margin-bottom: calc(var(--sul-card-border) * -1);
}

.sul-dtabs__tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-bottom-color: transparent;
  border-radius: var(--sul-card-radius) var(--sul-card-radius) 0 0;
  background: var(--sul-background);
  color: var(--sul-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sul-dtabs__tab--on {
  background: var(--sul-surface);
  color: var(--sul-text);
}

.sul-dtabs__tab:focus-visible { outline: var(--sul-focus); }

.sul-dtabs__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sul-dtabs__name,
.sul-dtabs__account {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sul-dtabs__name { font-size: var(--sul-font-sm); font-weight: 600; }
.sul-dtabs__account { font-size: var(--sul-font-xxs); color: var(--sul-muted); }

.sul-dtabs__status {
  flex: none;
  padding: var(--sul-spacing-xxs) var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-success-light);
  color: var(--sul-success-dark);
  font-size: var(--sul-font-xxs);
  font-weight: 600;
  white-space: nowrap;
}

.sul-dtabs__status--warn {
  background: var(--sul-warning-light);
  color: var(--sul-warning-dark);
}

/* On a narrow screen a tab is its mark and name; the account and status would only wrap. */
@media (max-width: 560px) {
  .sul-dtabs__account,
  .sul-dtabs__status { display: none; }
}

.sul-dpanel--tabbed { border-top-left-radius: 0; border-top-right-radius: 0; }

/* "Same hashtags & location on both", and its switch. */
.sul-dsync {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-background);
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xs);
}

.sul-dsync__text { flex: 1; min-width: 0; }
.sul-dsync__text strong { color: var(--sul-text); }

.sul-dswitch {
  appearance: none;
  position: relative;
  flex: none;
  width: calc(var(--sul-spacing-lg) * 2.25);
  height: var(--sul-spacing-xl);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--sul-radius-pill);
  background: var(--sul-disabled);
  cursor: pointer;
  transition: background var(--sul-transition-fast);
}

.sul-dswitch::after {
  content: "";
  position: absolute;
  top: var(--sul-spacing-xxs);
  left: var(--sul-spacing-xxs);
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  box-shadow: var(--sul-shadow-sm);
  transition: left var(--sul-transition-fast);
}

.sul-dswitch[aria-checked="true"] { background: var(--sul-primary-action); }
.sul-dswitch[aria-checked="true"]::after { left: calc(var(--sul-spacing-lg) + var(--sul-spacing-xxs)); }
.sul-dswitch:focus-visible { outline: var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }

/* One titled group inside a tab: Reach, People, Link & button. */
.sul-dsec { margin-top: var(--sul-spacing-lg); }

.sul-dsec + .sul-dsec {
  padding-top: var(--sul-spacing-base);
  border-top: var(--sul-card-border) solid var(--sul-border);
}

.sul-dsec__title {
  margin: 0 0 var(--sul-spacing-xs);
  font-size: var(--sul-font-xxs);
  font-weight: 600;
  letter-spacing: var(--sul-tracking-tight);
  text-transform: uppercase;
  color: var(--sul-muted);
}

.sul-dcopy { margin-top: calc(var(--sul-spacing-sm) * -1); }

/* Link fields that do not apply to this post: shown, faded, and not operable. */
.sul-dlock {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.sul-dlock:disabled { opacity: var(--sul-opacity-disabled); }

.sul-optionrow__item:has(input:disabled) {
  opacity: var(--sul-opacity-disabled);
  cursor: not-allowed;
}

.sul-optionrow__item:has(input:disabled):hover { background: none; }

/* A one-line caution inside a card. */
.sul-dnote {
  display: flex;
  align-items: flex-start;
  gap: var(--sul-spacing-sm);
  margin: var(--sul-spacing-sm) 0 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-warning-light);
  color: var(--sul-warning-dark);
  font-size: var(--sul-font-xs);
}

.sul-dnote--muted {
  background: var(--sul-background);
  color: var(--sul-text-secondary);
}

/* Two fields side by side where there is room. */
.sul-drow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--sul-desktop-connection-detail-min)), 1fr));
  gap: var(--sul-spacing-base);
  align-items: start;
}

/* The Reel cover drop zone. A <label> around a visually hidden file input, so a click and the
   keyboard both reach the picker. */
.sul-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sul-spacing-xxs);
  min-height: calc(var(--sul-spacing-3xl) * 3.5);
  padding: var(--sul-spacing-sm);
  border: var(--sul-card-border) dashed var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-background);
  color: var(--sul-muted);
  font-size: var(--sul-font-xs);
  text-align: center;
  cursor: pointer;
}

.sul-drop:hover { border-color: var(--sul-primary-action); color: var(--sul-primary-action); }
.sul-drop:focus-within { outline: var(--sul-focus); }
.sul-drop--busy { cursor: progress; opacity: var(--sul-opacity-hover); }
.sul-drop > .sul-dicon { width: var(--sul-spacing-xl); height: var(--sul-spacing-xl); }

.sul-drop__title {
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
}

.sul-drop__image {
  max-height: calc(var(--sul-spacing-3xl) * 3);
  max-width: 100%;
  border-radius: var(--sul-radius-base);
}

/* The preview's account tabs. */
.sul-ptabs {
  display: flex;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-xs);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
}

.sul-ptabs__tab {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
  border: 0;
  border-radius: var(--sul-radius-base);
  background: none;
  color: var(--sul-muted);
  font: inherit;
  font-size: var(--sul-font-xs);
  cursor: pointer;
}

.sul-ptabs__tab--on {
  background: var(--sul-selected-bg);
  color: var(--sul-text);
  font-weight: 600;
}

.sul-ptabs__tab:focus-visible { outline: var(--sul-focus); }

.sul-ptabs__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* "Before you continue": the server's refusals for the accounts picked, or one line saying
   there are none. */
.sul-dchecks {
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-card-radius);
  background: var(--sul-surface);
  font-size: var(--sul-font-xs);
}

.sul-dchecks__title {
  margin: 0 0 var(--sul-spacing-xs);
  font-size: var(--sul-font-sm);
  font-weight: 600;
  color: var(--sul-text);
}

.sul-dchecks__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sul-spacing-sm);
  margin: var(--sul-spacing-xs) 0 0;
  color: var(--sul-text-secondary);
}

.sul-dchecks__dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  border-radius: var(--sul-radius-pill);
  font-size: var(--sul-font-xxs);
  font-weight: 700;
}

.sul-dchecks__item--ok .sul-dchecks__dot { background: var(--sul-success-light); color: var(--sul-success-dark); }
.sul-dchecks__item--warn .sul-dchecks__dot { background: var(--sul-warning-light); color: var(--sul-warning-dark); }

/* =========================================================================
   Staff picker: the work-email search on Operate's Assign and Reassign
   fields (clientapp/src/islands/staff-picker.tsx). The list floats under the
   input, except inside a table, whose scrolling wrapper would clip it.
   ========================================================================= */
.sul-staff-picker,
.sul-account-picker { position: relative; }

/* The account picker (clientapp/src/ui/account-picker.tsx) shares the staff
   picker's list, so the two dropdowns read as one control. */
.sul-staff-picker__list,
.sul-account-picker__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + var(--sul-spacing-xs));
  z-index: 10;
  margin: 0;
  padding: var(--sul-spacing-xs);
  list-style: none;
  max-height: calc(var(--sul-spacing-3xl) * 8);
  overflow: auto;
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  box-shadow: var(--sul-shadow-lg);
}

.sul-staff-picker__list[hidden],
.sul-account-picker__list[hidden] { display: none; }

.sul-staff-picker__opt,
.sul-account-picker__opt {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-radius: var(--sul-radius-lg);
  cursor: pointer;
  font-size: var(--sul-font-sm);
}

.sul-staff-picker__opt--active { background: var(--sul-selected-bg); }
.sul-staff-picker__name { font-weight: 600; overflow-wrap: anywhere; }
.sul-staff-picker__email { font-size: var(--sul-font-xs); color: var(--sul-muted); overflow-wrap: anywhere; }
.sul-staff-picker__msg { padding: var(--sul-spacing-sm) var(--sul-spacing-compact); color: var(--sul-muted); font-size: var(--sul-font-sm); }

/* Multi-select: a tick box beside each option; a chosen one stays listed and can be unticked. */
.sul-account-picker__opt { flex-direction: row; align-items: center; gap: var(--sul-spacing-sm); }
.sul-account-picker__text { display: flex; flex-direction: column; gap: var(--sul-spacing-xxs); min-width: 0; }
.sul-account-picker__box {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-sm);
  background: var(--sul-surface);
  font-size: var(--sul-font-xs);
  line-height: 1;
}
.sul-account-picker__opt--selected .sul-account-picker__box {
  background: var(--sul-primary-action);
  border-color: var(--sul-primary-action);
  color: var(--sul-surface);
}
.sul-account-picker__opt--disabled { opacity: 0.5; cursor: not-allowed; }
.sul-account-picker__opt--active { background: var(--sul-selected-bg); }
.sul-account-picker__name { font-weight: 600; overflow-wrap: anywhere; }
.sul-account-picker__meta { font-size: var(--sul-font-xs); color: var(--sul-muted); overflow-wrap: anywhere; }
/* Not found is a warning, not a refusal: the name can still be added. */
.sul-account-picker__meta--warn { color: var(--sul-warning-dark); }
/* Slice 41: a Lucide check beside the name, kept on the name's line. */
.sul-account-picker__found { display: inline-flex; vertical-align: middle; margin-inline-start: var(--sul-spacing-xxs); color: var(--sul-success); }
.sul-account-picker__chip-name { color: var(--sul-muted); font-weight: 400; }
.sul-account-picker__msg { padding: var(--sul-spacing-sm) var(--sul-spacing-compact); color: var(--sul-muted); font-size: var(--sul-font-sm); }

/* Operators table: Reassign opens in place, beside Remove. */
.sul-operator-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: var(--sul-spacing-sm);
}

.sul-operator-actions form { margin: 0; }
.sul-operator-role { color: var(--sul-text-secondary); }
.sul-operator-reassign > summary { list-style: none; }
.sul-operator-reassign > summary::-webkit-details-marker { display: none; }

.sul-operator-reassign__form {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
  width: calc(var(--sul-spacing-3xl) * 9);
  max-width: 100%;
  margin-top: var(--sul-spacing-sm);
  white-space: normal;
}

.sul-operator-reassign .sul-staff-picker__list { position: static; margin-top: var(--sul-spacing-xs); box-shadow: none; }

/* The Businesses list's Assigned to column: a small Reassign link under the operator's name,
   opening its form as a popover so the row keeps its height and the table its width. */
.sul-admin-biz__reassign { align-self: flex-start; }

.sul-admin-biz__reassign-toggle {
  font-size: var(--sul-font-sm);
  font-weight: 600;
  color: var(--sul-primary-action);
}

.sul-admin-biz__reassign-toggle:hover,
.sul-admin-biz__reassign[open] > .sul-admin-biz__reassign-toggle { text-decoration: underline; }

.sul-admin-biz__reassign-form {
  left: 0;
  right: auto;
  top: calc(100% + var(--sul-spacing-xs));
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
  width: calc(var(--sul-spacing-3xl) * 9);
  white-space: normal;
}

.sul-admin-biz__reassign-form .sul-actions { margin: 0; }
.sul-admin-biz__reassign-form .sul-staff-picker__list,
.sul-admin-biz__reassign-form .sul-account-picker__list { position: static; margin-top: var(--sul-spacing-xs); box-shadow: none; }

/* The bulk bar's Assign (several people at once) opens its multi-select picker under the button,
   beside the inline Reassign. .sul-admin-menu already positions it. */
.sul-admin-bizlist__bulk-assign .sul-field__hint { margin: 0; }

/* --- Reports (/admin/reports, migration 094) ---------------------------------------------------
   clientapp/src/reports/. The page runs framed (full height below the top bar, like Operate): a
   collapsible report menu on the left and the report scrolling on its own beside it. Status
   colours are the product's tokens: published = success, partly failed = warning, error = danger,
   scheduled = scheduled, draft = placeholder, cancelled = border. */
/* The island's mount is the framed main's flex child, so IT must fill the height and let its
   child shrink -- without this it grows to the content's height, the framed body's
   overflow:hidden clips it, and the report pane has nothing to scroll. */
.sul-rep-mount {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.sul-rep-layout {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: var(--sul-desktop-sidebar-width) minmax(0, 1fr);
    transition: grid-template-columns var(--sul-transition-base);
}

.sul-rep-layout--mini { grid-template-columns: calc(var(--sul-spacing-3xl) * 2) minmax(0, 1fr); }

/* Menu */
.sul-rep-lhs {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: var(--sul-surface);
    border-right: var(--sul-card-border) solid var(--sul-border);
}

.sul-rep-lhh {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-sm);
    min-height: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xl));
    padding: 0 var(--sul-spacing-compact) 0 var(--sul-spacing-lg);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-rep-lhh b,
.sul-rep-grp {
    font-size: var(--sul-font-micro);
    font-weight: 600;
    letter-spacing: calc(var(--sul-font-micro) * 0.06);
    text-transform: uppercase;
    color: var(--sul-placeholder);
    white-space: nowrap;
}

.sul-rep-lhh b { flex: 1; }

/* The grid cell for the menu, and the collapse button's containing block (the menu clips). */
.sul-rep-lhs-wrap {
    position: relative;
    display: flex;
    min-height: 0;
}

.sul-rep-lhs-wrap > .sul-rep-lhs { flex: 1; min-width: 0; }

/* A round « straddling the menu's right border, centred on the header row -- the app rail's
   .sul-nav__collapse, same size and tokens, so the console and the app collapse the same way. */
.sul-rep-tgl {
    position: absolute;
    top: calc((var(--sul-spacing-3xl) + var(--sul-spacing-xl) - var(--sul-spacing-2xl)) / 2);
    right: calc(var(--sul-spacing-2xl) / -2);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--sul-spacing-2xl);
    height: var(--sul-spacing-2xl);
    padding: 0;
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-pill);
    background: var(--sul-surface);
    color: var(--sul-muted);
    box-shadow: var(--sul-shadow-sm);
    cursor: pointer;
}

.sul-rep-tgl:hover { color: var(--sul-text); }
.sul-rep-tgl svg { width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); transition: transform var(--sul-transition-base); }
/* » when collapsed: the same glyph, turned round. */
.sul-rep-layout--mini .sul-rep-tgl svg { transform: rotate(180deg); }

.sul-rep-lhs nav {
    flex: 1;
    padding: var(--sul-spacing-compact);
    overflow-x: hidden;
    overflow-y: auto;
}

.sul-rep-grp { margin: 0; padding: var(--sul-spacing-compact) var(--sul-spacing-compact) var(--sul-spacing-xs); }

.sul-rep-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-compact);
    min-height: calc(var(--sul-avatar-md) + var(--sul-spacing-xxs));
    margin-bottom: var(--sul-spacing-xxs);
    padding: 0 var(--sul-spacing-compact);
    border-radius: var(--sul-radius-lg);
    color: var(--sul-muted);
    font-size: var(--sul-font-sm);
    text-decoration: none;
    white-space: nowrap;
}

.sul-rep-link svg { flex: none; width: var(--sul-font-lg); height: var(--sul-font-lg); }
a.sul-rep-link:hover { background: var(--sul-background); color: var(--sul-text); }

.sul-rep-link--on {
    background: var(--sul-selected-bg);
    color: var(--sul-text);
    font-weight: 600;
}

.sul-rep-link--on::before {
    content: "";
    position: absolute;
    left: calc(var(--sul-spacing-compact) * -1);
    top: var(--sul-spacing-sm);
    bottom: var(--sul-spacing-sm);
    width: calc(var(--sul-spacing-xxs) + var(--sul-card-border));
    border-radius: 0 var(--sul-radius-sm) var(--sul-radius-sm) 0;
    background: var(--sul-primary);
}

.sul-rep-link--on svg { color: var(--sul-primary); }
.sul-rep-link--soon { cursor: default; opacity: var(--sul-opacity-disabled); }

.sul-rep-soon {
    margin-left: auto;
    padding: 0 var(--sul-spacing-xs);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-pill);
    font-size: var(--sul-font-xxs);
    font-weight: 600;
    color: var(--sul-placeholder);
}

.sul-rep-lhf {
    margin: 0;
    padding: var(--sul-spacing-compact) var(--sul-spacing-lg);
    border-top: var(--sul-card-border) solid var(--sul-border);
    font-size: var(--sul-font-micro);
    color: var(--sul-placeholder);
    white-space: nowrap;
}

.sul-rep-lhf kbd {
    padding: 0 var(--sul-spacing-xs);
    border: var(--sul-card-border) solid var(--sul-border);
    border-bottom-width: var(--sul-spacing-xxs);
    border-radius: var(--sul-radius-sm);
    background: var(--sul-surface);
    color: var(--sul-muted);
    font: inherit;
}

.sul-rep-layout--mini .sul-rep-lhh { padding: 0; justify-content: center; }
.sul-rep-layout--mini .sul-rep-lhh b,
.sul-rep-layout--mini .sul-rep-lbl,
.sul-rep-layout--mini .sul-rep-grp,
.sul-rep-layout--mini .sul-rep-soon,
.sul-rep-layout--mini .sul-rep-lhf { display: none; }
.sul-rep-layout--mini .sul-rep-link { justify-content: center; padding: 0; }
.sul-rep-layout--mini .sul-rep-grp-block + .sul-rep-grp-block {
    margin-top: var(--sul-spacing-sm);
    padding-top: var(--sul-spacing-sm);
    border-top: var(--sul-card-border) solid var(--sul-border);
}

/* Report pane */
.sul-rep-main {
    min-width: 0;
    overflow-y: auto;
    padding: var(--sul-spacing-xl) var(--sul-spacing-2xl) calc(var(--sul-spacing-3xl) * 2);
    font-size: var(--sul-font-sm);
}

.sul-rep-crumb { margin: 0 0 var(--sul-spacing-xs); font-size: var(--sul-font-xs); color: var(--sul-placeholder); }

.sul-rep-head {
    display: flex;
    align-items: flex-end;
    gap: var(--sul-spacing-base);
    margin-bottom: var(--sul-spacing-base);
}

.sul-rep-head h1 { margin: 0; font-size: var(--sul-font-2xl); color: var(--sul-text); }
.sul-rep-sub { margin: var(--sul-spacing-xxs) 0 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-rep-sp { flex: 1; }

.sul-rep-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sul-spacing-xs);
    height: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xxs));
    padding: 0 var(--sul-spacing-base);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-lg);
    background: var(--sul-surface);
    color: var(--sul-text);
    font: inherit;
    font-size: var(--sul-font-xs);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.sul-rep-btn svg { width: var(--sul-font-sm); height: var(--sul-font-sm); }
.sul-rep-btn:disabled { opacity: var(--sul-opacity-disabled); cursor: default; }

/* Download: a native <details> whose summary is a .sul-rep-btn, opening a menu of files. */
.sul-rep-dl { position: relative; }
.sul-rep-dl > summary { list-style: none; }
.sul-rep-dl > summary::-webkit-details-marker { display: none; }
.sul-rep-dl[open] > summary { background: var(--sul-background); }
.sul-rep-dl__caret { font-size: var(--sul-font-2xs); color: var(--sul-muted); }
.sul-rep-dl__menu {
    position: absolute;
    right: 0;
    top: calc(100% + var(--sul-spacing-xs));
    z-index: 10;
    min-width: max-content;
    display: flex;
    flex-direction: column;
    padding: var(--sul-spacing-xs);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-lg);
    background: var(--sul-surface);
    box-shadow: var(--sul-shadow-lg);
}
.sul-rep-dl__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sul-spacing-xxs);
    padding: var(--sul-spacing-sm) var(--sul-spacing-base);
    border: 0;
    border-radius: var(--sul-radius-base);
    background: none;
    color: var(--sul-text);
    font: inherit;
    font-size: var(--sul-font-xs);
    text-align: left;
    cursor: pointer;
}
.sul-rep-dl__item small { color: var(--sul-muted); }
.sul-rep-dl__item:hover { background: var(--sul-background); }
.sul-rep-dl__item:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: calc(var(--sul-spacing-xxs) * -1); }

/* Filter bar: sticks to the top of the report pane while the table scrolls under it. */
.sul-rep-fbar {
    position: sticky;
    top: calc(var(--sul-spacing-xl) * -1);
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sul-spacing-compact);
    margin-bottom: var(--sul-spacing-base);
    padding: var(--sul-spacing-compact) var(--sul-spacing-base);
    background: var(--sul-surface);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-xl);
}

.sul-rep-seg {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sul-spacing-xxs);
    padding: calc(var(--sul-spacing-xxs) + var(--sul-card-border));
    border-radius: var(--sul-radius-lg);
    background: var(--sul-background);
}

.sul-rep-seg button {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-xs);
    height: var(--sul-avatar-sm);
    padding: 0 var(--sul-spacing-compact);
    border: none;
    border-radius: var(--sul-radius-base);
    background: none;
    color: var(--sul-muted);
    font: inherit;
    font-size: var(--sul-font-xs);
    white-space: nowrap;
    cursor: pointer;
}

.sul-rep-seg button.sul-rep-seg__on {
    background: var(--sul-surface);
    color: var(--sul-text);
    font-weight: 600;
    box-shadow: var(--sul-shadow-sm);
}

.sul-rep-dates {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-xs);
    height: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xxs));
    padding: 0 var(--sul-spacing-sm);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-lg);
}

.sul-rep-dates input {
    border: none;
    background: none;
    color: var(--sul-text);
    font: inherit;
    font-size: var(--sul-font-xs);
    outline: none;
}

.sul-rep-dates span { color: var(--sul-placeholder); }

.sul-rep-vr {
    width: var(--sul-card-border);
    height: var(--sul-spacing-2xl);
    background: var(--sul-border);
}

.sul-rep-srch { position: relative; }

.sul-rep-srch input {
    width: calc(var(--sul-spacing-3xl) * 6);
    height: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xxs));
    padding: 0 var(--sul-spacing-compact) 0 calc(var(--sul-spacing-3xl) - var(--sul-spacing-xxs));
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-lg);
    background: var(--sul-surface);
    color: var(--sul-text);
    font: inherit;
    font-size: var(--sul-font-xs);
    outline: none;
}

.sul-rep-srch input:focus { border-color: var(--sul-primary); box-shadow: 0 0 0 var(--sul-spacing-xxs) var(--sul-pastel-primary); }

.sul-rep-srch svg {
    position: absolute;
    left: var(--sul-spacing-compact);
    top: 50%;
    width: var(--sul-font-sm);
    height: var(--sul-font-sm);
    transform: translateY(-50%);
    color: var(--sul-placeholder);
    pointer-events: none;
}

.sul-rep-tg {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-xs);
    font-size: var(--sul-font-xs);
    color: var(--sul-muted);
    white-space: nowrap;
    cursor: pointer;
}

.sul-rep-tg input { accent-color: var(--sul-primary); }

.sul-rep-info { position: relative; }

.sul-rep-info > button {
    display: grid;
    place-items: center;
    width: var(--sul-spacing-xl);
    height: var(--sul-spacing-xl);
    padding: 0;
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: 50%;
    background: var(--sul-surface);
    color: var(--sul-placeholder);
    font: inherit;
    font-size: var(--sul-font-micro);
    cursor: help;
}

.sul-rep-info__tip {
    display: none;
    position: absolute;
    right: 0;
    top: calc(var(--sul-spacing-xl) + var(--sul-spacing-sm));
    z-index: 5;
    width: calc(var(--sul-spacing-3xl) * 10);
    padding: var(--sul-spacing-compact) var(--sul-spacing-base);
    border-radius: var(--sul-radius-lg);
    background: var(--sul-text);
    color: var(--sul-surface);
    font-size: var(--sul-font-xs);
    line-height: 1.5;
    box-shadow: var(--sul-shadow-lg);
}

.sul-rep-info__tip b { font-weight: 700; }
.sul-rep-info__tip > span { display: block; }
.sul-rep-info:hover .sul-rep-info__tip,
.sul-rep-info:focus-within .sul-rep-info__tip { display: block; }

.sul-rep-seg button:focus-visible,
.sul-rep-btn:focus-visible,
.sul-rep-tgl:focus-visible,
.sul-rep-link:focus-visible,
.sul-rep-info > button:focus-visible,
.sul-rep-chev:focus-visible,
.sul-rep-sortbtn:focus-visible,
.sul-rep-more:focus-visible {
    outline: var(--sul-spacing-xxs) solid var(--sul-focus);
    outline-offset: var(--sul-card-border);
}

/* KPI tiles */
.sul-rep-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--sul-spacing-compact);
    margin: 0 0 var(--sul-spacing-base);
    padding: 0;
    list-style: none;
}

.sul-rep-kpi {
    padding: var(--sul-spacing-base);
    background: var(--sul-surface);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-xl);
}

.sul-rep-kpi small { display: flex; align-items: center; gap: var(--sul-spacing-xs); font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-rep-kpi b {
    display: block;
    margin-top: var(--sul-spacing-xxs);
    font-size: var(--sul-font-3xl);
    letter-spacing: var(--sul-tracking-tight);
    font-variant-numeric: tabular-nums;
    color: var(--sul-text);
}

.sul-rep-kpi em { font-style: normal; font-size: var(--sul-font-micro); color: var(--sul-placeholder); }

/* Status swatches, fills and numbers */
.sul-rep-sw {
    display: inline-block;
    flex: none;
    width: var(--sul-spacing-sm);
    height: var(--sul-spacing-sm);
    border-radius: var(--sul-radius-xs);
}

.sul-rep-sw--pub { background: var(--sul-success); }
.sul-rep-sw--part { background: var(--sul-warning); }
.sul-rep-sw--err { background: var(--sul-danger); }
.sul-rep-sw--sch { background: var(--sul-scheduled); }
.sul-rep-sw--drf { background: var(--sul-placeholder); }
.sul-rep-sw--can { background: var(--sul-border); }

.sul-rep-fill--pub { fill: var(--sul-success); }
.sul-rep-fill--part { fill: var(--sul-warning); }
.sul-rep-fill--err { fill: var(--sul-danger); }
.sul-rep-fill--sch { fill: var(--sul-scheduled); }
.sul-rep-fill--drf { fill: var(--sul-placeholder); }

.sul-rep-n { font-weight: 600; }
.sul-rep-n--pub { color: var(--sul-success-dark); }
.sul-rep-n--part { color: var(--sul-warning-dark); }
.sul-rep-n--err { color: var(--sul-danger); }
.sul-rep-n--sch { color: var(--sul-scheduled); }
.sul-rep-n--drf,
.sul-rep-n--can { color: var(--sul-text-secondary); font-weight: 400; }
.sul-rep-z { color: var(--sul-border); }

.sul-rep-rate { font-weight: 600; }
.sul-rep-rate--lo { color: var(--sul-danger); }
.sul-rep-rate--mid { color: var(--sul-warning-dark); }
.sul-rep-rate--hi { color: var(--sul-success-dark); }

/* Posting targets > Platform wise (migration 174): a column group per platform, a row opens to the
   staff member's weeks still to post. */
.sul-rep-pt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); padding: 0 var(--sul-spacing-base) var(--sul-spacing-sm); }
.sul-rep-pt-hint { flex: 1; color: var(--sul-muted); font-size: var(--sul-font-xs); }
.sul-rep-pt .sul-rep-pt-first { border-left: var(--sul-card-border) solid var(--sul-border); }
.sul-rep-pt-who { display: flex; align-items: center; gap: var(--sul-spacing-sm); padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sul-rep-pt-who > span:last-child { display: flex; flex-direction: column; }
.sul-rep-pt-who small { color: var(--sul-muted); }
.sul-rep-pt-detail td { background: var(--sul-background); }
.sul-rep-pt-detail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sul-spacing-xs); }
.sul-rep-pt-detail li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); font-size: var(--sul-font-xs); }
.sul-rep-pt-detail small { color: var(--sul-muted); }

.sul-rep-bar {
    display: block;
    width: calc(var(--sul-spacing-3xl) * 3.5);
    height: var(--sul-spacing-sm);
    margin-left: auto;
    border-radius: var(--sul-radius-sm);
    background: var(--sul-background);
}

/* Table */
.sul-rep-tw {
    overflow-x: auto;
    background: var(--sul-surface);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-xl);
}

.sul-rep-tcap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sul-spacing-compact);
    padding: var(--sul-spacing-base) var(--sul-spacing-lg);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
    font-size: var(--sul-font-xs);
    color: var(--sul-muted);
}

.sul-rep-tcap b { color: var(--sul-text); }

.sul-rep-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sul-spacing-base);
    margin-left: auto;
    font-size: var(--sul-font-micro);
    color: var(--sul-muted);
}

.sul-rep-legend span { display: flex; align-items: center; gap: var(--sul-spacing-xs); }

.sul-rep-table { width: 100%; border-collapse: collapse; }

.sul-rep-table th,
.sul-rep-dc th {
    padding: var(--sul-spacing-sm) var(--sul-spacing-base);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
    background: var(--sul-background);
    font-size: var(--sul-font-micro);
    font-weight: 600;
    letter-spacing: calc(var(--sul-font-micro) * 0.04);
    text-transform: uppercase;
    text-align: right;
    color: var(--sul-placeholder);
    white-space: nowrap;
}

.sul-rep-table td,
.sul-rep-dc td {
    padding: var(--sul-spacing-compact) var(--sul-spacing-base);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
    text-align: right;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sul-rep-table .sul-rep-l,
.sul-rep-dc .sul-rep-l { text-align: left; }

/* The main table must fit its pane: ten columns at the detail cards' spacing ran the Success
   column off the edge. Tighter cells, headers that wrap to two lines ("Partly / failed"), and an
   Executive cell that wraps its role chip and email instead of widening the table. */
.sul-rep-table th,
.sul-rep-table td { padding-left: var(--sul-spacing-sm); padding-right: var(--sul-spacing-sm); }
.sul-rep-table th:first-child,
.sul-rep-table td:first-child { padding-left: var(--sul-spacing-lg); }
.sul-rep-table th:last-child,
.sul-rep-table td:last-child { padding-right: var(--sul-spacing-lg); }
.sul-rep-table th { white-space: normal; vertical-align: bottom; }
.sul-rep-table td.sul-rep-l { white-space: normal; min-width: calc(var(--sul-spacing-3xl) * 7); }
.sul-rep-ex small { overflow-wrap: anywhere; }

.sul-rep-sortbtn {
    padding: 0;
    text-align: inherit;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.sul-rep-ar { margin-left: var(--sul-spacing-xxs); opacity: 0.4; }
.sul-rep-table th.sul-rep-sorted { color: var(--sul-text); }
.sul-rep-sorted .sul-rep-ar { opacity: 1; }

.sul-rep-row { cursor: pointer; }
.sul-rep-row:hover td { background: var(--sul-background); }
.sul-rep-row--na td { background: var(--sul-warning-light); }
.sul-rep-row--open td { background: var(--sul-selected-bg); border-bottom-color: transparent; }

.sul-rep-ex { display: flex; align-items: center; gap: var(--sul-spacing-compact); }
.sul-rep-ex b { display: block; font-weight: 600; color: var(--sul-text); }
.sul-rep-ex small { font-size: var(--sul-font-micro); color: var(--sul-placeholder); }

.sul-rep-chev {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--sul-font-lg);
    height: var(--sul-font-lg);
    padding: 0;
    border: none;
    border-radius: var(--sul-radius-base);
    background: none;
    color: var(--sul-placeholder);
    font: inherit;
    font-size: var(--sul-font-base);
    cursor: pointer;
    transition: transform var(--sul-transition-fast);
}

.sul-rep-row--open .sul-rep-chev { transform: rotate(90deg); color: var(--sul-primary); }

.sul-rep-av {
    display: grid;
    place-items: center;
    flex: none;
    width: calc(var(--sul-avatar-sm) + var(--sul-spacing-xxs));
    height: calc(var(--sul-avatar-sm) + var(--sul-spacing-xxs));
    border-radius: 50%;
    background: var(--sul-pastel-info);
    color: var(--sul-info-dark);
    font-size: var(--sul-font-micro);
    font-weight: 700;
}

.sul-rep-av--na { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }

.sul-rep-role {
    margin-left: var(--sul-spacing-xs);
    padding: 0 var(--sul-spacing-xs);
    border-radius: var(--sul-radius-pill);
    background: var(--sul-background);
    color: var(--sul-muted);
    font-size: var(--sul-font-xxs);
    font-weight: 600;
    vertical-align: middle;
}

.sul-rep-role--sa { background: var(--sul-pastel-primary); color: var(--sul-warning-dark); }

.sul-rep-tot td {
    border-top: calc(var(--sul-card-border) * 2) solid var(--sul-border);
    border-bottom: none;
    background: var(--sul-background);
    font-weight: 700;
}

.sul-rep-tot__name { padding-left: calc(var(--sul-spacing-3xl) + var(--sul-spacing-sm)); }
.sul-rep-tot__name span { font-weight: 400; font-size: var(--sul-font-micro); color: var(--sul-placeholder); }

/* The detail under an opened row: a platform card and a businesses card. */
.sul-rep-det > td {
    padding: 0 var(--sul-spacing-base) var(--sul-spacing-lg) calc(var(--sul-spacing-3xl) + var(--sul-spacing-base));
    background: var(--sul-selected-bg);
    text-align: left;
    white-space: normal;
}

.sul-rep-dgrid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--sul-spacing-base);
    align-items: start;
}

.sul-rep-dc {
    min-width: 0;
    overflow-x: auto;
    padding: var(--sul-spacing-base);
    background: var(--sul-surface);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-lg);
}

.sul-rep-dc h4 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sul-spacing-sm);
    margin: 0 0 var(--sul-spacing-sm);
    font-size: var(--sul-font-xs);
    letter-spacing: calc(var(--sul-font-xs) * 0.04);
    text-transform: uppercase;
    color: var(--sul-placeholder);
}

.sul-rep-dc h4 span { text-transform: none; letter-spacing: 0; font-weight: 400; }

.sul-rep-dc h4 input {
    width: calc(var(--sul-spacing-3xl) * 5.5);
    height: var(--sul-avatar-sm);
    margin-left: auto;
    padding: 0 var(--sul-spacing-sm);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-base);
    background: var(--sul-surface);
    color: var(--sul-text);
    font: inherit;
    font-size: var(--sul-font-xs);
    text-transform: none;
    letter-spacing: 0;
    outline: none;
}

.sul-rep-dc table { width: 100%; border-collapse: collapse; }
.sul-rep-dc th { background: none; padding: var(--sul-spacing-xs) var(--sul-spacing-sm); }
.sul-rep-dc td { padding: var(--sul-spacing-xs) var(--sul-spacing-sm); }
.sul-rep-dc th:first-child,
.sul-rep-dc td:first-child { padding-left: 0; }
.sul-rep-dc th:last-child,
.sul-rep-dc td:last-child { padding-right: 0; }
.sul-rep-dc tbody tr:last-child td { border-bottom: none; }

.sul-rep-pl { display: inline-flex; align-items: center; gap: var(--sul-spacing-sm); font-weight: 500; }

.sul-rep-biz { white-space: normal; }
.sul-rep-biz a { color: var(--sul-text); font-weight: 500; text-decoration: none; }
.sul-rep-biz a:hover { color: var(--sul-primary); text-decoration: underline; }
.sul-rep-biz small { display: block; font-size: var(--sul-font-micro); color: var(--sul-placeholder); }

.sul-rep-more {
    padding: var(--sul-spacing-sm) 0 0;
    border: none;
    background: none;
    color: var(--sul-primary);
    font: inherit;
    font-size: var(--sul-font-xs);
    font-weight: 600;
    cursor: pointer;
}

/* Executive wise (migration 180): a count that opens the posts or links behind it. Orange text is
   primaryAction, never the brand value (CLAUDE.md accessibility floor). */
.sul-rep-numbtn {
    padding: 0;
    border: none;
    background: none;
    color: var(--sul-primary-action);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.sul-rep-numbtn:hover { text-decoration: underline; }
.sul-rep-numbtn:focus-visible {
    outline: var(--sul-spacing-xxs) solid var(--sul-focus);
    outline-offset: var(--sul-card-border);
}

.sul-rep-post { white-space: normal; color: var(--sul-text-secondary); overflow-wrap: anywhere; }
.sul-rep-marks { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); }

.sul-rep-conns { display: grid; gap: var(--sul-spacing-xs); margin: 0; padding: 0; list-style: none; }
.sul-rep-conns li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-xs); }
.sul-rep-conns small { font-size: var(--sul-font-micro); color: var(--sul-placeholder); }
.sul-rep-conns__out { color: var(--sul-placeholder); }

/* Executive wise v2 (migration 181): five KPIs, a fixed-layout table with meters and platform
   pills, and the posts behind a row grouped by business. */
.sul-rep-kpis--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sul-rep-kpi--alert b { color: var(--sul-danger); }

.sul-rep-select {
    height: var(--sul-spacing-3xl);
    padding: 0 var(--sul-spacing-sm);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-lg);
    background: var(--sul-surface);
    color: var(--sul-text);
    font: inherit;
    font-size: var(--sul-font-xs);
}
.sul-rep-select:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-card-border); }

/* A multi-select (reports/ui.tsx CheckMenu): a select-looking summary over a menu of checkboxes. */
.sul-rep-cm__sum { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); cursor: pointer; }
.sul-rep-cm__sum:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-card-border); }
.sul-rep-cm__menu { left: 0; right: auto; }
.sul-rep-cm__acts {
    display: flex;
    gap: var(--sul-spacing-base);
    padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
    font-size: var(--sul-font-xs);
}
.sul-rep-cm__item {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-sm);
    padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
    border-radius: var(--sul-radius-base);
    font-size: var(--sul-font-xs);
    cursor: pointer;
}
.sul-rep-cm__item:hover { background: var(--sul-background); }
.sul-rep-cm__none { padding: var(--sul-spacing-xs) var(--sul-spacing-sm); color: var(--sul-muted); font-size: var(--sul-font-xs); }

/* Fixed columns, so a long name ellipsises instead of pushing the meters off the card; the frame
   scrolls below about 900 CSS pixels (28 x the 32 spacing step). */
.sul-rep-v2 { table-layout: fixed; min-width: calc(var(--sul-spacing-3xl) * 28); }
.sul-rep-v2 th, .sul-rep-v2 td { text-align: left; }
.sul-rep-v2 .sul-rep-r { text-align: right; }
.sul-rep-v2 .sul-rep-ex { min-width: 0; }
.sul-rep-v2 .sul-rep-ex b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sul-rep-v2 .sul-rep-ex > span:last-child { min-width: 0; }
.sul-rep-w25 { width: 25%; }
.sul-rep-w9 { width: 9%; }
.sul-rep-w17 { width: 17%; }
.sul-rep-w10 { width: 10%; }
.sul-rep-w16 { width: 16%; }
.sul-rep-w13 { width: 13%; }

.sul-rep-big { font-size: var(--sul-font-base); font-weight: 700; font-variant-numeric: tabular-nums; }
.sul-rep-under { display: block; margin-top: var(--sul-spacing-xxs); font-size: var(--sul-font-micro); color: var(--sul-placeholder); }
.sul-rep-under--bad { color: var(--sul-danger); font-weight: 600; }

.sul-rep-meter { display: flex; align-items: center; gap: var(--sul-spacing-sm); }
.sul-rep-meter svg { flex: 1; min-width: var(--sul-spacing-3xl); height: var(--sul-spacing-xs); border-radius: var(--sul-radius-xs); }
.sul-rep-meter__track { fill: var(--sul-border); }
.sul-rep-meter--bad .sul-rep-meter__fill { fill: var(--sul-danger); }
.sul-rep-meter--warn .sul-rep-meter__fill { fill: var(--sul-warning); }
.sul-rep-meter--ok .sul-rep-meter__fill { fill: var(--sul-success); }
.sul-rep-meter b { min-width: var(--sul-spacing-3xl); text-align: right; font-size: var(--sul-font-xs); font-variant-numeric: tabular-nums; }

.sul-rep-pills { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); }
.sul-rep-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--sul-spacing-xs);
    padding: var(--sul-card-border) var(--sul-spacing-sm) var(--sul-card-border) var(--sul-spacing-xxs);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-pill);
    font-size: var(--sul-font-micro);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
/* The design's small marks, so two or three pills fit on one line of the Platforms column. */
.sul-rep-pill .sul-platform-icon--compact,
.sul-rep-ps .sul-platform-icon--compact { width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); }

.sul-rep-last { font-size: var(--sul-font-xs); }
.sul-rep-last--old { color: var(--sul-warning-dark); }

/* The detail card: a header line, then one block per business. Flush: the blocks run edge to edge. */
.sul-rep-dc--flush { padding: 0; }
.sul-rep-dc--flush .sul-rep-nodata { padding: var(--sul-spacing-compact) var(--sul-spacing-base); }
.sul-rep-dh {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sul-spacing-compact);
    padding: var(--sul-spacing-sm) var(--sul-spacing-base);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
    font-size: var(--sul-font-xs);
    color: var(--sul-muted);
}
.sul-rep-dh b { color: var(--sul-text); }
.sul-rep-linkbtn {
    padding: 0;
    border: none;
    background: none;
    color: var(--sul-primary-action);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.sul-rep-linkbtn:hover { text-decoration: underline; }
.sul-rep-linkbtn:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-card-border); }

.sul-rep-bz { border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-rep-bz:last-child { border-bottom: none; }
.sul-rep-bzh { display: flex; align-items: center; gap: var(--sul-spacing-sm); padding: var(--sul-spacing-sm) var(--sul-spacing-base) var(--sul-spacing-xs); }
.sul-rep-bzh a { color: var(--sul-text); font-weight: 600; text-decoration: none; }
.sul-rep-bzh a:hover { color: var(--sul-primary-action); text-decoration: underline; }
.sul-rep-bzh small { color: var(--sul-placeholder); }
.sul-rep-bzh span { margin-left: auto; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-rep-ps {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: var(--sul-spacing-base);
    padding: var(--sul-spacing-xs) var(--sul-spacing-base) var(--sul-spacing-xs) var(--sul-spacing-3xl);
    font-size: var(--sul-font-xs);
}
.sul-rep-ps > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sul-muted); }
.sul-rep-ps time { color: var(--sul-placeholder); font-variant-numeric: tabular-nums; }
.sul-rep-ps a { color: var(--sul-primary-action); font-weight: 600; text-decoration: none; }

.sul-rep-nodata { margin: 0; padding: var(--sul-spacing-compact) 0; font-size: var(--sul-font-xs); color: var(--sul-placeholder); }
.sul-rep-pad { padding: var(--sul-spacing-lg); }
.sul-rep-error { margin: 0 0 var(--sul-spacing-base); color: var(--sul-danger); font-size: var(--sul-font-sm); }

.sul-rep-foot {
    margin: 0;
    padding: var(--sul-spacing-compact) var(--sul-spacing-lg);
    border-top: var(--sul-card-border) solid var(--sul-border);
    font-size: var(--sul-font-xs);
    color: var(--sul-placeholder);
}

/* Breakpoint literals: @media cannot read a custom property. */
@media (max-width: 1520px) {
    .sul-rep-layout:not(.sul-rep-layout--mini) .sul-rep-hide-md { display: none; }
}

/* Collapsing the menu buys one menu's width, not enough for the bar on a laptop screen. */
@media (max-width: 1360px) {
    .sul-rep-hide-md { display: none; }
}

@media (max-width: 1100px) {
    .sul-rep-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sul-rep-dgrid { grid-template-columns: minmax(0, 1fr); }
    .sul-rep-hide-md { display: none; }
}

@media (max-width: 640px) {
    .sul-rep-layout,
    .sul-rep-layout--mini { grid-template-columns: calc(var(--sul-spacing-3xl) * 2) minmax(0, 1fr); }
    .sul-rep-layout .sul-rep-lbl,
    .sul-rep-layout .sul-rep-lhh b,
    .sul-rep-layout .sul-rep-grp,
    .sul-rep-layout .sul-rep-soon,
    .sul-rep-layout .sul-rep-lhf { display: none; }
    .sul-rep-layout .sul-rep-link { justify-content: center; padding: 0; }
    .sul-rep-layout .sul-rep-lhh { padding: 0; justify-content: center; }
    /* The menu is always icons at this width, so there is nothing to collapse. */
    .sul-rep-tgl { display: none; }
    .sul-rep-main { padding: var(--sul-spacing-lg); }
    .sul-rep-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sul-rep-fbar { position: static; }
    .sul-rep-srch input { width: 100%; }
}

/* ==========================================================================
   Social directory (clientapp/src/islands/social-directory.tsx, /admin/social-directory).

   One card: a toolbar (platform tabs with counts, search, status, sort), a bulk bar while
   rows are selected, the table, and a count line. Adding is a right-hand slide-over
   (.sul-dialog--right). Every value is a token; dark mode follows because the tokens swap.
   ========================================================================== */
.sul-sd { display: flex; flex-direction: column; gap: var(--sul-spacing-lg); }
.sul-sd__card { padding: 0; overflow: visible; }

.sul-sd__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
}
.sul-sd__spacer { flex: 1 1 0; }

.sul-sd__tabs { flex: none; }
.sul-sd__tabs .sul-tabs__tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-xs) var(--sul-spacing-base);
}
.sul-sd__count {
  padding: 0 var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-border);
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-micro);
  font-weight: 600;
}
.sul-sd__tabs .sul-tabs__tab--current .sul-sd__count {
  background: var(--sul-pastel-primary);
  color: var(--sul-primary-action-strong);
}

.sul-sd__search { position: relative; flex: 0 1 calc(var(--sul-desktop-card-min) - var(--sul-spacing-lg)); }
.sul-sd__search-icon {
  position: absolute;
  left: var(--sul-spacing-compact);
  top: 50%;
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  transform: translateY(-50%);
  color: var(--sul-muted);
  pointer-events: none;
}
.sul-sd__search-input { width: 100%; padding-left: var(--sul-spacing-3xl); }
.sul-sd__select { flex: none; }
.sul-sd__select .sul-input { width: auto; }

.sul-sd__bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  background: var(--sul-selected-bg);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
  font-size: var(--sul-font-sm);
}
.sul-sd__bulk-count { font-weight: 700; margin-right: var(--sul-spacing-xs); }
.sul-sd__bulk-clear {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--sul-muted);
  font: inherit;
  cursor: pointer;
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
  border-radius: var(--sul-radius-base);
}
.sul-sd__bulk-clear:hover { background: var(--sul-surface); color: var(--sul-text); }
.sul-sd__danger,
.sul-sd__danger-text { color: var(--sul-danger); }

.sul-sd__notice { padding: var(--sul-spacing-lg) var(--sul-spacing-base); margin: 0; }

.sul-sd__table th {
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  background: var(--sul-background);
  font-size: var(--sul-font-micro);
  text-transform: uppercase;
  color: var(--sul-muted);
}
.sul-sd__table td {
  vertical-align: middle;
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
}
.sul-sd__row:hover td { background: var(--sul-background); }
.sul-sd__row--selected td,
.sul-sd__row--selected:hover td { background: var(--sul-selected-bg); }
.sul-sd__row--off .sul-sd__account,
.sul-sd__row--off .sul-sd__pageid,
.sul-sd__row--off .sul-sd__updated { opacity: 0.6; }
.sul-sd__check { width: var(--sul-avatar-md); }
.sul-sd__table input[type="checkbox"] {
  accent-color: var(--sul-primary-action);
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  cursor: pointer;
}

.sul-sd__account { display: flex; align-items: center; gap: var(--sul-spacing-base); min-width: 0; white-space: normal; }
.sul-sd__account-text { display: flex; flex-direction: column; gap: var(--sul-spacing-xxs); min-width: 0; }
.sul-sd__name {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  font-weight: 600;
  color: var(--sul-text);
}
.sul-sd__handle,
.sul-sd__meta {
  color: var(--sul-muted);
  font-size: var(--sul-font-xs);
  text-decoration: none;
}
.sul-sd__handle { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sul-sd__handle:hover { color: var(--sul-primary-action); text-decoration: underline; }

.sul-sd__icon-button {
  display: inline-grid;
  place-items: center;
  width: var(--sul-font-3xl);
  height: var(--sul-font-3xl);
  padding: 0;
  border: 0;
  border-radius: var(--sul-radius-base);
  background: none;
  color: var(--sul-muted);
  cursor: pointer;
}
.sul-sd__icon-button svg { width: var(--sul-font-sm); height: var(--sul-font-sm); }
.sul-sd__icon-button:hover { background: var(--sul-pastel-primary); color: var(--sul-primary-action-strong); }
.sul-sd__icon-button:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}
/* The pencil appears on hover and on keyboard focus, so it never hides from a keyboard user. */
.sul-sd__rename { opacity: 0; }
.sul-sd__row:hover .sul-sd__rename,
.sul-sd__rename:focus-visible { opacity: 1; }
@media (hover: none) { .sul-sd__rename { opacity: 1; } }

.sul-sd__pageid {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--sul-font-xs);
  color: var(--sul-text-secondary);
}
.sul-sd__none,
.sul-sd__updated { color: var(--sul-muted); font-size: var(--sul-font-xs); }
.sul-sd__actions { text-align: right; width: var(--sul-control-touch-min); }
.sul-sd__actions .sul-menu__toggle { border-color: transparent; background: none; }
.sul-sd__actions .sul-menu__toggle:hover { border-color: var(--sul-border); }

.sul-sd__status { display: inline-flex; align-items: center; gap: var(--sul-spacing-sm); }
.sul-sd__status-word { font-size: var(--sul-font-xs); color: var(--sul-text-secondary); }

/* An on/off switch. role="switch" + aria-checked carry the state; the word beside it says it too. */
.sul-sd-switch {
  position: relative;
  flex: none;
  width: var(--sul-avatar-md);
  height: var(--sul-spacing-xl);
  padding: 0;
  border: 0;
  border-radius: var(--sul-radius-pill);
  background: var(--sul-disabled);
  cursor: pointer;
  transition: background var(--sul-transition-fast);
}
.sul-sd-switch::after {
  content: "";
  position: absolute;
  top: var(--sul-spacing-xxs);
  left: var(--sul-spacing-xxs);
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  border-radius: 50%;
  background: var(--sul-surface);
  box-shadow: var(--sul-shadow-sm);
  transition: transform var(--sul-transition-fast);
}
.sul-sd-switch[aria-checked="true"] { background: var(--sul-success-dark); }
.sul-sd-switch[aria-checked="true"]::after { transform: translateX(var(--sul-spacing-lg)); }
.sul-sd-switch:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}

/* Initials in the platform's own tint, with the platform mark as a corner badge. */
.sul-sd-initials {
  position: relative;
  flex: none;
  width: var(--sul-avatar-md);
  height: var(--sul-avatar-md);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: var(--sul-font-xs);
  font-weight: 700;
}
.sul-sd-initials--facebook_page { background: var(--sul-platform-icon-facebook-bg); color: var(--sul-platform-icon-facebook-text); }
.sul-sd-initials--instagram     { background: var(--sul-platform-icon-instagram-bg); color: var(--sul-platform-icon-instagram-text); }
.sul-sd-initials__badge {
  position: absolute;
  right: calc(var(--sul-spacing-xs) * -1);
  bottom: calc(var(--sul-spacing-xs) * -1);
  display: grid;
  border-radius: 50%;
  border: var(--sul-spacing-xxs) solid var(--sul-surface);
  background: var(--sul-surface);
}
.sul-sd-initials__badge .sul-platform-icon {
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
}
.sul-sd-initials__badge .sul-platform-icon__mark {
  width: var(--sul-spacing-compact);
  height: var(--sul-spacing-compact);
}

.sul-sd-edit { display: flex; flex-direction: column; gap: var(--sul-spacing-xs); white-space: normal; }
.sul-sd-edit__row { display: flex; align-items: center; gap: var(--sul-spacing-xs); flex-wrap: wrap; }
.sul-sd-edit__input { width: min(100%, calc(var(--sul-desktop-connection-detail-min) + var(--sul-spacing-3xl))); }
.sul-sd-edit .sul-field__error { margin: 0; }

.sul-sd__foot {
  margin: 0;
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border-top: var(--sul-card-border) solid var(--sul-border);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

/* The add panel. */
.sul-sd-add { display: flex; flex-direction: column; gap: var(--sul-spacing-xs); }
.sul-sd-add__rule {
  display: flex;
  gap: var(--sul-spacing-sm);
  margin: 0 0 var(--sul-spacing-base);
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-pastel-warning);
  color: var(--sul-warning-dark);
  font-size: var(--sul-font-xs);
}
.sul-sd-add__rule > span:first-child { font-weight: 700; }
.sul-sd-add__platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sul-spacing-sm);
  margin: 0 0 var(--sul-spacing-base);
  padding: 0;
  border: 0;
}
.sul-sd-add__platforms legend { grid-column: 1 / -1; padding: 0; margin-bottom: var(--sul-spacing-xs); }
.sul-sd-add__platform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sul-spacing-sm);
  min-height: var(--sul-control-touch-min);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  color: var(--sul-text);
  font: inherit;
  font-size: var(--sul-font-sm);
  font-weight: 600;
  cursor: pointer;
}
.sul-sd-add__platform--current {
  border-color: var(--sul-primary-action);
  background: var(--sul-selected-bg);
  color: var(--sul-primary-action-strong);
  box-shadow: 0 0 0 var(--sul-card-border) var(--sul-primary-action);
}
.sul-sd-add__platform:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}
.sul-sd-add__preview {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
  margin-top: var(--sul-spacing-base);
  padding: var(--sul-spacing-base);
  border: var(--sul-card-border) dashed var(--sul-border);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-background);
}
.sul-sd-add__preview-label {
  font-size: var(--sul-font-micro);
  text-transform: uppercase;
  color: var(--sul-muted);
}
.sul-sd-add__foot { display: flex; justify-content: flex-end; gap: var(--sul-spacing-sm); width: 100%; }

/* The toast: what just happened, with Undo where it can be undone. Always in the DOM, so a
   screen reader hears it through the live region. */
.sul-sd-toast {
  position: fixed;
  left: 50%;
  bottom: var(--sul-spacing-xl);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  max-width: calc(100% - var(--sul-spacing-3xl));
  padding: var(--sul-spacing-compact) var(--sul-spacing-lg);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-text);
  color: var(--sul-surface);
  font-size: var(--sul-font-sm);
  box-shadow: var(--sul-shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, var(--sul-spacing-xl));
  transition: opacity var(--sul-transition-base), transform var(--sul-transition-base);
}
.sul-sd-toast--show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.sul-sd-toast--error { background: var(--sul-danger); color: var(--sul-surface); }
.sul-sd-toast__undo {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 760px) {
  .sul-sd__wide { display: none; }
  .sul-sd__search { flex: 1 1 100%; }
  .sul-sd__spacer { display: none; }
}

/* ==========================================================================
   Posts (clientapp/src/islands/posts.tsx, /app/businesses/{id}/posts).

   A type summary strip, a toolbar (type tabs with counts, search, platform toggles, sort,
   grid or list), the card grid, and a right-hand details panel (.sul-dialog--right). The
   toolbar borrows the Social directory's tab, count, search and select classes so the two
   filterable screens read as one family. Badges over a photo use the surface and text tokens,
   so they stay legible in both themes; the type is carried by an icon AND a word, never by
   colour alone. Every value is a token.
   ========================================================================== */
.sul-posts { display: flex; flex-direction: column; gap: var(--sul-spacing-lg); }

.sul-posts__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sul-spacing-compact);
}
.sul-posts__summary-tile {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-card-radius);
  background: var(--sul-surface);
  color: var(--sul-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sul-posts__summary-tile:hover { border-color: var(--sul-muted); }
.sul-posts__summary-tile[aria-pressed="true"] {
  border-color: var(--sul-primary-action);
  background: var(--sul-selected-bg);
}
.sul-posts__summary-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--sul-avatar-md);
  height: var(--sul-avatar-md);
  border-radius: var(--sul-radius-base);
  background: var(--sul-pastel-primary);
  color: var(--sul-primary-action-strong);
}
.sul-posts__summary-icon .sul-posts__kind-icon { width: var(--sul-font-lg); height: var(--sul-font-lg); }
.sul-posts__summary-text { display: flex; flex-direction: column; min-width: 0; }
.sul-posts__summary-count {
  font-size: var(--sul-font-xl);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.sul-posts__summary-label {
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sul-posts__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-compact);
}
.sul-posts__toolbar .sul-tabs { flex-wrap: wrap; }

.sul-posts__pf { display: flex; gap: var(--sul-spacing-xs); }
.sul-posts__pf-button,
.sul-posts__layout-button {
  display: grid;
  place-items: center;
  min-width: var(--sul-control-touch-min);
  min-height: var(--sul-control-touch-min);
  padding: 0;
  border: var(--sul-card-border) solid var(--sul-border);
  background: var(--sul-surface);
  color: var(--sul-muted);
  cursor: pointer;
}
.sul-posts__pf-button { border-radius: var(--sul-radius-pill); opacity: 0.45; }
.sul-posts__pf-button[aria-pressed="true"] { opacity: 1; border-color: var(--sul-muted); }

.sul-posts__layout {
  display: flex;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-base);
  overflow: hidden;
}
.sul-posts__layout-button { border: 0; border-radius: 0; }
.sul-posts__layout-button svg { width: var(--sul-font-lg); height: var(--sul-font-lg); }
.sul-posts__layout-button[aria-pressed="true"] { background: var(--sul-background); color: var(--sul-text); }
/* The source filter borrows the layout switch's frame, with words beside its icons. */
.sul-posts__source-button {
  display: inline-flex;
  gap: var(--sul-spacing-xs);
  padding: 0 var(--sul-spacing-compact);
  font-size: var(--sul-font-xs);
  font-weight: 600;
  white-space: nowrap;
}
.sul-posts__source-button svg { width: var(--sul-font-xs); height: var(--sul-font-xs); }

.sul-posts__pf-button:focus-visible,
.sul-posts__layout-button:focus-visible,
.sul-posts__summary-tile:focus-visible {
  outline: var(--sul-card-border) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}

/* ---- the grid and its cards ----
   A fixed 3-up wall (3 / 2 / 1), so a wide screen reads as an even wall of larger cards
   rather than auto-fill growing a fourth, fifth or sixth column. */
.sul-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sul-spacing-lg);
}
@media (max-width: 860px) {
  .sul-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sul-posts__grid { grid-template-columns: minmax(0, 1fr); }
}
.sul-posts__card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-card-radius);
  background: var(--sul-surface);
  box-shadow: var(--sul-shadow-sm);
  transition: border-color 0.15s, transform 0.15s;
}
.sul-posts__card:hover { border-color: var(--sul-muted); transform: translateY(calc(-1 * var(--sul-spacing-xxs))); }
.sul-posts__card:focus-within { border-color: var(--sul-primary-action); }

.sul-posts__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sul-background);
}
.sul-posts__thumb--large { border-radius: var(--sul-radius-lg); }
.sul-posts__thumb-media { display: block; width: 100%; height: 100%; object-fit: cover; }
.sul-posts__thumb-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(var(--sul-spacing-base)) brightness(0.55);
  transform: scale(1.2);
}
.sul-posts__thumb-frame {
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  aspect-ratio: 9 / 16;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: var(--sul-radius-base);
  box-shadow: var(--sul-shadow-md);
}
.sul-posts__thumb-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--sul-placeholder);
}
.sul-posts__thumb-empty .sul-posts__kind-icon { width: var(--sul-avatar-lg); height: var(--sul-avatar-lg); }

.sul-posts__badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-xxs) var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  color: var(--sul-text);
  font-size: var(--sul-font-xxs);
  font-weight: 700;
  box-shadow: var(--sul-shadow-sm);
  font-variant-numeric: tabular-nums;
}
.sul-posts__badge--kind {
  top: var(--sul-spacing-sm);
  left: var(--sul-spacing-sm);
  text-transform: uppercase;
}
.sul-posts__badge--kind .sul-posts__kind-icon { width: var(--sul-font-sm); height: var(--sul-font-sm); color: var(--sul-primary-action); }
.sul-posts__badge--corner { top: var(--sul-spacing-sm); right: var(--sul-spacing-sm); }
.sul-posts__badge--duration { right: var(--sul-spacing-sm); bottom: var(--sul-spacing-sm); }

.sul-posts__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.sul-posts__play svg {
  width: var(--sul-avatar-lg);
  height: var(--sul-avatar-lg);
  padding: var(--sul-spacing-compact);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-overlay);
  color: var(--sul-surface);
}

.sul-posts__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
}
.sul-posts__title {
  margin: 0;
  font-size: var(--sul-font-sm);
  font-weight: 600;
  line-height: 1.35;
}
.sul-posts__open {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.35 * var(--sul-font-sm));
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
/* The title button covers the whole card, so the card is one click and one tab stop. */
.sul-posts__open::after { content: ""; position: absolute; inset: 0; }
.sul-posts__open:focus-visible { outline: none; }

.sul-posts__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sul-spacing-sm);
}
.sul-posts__when { margin: 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-posts__failed { color: var(--sul-danger); font-weight: 600; }

/* Where the words came from: the AI writer or typed. Absent when it was never recorded. */
.sul-posts__whenrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-xs); min-width: 0; }
.sul-posts__source {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  flex: none;
  padding: var(--sul-spacing-xxs) var(--sul-spacing-sm) var(--sul-spacing-xxs) var(--sul-spacing-xs);
  border-radius: var(--sul-radius-pill);
  font-size: var(--sul-font-xs);
  font-weight: 700;
  white-space: nowrap;
  background: var(--sul-background);
  color: var(--sul-muted);
}
.sul-posts__source svg { width: var(--sul-font-xs); height: var(--sul-font-xs); }
.sul-posts__source--ai { background: var(--sul-pastel-primary); color: var(--sul-primary-action-strong); }

.sul-posts__plats { display: flex; flex: none; gap: var(--sul-spacing-xs); }
.sul-posts__plat { position: relative; display: inline-flex; }
/* A platform that did not take the post: a danger ring and a corner dot, plus the words in
   the card's own "Did not post on ..." line and the hidden label, so colour is never alone. */
.sul-posts__plat--failed .sul-platform-icon { box-shadow: 0 0 0 var(--sul-card-border) var(--sul-danger); }
.sul-posts__plat--failed::after {
  content: "";
  position: absolute;
  right: calc(-1 * var(--sul-spacing-xxs));
  bottom: calc(-1 * var(--sul-spacing-xxs));
  width: var(--sul-spacing-sm);
  height: var(--sul-spacing-sm);
  border: var(--sul-card-border) solid var(--sul-surface);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-danger);
}

.sul-posts__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: auto 0 0;
  padding-top: var(--sul-spacing-compact);
  border-top: var(--sul-card-border) solid var(--sul-border);
}
.sul-posts__stat { display: flex; flex-direction: column-reverse; min-width: 0; text-align: center; }
.sul-posts__stat dd {
  margin: 0;
  font-size: var(--sul-font-base);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sul-posts__stat dt {
  font-size: var(--sul-metric-label-size);
  color: var(--sul-muted);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sul-posts__note {
  margin: auto 0 0;
  padding-top: var(--sul-spacing-compact);
  border-top: var(--sul-card-border) solid var(--sul-border);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

/* ---- list layout: one row per post, picture on the left ---- */
.sul-posts__grid--list { grid-template-columns: 1fr; gap: var(--sul-spacing-sm); }
.sul-posts__grid--list .sul-posts__card { flex-direction: row; }
.sul-posts__grid--list .sul-posts__card:hover { transform: none; }
.sul-posts__grid--list .sul-posts__thumb { flex: none; width: calc(var(--sul-avatar-lg) * 3); aspect-ratio: auto; }
.sul-posts__grid--list .sul-posts__badge--corner,
.sul-posts__grid--list .sul-posts__badge--duration,
.sul-posts__grid--list .sul-posts__play { display: none; }
.sul-posts__grid--list .sul-posts__body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-lg); }
.sul-posts__grid--list .sul-posts__title { flex: 1 1 calc(var(--sul-desktop-card-min) - var(--sul-spacing-3xl)); }
.sul-posts__grid--list .sul-posts__open { min-height: 0; }
.sul-posts__grid--list .sul-posts__meta { flex-direction: column; align-items: flex-start; }
.sul-posts__grid--list .sul-posts__stats,
.sul-posts__grid--list .sul-posts__note {
  flex: 0 1 calc(var(--sul-desktop-card-min) - var(--sul-spacing-xl));
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

/* ---- the details panel ---- */
.sul-posts__details { display: flex; flex-direction: column; gap: var(--sul-spacing-base); }
.sul-posts__details-title { margin: 0; font-size: var(--sul-font-lg); text-wrap: balance; }
.sul-posts__caption { margin: 0; color: var(--sul-text-secondary); white-space: pre-line; }
.sul-posts__section {
  margin: var(--sul-spacing-sm) 0 0;
  font-size: var(--sul-card-label-size);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--sul-muted);
}
.sul-posts__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sul-spacing-sm);
  margin: 0;
}
.sul-posts__tile {
  display: flex;
  flex-direction: column-reverse;
  padding: var(--sul-spacing-compact);
  border-radius: var(--sul-radius-base);
  background: var(--sul-background);
  text-align: center;
}
.sul-posts__tile dd { margin: 0; font-size: var(--sul-font-base); font-weight: 700; font-variant-numeric: tabular-nums; }
.sul-posts__tile dt { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-posts__details .sul-posts__note { margin: 0; padding: 0; border: 0; }

.sul-posts__where { display: flex; flex-direction: column; gap: var(--sul-spacing-sm); margin: 0; padding: 0; list-style: none; }
.sul-posts__where-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-spacing-compact);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-base);
}
.sul-posts__where-text { display: flex; flex-direction: column; min-width: 0; }
.sul-posts__where-name { font-weight: 600; }
.sul-posts__where-detail { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-posts__where-detail--failed { color: var(--sul-danger); }
/* One platform's share of the post's numbers: "LIKES 1  COMMENTS 0  REACH 4  SHARES 0". */
.sul-posts__where-stats { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs) var(--sul-spacing-sm); margin: var(--sul-spacing-xs) 0 0; }
.sul-posts__where-stat { display: flex; align-items: baseline; gap: var(--sul-spacing-xs); }
.sul-posts__where-stat dt { font-size: var(--sul-metric-label-size); color: var(--sul-muted); text-transform: uppercase; }
.sul-posts__where-stat dd { margin: 0; font-size: var(--sul-font-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
.sul-posts__where-link { font-size: var(--sul-font-xs); font-weight: 600; color: var(--sul-primary-action); white-space: nowrap; }

.sul-posts__actions { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-sm); }
/* Delete (2026-10-29): red words on the secondary button, and what shows once it was asked for. */
.sul-posts__delete { color: var(--sul-danger); }
/* A platform row's own status and its Delete, stacked at the row's end. */
.sul-posts__where-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sul-spacing-xs); }

/* Delete from one platform: a trash icon (the Posts page's "Where it went" and the console Publishing
   tab's target rows). Muted until hovered or focused, then the danger hue, as the Businesses list's. */
.sul-trash-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--sul-avatar-sm);
  height: var(--sul-avatar-sm);
  padding: 0;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-base);
  background: var(--sul-surface);
  color: var(--sul-muted);
  cursor: pointer;
  vertical-align: middle;
}
.sul-trash-btn svg { width: var(--sul-font-sm); height: var(--sul-font-sm); }
.sul-trash-btn:hover:not(:disabled),
.sul-trash-btn:focus-visible {
  color: var(--sul-danger);
  border-color: color-mix(in srgb, var(--sul-danger) 35%, var(--sul-border));
  background: var(--sul-pastel-danger);
}
.sul-trash-btn:disabled { cursor: default; opacity: var(--sul-opacity-disabled); }
.sul-posts__deleting { align-self: center; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-posts__notice {
  margin: 0 0 var(--sul-spacing-base);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-success-light);
  color: var(--sul-success-dark);
  font-size: var(--sul-font-sm);
}

/* Posts → Scheduled (2026-11-12): posts still to go out, above the published ones, AI-written ones
   approved in QC included. Drawn by Pages/_ScheduledPosts.cshtml and by the island's ScheduledSection. */
.sul-posts-sched {
  margin: 0 0 var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  box-shadow: var(--sul-shadow-sm);
}
.sul-posts-sched__head { padding: var(--sul-card-padding-v) var(--sul-card-padding-h); border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-posts-sched__title { display: flex; align-items: center; gap: var(--sul-spacing-sm); margin: 0; color: var(--sul-text); font-size: var(--sul-font-base); }
.sul-posts-sched__count { padding: 0 var(--sul-spacing-sm); border-radius: var(--sul-radius-pill); background: var(--sul-pastel-info); color: var(--sul-info-dark); font-size: var(--sul-font-xs); }
.sul-posts-sched__lede { margin: var(--sul-spacing-xxs) 0 0; color: var(--sul-muted); font-size: var(--sul-font-sm); }
.sul-posts-sched__list { margin: 0; padding: 0; list-style: none; }
.sul-posts-sched__list > li + li { border-top: var(--sul-card-border) solid var(--sul-border); }
.sul-posts-sched__row {
  display: flex;
  align-items: flex-start;
  gap: var(--sul-spacing-base);
  padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
  color: inherit;
  text-decoration: none;
}
.sul-posts-sched__row:hover { background: var(--sul-background); }
.sul-posts-sched__row:focus-visible { outline: var(--sul-focus); outline-offset: calc(var(--sul-card-border) * -2); }
.sul-posts-sched__thumb {
  flex: none;
  width: calc(var(--sul-spacing-3xl) * 1.75);
  height: calc(var(--sul-spacing-3xl) * 1.75);
  border-radius: var(--sul-radius-base);
  object-fit: cover;
  background: var(--sul-background);
}
.sul-posts-sched__thumb--none { display: grid; place-items: center; color: var(--sul-muted); font-size: var(--sul-font-lg); }
.sul-posts-sched__main { display: grid; gap: var(--sul-spacing-xxs); min-width: 0; }
.sul-posts-sched__when { color: var(--sul-text); font-size: var(--sul-font-sm); font-weight: 600; }
.sul-posts-sched__text { overflow: hidden; color: var(--sul-text-secondary); font-size: var(--sul-font-sm); text-overflow: ellipsis; white-space: nowrap; }
.sul-posts-sched__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-xs) var(--sul-spacing-sm); margin-top: var(--sul-spacing-xxs); font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-posts-sched__plat { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); }
.sul-posts-sched .sul-platform-icon { width: var(--sul-avatar-sm); height: var(--sul-avatar-sm); font-size: var(--sul-font-xs); }
.sul-posts-sched__ai {
  padding: 0 var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  background: color-mix(in srgb, var(--sul-chart-4) 10%, var(--sul-surface));
  color: var(--sul-chart-4);
  font-weight: 600;
}
.sul-posts-sched__note { color: var(--sul-warning-dark); font-size: var(--sul-font-xs); }

@media (max-width: 860px) {
  .sul-posts__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sul-posts__toolbar .sul-sd__search { flex: 1 1 100%; }
  .sul-posts__toolbar .sul-sd__spacer { display: none; }
  .sul-posts__grid--list .sul-posts__thumb { width: calc(var(--sul-avatar-lg) * 2); }
}
@media (prefers-reduced-motion: reduce) {
  .sul-posts__card { transition: none; }
  .sul-posts__card:hover { transform: none; }
}

/* ---------------------------------------------------------------------------
   Console Billing tab (Areas/Admin/Pages/Billing.cshtml): a warning banner, the subscription
   strip, usage beside quota and invoices, then the call log. The usage card and the call log are
   the admin-billing island; its segmented toggles are buttons with aria-pressed.
   --------------------------------------------------------------------------- */
.sul-admin-billing {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-lg);
}
.sul-admin-billing .sul-card { margin: 0; }
.sul-admin-billing .sul-card-header { align-items: center; flex-wrap: wrap; }

.sul-admin-billing__banner {
  display: flex;
  align-items: flex-start;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-warning);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-pastel-warning);
}
.sul-admin-billing__banner-icon {
  flex: none;
  width: var(--sul-spacing-xl);
  height: var(--sul-spacing-xl);
  color: var(--sul-warning-dark);
}
.sul-admin-billing__banner-title { margin: 0; font-weight: 700; color: var(--sul-text); }
.sul-admin-billing__banner-detail { margin: var(--sul-spacing-xxs) 0 0; font-size: var(--sul-font-sm); color: var(--sul-text-secondary); }

.sul-admin-billing__strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
}
/* A US business with a Sulekha listing shows the listing's run as a fifth cell (migration 128). */
.sul-admin-billing__strip--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sul-admin-billing__cell {
  min-width: 0;
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border-left: var(--sul-card-border) solid var(--sul-border);
}
.sul-admin-billing__cell:first-child { border-left: 0; }
.sul-admin-billing__cell dd { margin: 0; }

.sul-admin-billing__label {
  margin: 0 0 var(--sul-spacing-xs);
  font-size: var(--sul-font-micro);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--sul-muted);
}
.sul-admin-billing__value { font-size: var(--sul-font-lg); font-weight: 700; color: var(--sul-text); }
.sul-admin-billing__hint { margin: var(--sul-spacing-xs) 0 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-admin-billing__muted { font-size: var(--sul-font-xs); color: var(--sul-muted); }
/* Extend trial (migration 127): days, reason and the button on one row, wrapping on a phone. */
.sul-admin-billing__extend {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sul-spacing-base);
  margin: var(--sul-spacing-base) 0 0;
  padding-top: var(--sul-spacing-base);
  border-top: var(--sul-card-border) solid var(--sul-border);
}

.sul-admin-billing__extend-reason { flex: 1 1 auto; }

.sul-admin-billing__extend-hint { flex-basis: 100%; }

.sul-admin-billing__extended {
  margin: var(--sul-spacing-base) 0 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-radius: var(--sul-radius-md);
  background: var(--sul-pastel-success);
  font-size: var(--sul-font-sm);
}

.sul-admin-billing__info {
  margin: var(--sul-spacing-xs) 0 0;
  padding-left: var(--sul-spacing-sm);
  border-left: var(--sul-spacing-xxs) solid var(--sul-border);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-admin-billing__meter,
.sul-admin-billing__qbar {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--sul-radius-pill);
  overflow: hidden;
  background: var(--sul-background);
  appearance: none;
}
.sul-admin-billing__meter { height: var(--sul-spacing-xs); margin-top: var(--sul-spacing-sm); }
.sul-admin-billing__qbar { height: var(--sul-spacing-xl); border-radius: var(--sul-radius-base); }
.sul-admin-billing__meter::-webkit-progress-bar,
.sul-admin-billing__qbar::-webkit-progress-bar { background: var(--sul-background); }
.sul-admin-billing__meter--ok::-webkit-progress-value { background: var(--sul-success); }
.sul-admin-billing__meter--ok::-moz-progress-bar      { background: var(--sul-success); }
.sul-admin-billing__meter--warn::-webkit-progress-value { background: var(--sul-warning); }
.sul-admin-billing__meter--warn::-moz-progress-bar      { background: var(--sul-warning); }
.sul-admin-billing__qbar::-webkit-progress-value { background: var(--sul-primary-action); }
.sul-admin-billing__qbar::-moz-progress-bar      { background: var(--sul-primary-action); }

.sul-admin-billing__cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--sul-spacing-lg);
  align-items: start;
}
/* Without the AI cost card (business_billing_cost) the quota and invoice cards take the full width. */
.sul-admin-billing__cols--single { grid-template-columns: minmax(0, 1fr); }
.sul-admin-billing__stack { display: flex; flex-direction: column; gap: var(--sul-spacing-lg); min-width: 0; }

.sul-admin-billing__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sul-spacing-compact);
}
.sul-admin-billing__kpi {
  min-width: 0;
  padding: var(--sul-spacing-base) var(--sul-spacing-base);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-background);
}
.sul-admin-billing__kpi p { margin: 0; }
.sul-admin-billing__kpi .sul-admin-billing__hint { margin-top: var(--sul-spacing-xxs); }
.sul-admin-billing__kpi-value { font-size: var(--sul-font-xl); font-weight: 700; color: var(--sul-text); }
.sul-admin-billing__kpi--flag { background: var(--sul-pastel-warning); }
.sul-admin-billing__kpi--flag .sul-admin-billing__kpi-value { color: var(--sul-warning-dark); }

.sul-admin-billing__table td { vertical-align: middle; }
.sul-admin-billing__table tbody tr:hover td { background: var(--sul-background); }
.sul-admin-billing__row--current td { font-weight: 600; }

.sul-admin-billing__seg {
  display: inline-flex;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-xxs);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-background);
}
.sul-admin-billing__seg-item {
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
  padding: var(--sul-spacing-xs) var(--sul-spacing-compact);
  border-radius: var(--sul-radius-base);
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-muted);
  text-decoration: none;
  white-space: nowrap;
}
.sul-admin-billing__seg-item:hover { color: var(--sul-text); }
.sul-admin-billing__seg-item[aria-pressed="true"] {
  background: var(--sul-surface);
  color: var(--sul-text);
  box-shadow: var(--sul-shadow-sm);
}
.sul-admin-billing__seg-item:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-primary-action); outline-offset: var(--sul-spacing-xxs); }
.sul-admin-billing__toolbar { display: inline-flex; flex-wrap: wrap; gap: var(--sul-spacing-compact); }

.sul-admin-billing__quota { margin: 0 0 var(--sul-spacing-sm); padding: 0; list-style: none; }
.sul-admin-billing__qrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) auto;
  align-items: center;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-spacing-xs) 0;
}

.sul-admin-billing__summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-lg);
  margin: 0;
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}
.sul-admin-billing__summary strong { color: var(--sul-text); }

.sul-admin-billing__when { display: flex; flex-direction: column; }
.sul-admin-billing__link { font-weight: 600; color: var(--sul-primary-action); text-decoration: none; }
.sul-admin-billing__link:hover { text-decoration: underline; }

.sul-admin-billing__pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sul-spacing-compact);
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}
.sul-admin-billing__pager-buttons { display: inline-flex; gap: var(--sul-spacing-xs); }

@media (max-width: 1000px) {
  .sul-admin-billing__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .sul-admin-billing__strip,
  .sul-admin-billing__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sul-admin-billing__cell:nth-child(3) { border-left: 0; }
  .sul-admin-billing__cell:nth-child(n+3) { border-top: var(--sul-card-border) solid var(--sul-border); }
  .sul-admin-billing__strip--five .sul-admin-billing__cell:nth-child(odd) { border-left: 0; }
}

/* ---------------------------------------------------------------------------
   Console Business overview tab (Areas/Admin/Pages/Business.cshtml), after the "Business
   Overview" design (2026-10-20): attention, four tiles, then posts and channels beside details,
   people and links. Every value is a token (rule 1). A status is never colour alone: each dot or
   chip sits beside its words, or carries them for a screen reader.
   --------------------------------------------------------------------------- */
.sul-admin-ov { display: flex; flex-direction: column; gap: var(--sul-spacing-lg); }
.sul-admin-ov__ico { flex: none; width: var(--sul-spacing-base); height: var(--sul-spacing-base); }
.sul-admin-ov__muted { color: var(--sul-muted); }
.sul-admin-ov__bad { color: var(--sul-danger); }
.sul-admin-ov__ok { color: var(--sul-success-dark); }
.sul-admin-ov__warn { color: var(--sul-warning-dark); }
.sul-admin-ov__link { color: var(--sul-primary-action); font-weight: 600; text-decoration: none; }
.sul-admin-ov__link:hover, .sul-admin-ov__link:focus-visible { text-decoration: underline; }
.sul-admin-ov__inline { display: inline-flex; margin: 0; }
.sul-admin-ov__btn { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); white-space: nowrap; text-decoration: none; }
.sul-admin-ov__btn--sm { min-height: var(--sul-avatar-sm); padding: 0 var(--sul-spacing-compact); font-size: var(--sul-font-xs); }

/* The counts on the business tabs, the same on every tab (AdminBusinessBar, 2026-10-22). */
.sul-admin-bizbar__badge { margin-left: var(--sul-spacing-xs); padding: 0 var(--sul-spacing-xs); border-radius: var(--sul-radius-pill); background: var(--sul-danger); color: var(--sul-surface); font-size: var(--sul-font-2xs); font-style: normal; font-weight: 700; line-height: 1.5; }

/* Needs attention: a <details>, open by default, with a danger rule down its left edge. */
.sul-admin-ov__att { background: var(--sul-surface); border: var(--sul-card-border) solid var(--sul-border); border-left: calc(var(--sul-card-border) * 3) solid var(--sul-danger); border-radius: var(--sul-radius-xl); }
.sul-admin-ov__att-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); padding: var(--sul-spacing-compact) var(--sul-spacing-base); cursor: pointer; list-style: none; font-size: var(--sul-font-sm); }
.sul-admin-ov__att-head::-webkit-details-marker { display: none; }
.sul-admin-ov__att-head > .sul-admin-ov__ico { color: var(--sul-danger); }
.sul-admin-ov__att-fold { margin-left: auto; font-size: var(--sul-font-xs); font-weight: 600; color: var(--sul-primary-action); }
.sul-admin-ov__att-fold::after { content: "Details ▾"; }
/* One chip per line in the folded strip (v2); red stops posting, amber will soon. */
.sul-admin-ov__nc { display: inline-flex; align-items: center; gap: var(--sul-spacing-xxs); min-height: var(--sul-avatar-sm); padding: 0 var(--sul-spacing-compact); border: var(--sul-card-border) solid transparent; border-radius: var(--sul-radius-pill); font-size: var(--sul-font-xs); white-space: nowrap; }
.sul-admin-ov__nc:hover { border-color: currentColor; }
.sul-admin-ov__nc--danger { background: var(--sul-pastel-danger); color: var(--sul-danger); }
.sul-admin-ov__nc--warning { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }
.sul-admin-ov__att-item--hl { background: var(--sul-pastel-warning); }
.sul-admin-ov__att[open] .sul-admin-ov__att-fold::after { content: "Hide ▴"; }
.sul-admin-ov__att-list { margin: 0; padding: 0; list-style: none; }
.sul-admin-ov__att-item { display: grid; grid-template-columns: var(--sul-spacing-lg) minmax(0, 1fr) auto; align-items: center; gap: var(--sul-spacing-compact); padding: var(--sul-spacing-sm) var(--sul-spacing-base); border-top: var(--sul-card-border) solid var(--sul-border); font-size: var(--sul-font-sm); }
.sul-admin-ov__att-text { display: flex; flex-direction: column; min-width: 0; }
.sul-admin-ov__att-text strong { font-weight: 600; }
.sul-admin-ov__att-text small { font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-admin-ov__dot { display: inline-block; flex: none; width: var(--sul-spacing-sm); height: var(--sul-spacing-sm); border-radius: var(--sul-radius-pill); background: var(--sul-placeholder); }
.sul-admin-ov__att-item .sul-admin-ov__dot { justify-self: center; }
.sul-admin-ov__dot--danger, .sul-admin-ov__dot--failed { background: var(--sul-danger); }
.sul-admin-ov__dot--warning { background: var(--sul-warning); }
.sul-admin-ov__dot--published { background: var(--sul-success); }
.sul-admin-ov__dot--scheduled { background: var(--sul-info); }

/* At a glance: five tiles (v2). */
.sul-admin-ov__glance { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sul-spacing-compact); margin: 0; }
.sul-admin-ov__tile { display: flex; flex-direction: column; gap: var(--sul-spacing-xxs); padding: var(--sul-spacing-compact) var(--sul-spacing-base); background: var(--sul-surface); border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-xl); }
.sul-admin-ov__tile dt { font-size: var(--sul-font-2xs); font-weight: 700; text-transform: uppercase; color: var(--sul-placeholder); }
.sul-admin-ov__tile dd { margin: 0; font-size: var(--sul-font-xs); }
.sul-admin-ov__tile .sul-admin-ov__tile-value { font-size: var(--sul-font-lg); font-weight: 700; color: var(--sul-text); }
.sul-admin-ov__tile-value span { font-weight: 600; }
.sul-admin-ov__tile--bad { border-color: color-mix(in srgb, var(--sul-danger) 35%, var(--sul-border)); background: color-mix(in srgb, var(--sul-pastel-danger) 40%, var(--sul-surface)); }
.sul-admin-ov__tile--bad .sul-admin-ov__tile-value { color: var(--sul-danger); }
.sul-admin-ov__tile--warn { border-color: color-mix(in srgb, var(--sul-warning) 45%, var(--sul-border)); background: color-mix(in srgb, var(--sul-pastel-warning) 40%, var(--sul-surface)); }
.sul-admin-ov__tile--warn .sul-admin-ov__tile-value { color: var(--sul-warning-dark); }
.sul-admin-ov__tile .sul-admin-ov__tile-value--none { color: var(--sul-placeholder); }
.sul-admin-ov__tile .sul-admin-ov__tile-value--success { color: var(--sul-success-dark); }
.sul-admin-ov__tile .sul-admin-ov__tile-value--warning { color: var(--sul-warning-dark); }
.sul-admin-ov__tile .sul-admin-ov__tile-value--danger { color: var(--sul-danger); }
/* A form's submit that reads as the tiles' text link (it opens Operate, so it has to POST). */
.sul-admin-ov__linkbtn { padding: 0; border: 0; background: none; font: inherit; font-size: var(--sul-font-xs); font-weight: 600; color: var(--sul-primary-action); cursor: pointer; }
.sul-admin-ov__linkbtn:hover, .sul-admin-ov__linkbtn:focus-visible { text-decoration: underline; }
.sul-admin-ov__tile .sul-admin-ov__link { margin-left: var(--sul-spacing-xs); }
.sul-admin-ov__steps { display: flex; gap: var(--sul-spacing-xxs); margin: var(--sul-spacing-xs) 0 var(--sul-spacing-xxs); }
.sul-admin-ov__steps i { flex: 1; height: var(--sul-spacing-xs); border-radius: var(--sul-radius-xs); background: var(--sul-border); }
.sul-admin-ov__steps .sul-admin-ov__step--done { background: var(--sul-success); }

/* The two columns: main, and a narrower aside. */
.sul-admin-ov__grid { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--sul-spacing-3xl) * 7); gap: var(--sul-spacing-lg); align-items: start; }
.sul-admin-ov__col { display: flex; flex-direction: column; gap: var(--sul-spacing-lg); min-width: 0; }
.sul-admin-ov__card { background: var(--sul-surface); border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-xl); overflow: hidden; }
.sul-admin-ov__card-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); padding: var(--sul-spacing-compact) var(--sul-spacing-base); border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-admin-ov__card-head h2 { margin: 0; font-size: var(--sul-font-sm); font-weight: 700; color: var(--sul-text); }
.sul-admin-ov__card-head > small { font-size: var(--sul-font-xs); color: var(--sul-placeholder); }
.sul-admin-ov__card-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); margin-left: auto; font-size: var(--sul-font-xs); }
.sul-admin-ov__card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); padding: var(--sul-spacing-compact) var(--sul-spacing-base); background: var(--sul-background); font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-admin-ov__card-foot .sul-admin-ov__link { margin-left: auto; }
.sul-admin-ov__empty { margin: 0; padding: var(--sul-spacing-xl) var(--sul-spacing-base); text-align: center; font-size: var(--sul-font-sm); color: var(--sul-muted); }
.sul-admin-ov__note { display: flex; align-items: flex-start; gap: var(--sul-spacing-xs); margin: 0; padding: var(--sul-spacing-compact) var(--sul-spacing-base); background: var(--sul-background); font-size: var(--sul-font-xs); color: var(--sul-muted); }

/* Posts: a period switch, four filters with their counts, then the rows. */
.sul-admin-ov__ranges { display: inline-flex; border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-base); overflow: hidden; }
.sul-admin-ov__ranges a { padding: var(--sul-spacing-xxs) var(--sul-spacing-sm); color: var(--sul-muted); text-decoration: none; white-space: nowrap; }
.sul-admin-ov__ranges a + a { border-left: var(--sul-card-border) solid var(--sul-border); }
.sul-admin-ov__ranges a[aria-current] { background: var(--sul-pastel-primary); color: var(--sul-text); font-weight: 600; }
/* The filters are pills with their counts (v2). */
.sul-admin-ov__buckets { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); padding: var(--sul-spacing-compact) var(--sul-spacing-base); border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-admin-ov__bucket { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); min-height: var(--sul-avatar-sm); padding: 0 var(--sul-spacing-compact); border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-pill); background: var(--sul-surface); font-size: var(--sul-font-xs); color: var(--sul-muted); text-decoration: none; }
.sul-admin-ov__bucket:hover { border-color: var(--sul-primary-action); }
.sul-admin-ov__bucket--on { border-color: var(--sul-primary-action); background: var(--sul-pastel-primary); color: var(--sul-primary-action-strong); }
.sul-admin-ov__bucket b { color: var(--sul-text); font-variant-numeric: tabular-nums; }
.sul-admin-ov__bucket b.sul-admin-ov__bad { color: var(--sul-danger); }
.sul-admin-ov__posts { margin: 0; padding: 0; list-style: none; }
.sul-admin-ov__post { display: grid; grid-template-columns: calc(var(--sul-avatar-lg) * 1.3) minmax(0, 1fr) auto; align-items: center; gap: var(--sul-spacing-compact); padding: var(--sul-spacing-compact) var(--sul-spacing-base); border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-admin-ov__post:hover { background: var(--sul-background); }
.sul-admin-ov__thumb { display: block; width: calc(var(--sul-avatar-lg) * 1.3); height: calc(var(--sul-avatar-lg) * 1.3); border-radius: var(--sul-radius-lg); object-fit: cover; background: var(--sul-background); }
.sul-admin-ov__thumb--text { display: grid; place-items: center; color: var(--sul-muted); }
.sul-admin-ov__thumb--text .sul-admin-ov__ico { width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); }
.sul-admin-ov__post-body { min-width: 0; }
.sul-admin-ov__caption { margin: 0; font-size: var(--sul-font-sm); color: var(--sul-text); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sul-admin-ov__post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); margin: var(--sul-spacing-xs) 0 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-admin-ov__chip { display: inline-flex; align-items: center; gap: var(--sul-spacing-xxs); padding: 0 var(--sul-spacing-sm) 0 var(--sul-spacing-xxs); border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-pill); font-size: var(--sul-font-2xs); font-weight: 700; }
.sul-admin-ov__chip .sul-platform-icon { width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); }
.sul-admin-ov__chip--ok { color: var(--sul-success-dark); }
.sul-admin-ov__chip--bad { color: var(--sul-danger); border-color: color-mix(in srgb, var(--sul-danger) 35%, var(--sul-border)); background: var(--sul-pastel-danger); }
.sul-admin-ov__chip--sch { color: var(--sul-info-dark); }
.sul-admin-ov__chip--drf { color: var(--sul-muted); }
/* Why a post failed (v2): headline, whose fix, the fix, then the stored words folded away. */
.sul-admin-ov__err { margin-top: var(--sul-spacing-sm); padding: var(--sul-spacing-sm) var(--sul-spacing-compact); border: var(--sul-card-border) solid color-mix(in srgb, var(--sul-danger) 35%, var(--sul-border)); border-radius: var(--sul-radius-lg); background: var(--sul-pastel-danger); font-size: var(--sul-font-xs); }
.sul-admin-ov__err-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-xs); margin: 0; }
.sul-admin-ov__err-head b { color: var(--sul-danger); }
.sul-admin-ov__err-fix { margin: var(--sul-spacing-xxs) 0 0; color: var(--sul-text); }
.sul-admin-ov__who-fix { padding: 0 var(--sul-spacing-sm); border-radius: var(--sul-radius-pill); font-size: var(--sul-font-2xs); font-weight: 700; }
.sul-admin-ov__who-fix--us { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }
.sul-admin-ov__who-fix--them { background: var(--sul-pastel-info); color: var(--sul-info-dark); }
.sul-admin-ov__err-raw { margin-top: var(--sul-spacing-xs); }
.sul-admin-ov__err-raw summary { cursor: pointer; font-size: var(--sul-font-2xs); color: var(--sul-muted); }
.sul-admin-ov__err-raw code { display: block; margin-top: var(--sul-spacing-xs); padding: var(--sul-spacing-xs) var(--sul-spacing-sm); border-radius: var(--sul-radius-base); background: var(--sul-surface); font-size: var(--sul-font-2xs); color: var(--sul-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.sul-admin-ov__post-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sul-spacing-xs); }
.sul-admin-ov__state { font-size: var(--sul-font-xs); font-weight: 700; color: var(--sul-muted); white-space: nowrap; }
.sul-admin-ov__state--published { color: var(--sul-success-dark); }
.sul-admin-ov__state--scheduled { color: var(--sul-info-dark); }
.sul-admin-ov__state--failed { color: var(--sul-danger); }

/* Channels (v2.2): a grid of tiles — logo and account, why it stands as it does, then the pill,
   when it was connected and the way to fix it. A problem tile carries its tone down its left edge. */
.sul-admin-ov__chans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sul-spacing-compact); margin: 0; padding: var(--sul-spacing-compact) var(--sul-spacing-base); list-style: none; }
.sul-admin-ov__chans .sul-admin-ov__chan { display: flex; flex-direction: column; gap: var(--sul-spacing-sm); min-width: 0; padding: var(--sul-spacing-compact); border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-xl); background: var(--sul-surface); }
.sul-admin-ov__chans .sul-admin-ov__chan--danger { border-color: color-mix(in srgb, var(--sul-danger) 35%, var(--sul-border)); background: color-mix(in srgb, var(--sul-pastel-danger) 40%, var(--sul-surface)); box-shadow: inset calc(var(--sul-card-border) * 3) 0 0 var(--sul-danger); }
.sul-admin-ov__chans .sul-admin-ov__chan--warning { border-color: color-mix(in srgb, var(--sul-warning) 45%, var(--sul-border)); background: color-mix(in srgb, var(--sul-pastel-warning) 40%, var(--sul-surface)); box-shadow: inset calc(var(--sul-card-border) * 3) 0 0 var(--sul-warning); }
.sul-admin-ov__chan-head { display: flex; align-items: center; gap: var(--sul-spacing-compact); min-width: 0; }
.sul-admin-ov__chan-head .sul-admin-ov__chan-logo { flex: none; }
.sul-admin-ov__chan-head .sul-admin-ov__chan-body { flex: 1; }
.sul-admin-ov__chan-line { margin: 0; overflow: hidden; font-size: var(--sul-font-xs); color: var(--sul-muted); text-overflow: ellipsis; white-space: nowrap; }
.sul-admin-ov__chan-body strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sul-admin-ov__chan-why { min-height: calc(var(--sul-font-xs) * 2.7); margin: 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-admin-ov__chan-why--danger { color: var(--sul-danger); }
.sul-admin-ov__chan-why--warning { color: var(--sul-warning-dark); }
.sul-admin-ov__chan-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-xs); margin-top: auto; padding-top: var(--sul-spacing-sm); border-top: var(--sul-card-border) solid var(--sul-border); font-size: var(--sul-font-2xs); color: var(--sul-placeholder); }
.sul-admin-ov__chan-foot .sul-button { margin-left: auto; }
.sul-admin-ov__chan-logo .sul-platform-icon { width: var(--sul-avatar-md); height: var(--sul-avatar-md); }
.sul-admin-ov__chan-body { min-width: 0; font-size: var(--sul-font-sm); }
.sul-admin-ov__chan-body strong { font-weight: 600; }
.sul-admin-ov__chan-body strong a { color: inherit; text-decoration: none; }
.sul-admin-ov__chan-body strong a:hover, .sul-admin-ov__chan-body strong a:focus-visible { color: var(--sul-primary-action); text-decoration: underline; }
.sul-admin-ov__sub { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); margin: var(--sul-spacing-xxs) 0 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-admin-ov__sub span + span::before { content: "·"; margin-right: var(--sul-spacing-xs); color: var(--sul-placeholder); }

/* Ids and URLs in the details and links cards. */
.sul-admin-ov__id, .sul-admin-ov__url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sul-admin-ov__url.sul-admin-ov__link { font-weight: 500; }
.sul-admin-ov__copy { flex: none; padding: 0 var(--sul-spacing-xxs); border: 0; background: none; font: inherit; font-size: var(--sul-font-2xs); color: var(--sul-placeholder); cursor: pointer; }
.sul-admin-ov__copy:hover, .sul-admin-ov__copy:focus-visible { color: var(--sul-primary-action); }
.sul-admin-ov__hints { display: flex; flex-direction: column; gap: var(--sul-spacing-xs); min-width: 0; margin: 0; padding: 0; list-style: none; }
.sul-admin-ov__hints li { display: flex; align-items: center; gap: var(--sul-spacing-xs); min-width: 0; }
.sul-admin-ov__hints .sul-platform-icon { flex: none; width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); }

/* Business details (Overview UI fix, 2026-10-27): City across, then the ids two to a row. */
.sul-admin-ov__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.sul-admin-ov__fact { display: flex; flex-direction: column; gap: var(--sul-spacing-xxs); min-width: 0; padding: var(--sul-spacing-compact) var(--sul-spacing-base); border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-admin-ov__fact--wide { grid-column: 1 / -1; }
.sul-admin-ov__fact:not(.sul-admin-ov__fact--wide):nth-child(even) { border-right: var(--sul-card-border) solid var(--sul-border); }
.sul-admin-ov__fact:not(.sul-admin-ov__fact--wide):nth-last-child(-n+2) { border-bottom: 0; }
.sul-admin-ov__fact dt { font-size: var(--sul-font-2xs); font-weight: 700; text-transform: uppercase; color: var(--sul-placeholder); }
.sul-admin-ov__fact dd { display: flex; align-items: center; gap: var(--sul-spacing-xs); min-width: 0; margin: 0; font-size: var(--sul-font-sm); font-weight: 600; color: var(--sul-text); }

/* Links, grouped, one row each: a letter tile, the label, the value. Tiles are pastel with dark
   text, so every letter keeps AA contrast in both themes. */
.sul-admin-ov__lgroup { margin: 0; padding: var(--sul-spacing-xs) var(--sul-spacing-base); background: var(--sul-background); border-bottom: var(--sul-card-border) solid var(--sul-border); font-size: var(--sul-font-2xs); font-weight: 700; text-transform: uppercase; color: var(--sul-placeholder); }
.sul-admin-ov__links { margin: 0; padding: 0; list-style: none; }
.sul-admin-ov__lrow { display: grid; grid-template-columns: var(--sul-spacing-2xl) minmax(0, 1fr); align-items: center; gap: var(--sul-spacing-compact); padding: var(--sul-spacing-sm) var(--sul-spacing-base); border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-admin-ov__links:last-child .sul-admin-ov__lrow:last-child { border-bottom: 0; }
.sul-admin-ov__ltile { display: grid; place-items: center; width: var(--sul-spacing-2xl); height: var(--sul-spacing-2xl); border-radius: var(--sul-radius-base); font-size: var(--sul-font-xs); font-weight: 700; }
.sul-admin-ov__ltile--sulekha { background: var(--sul-pastel-primary); color: var(--sul-primary-action-strong); }
.sul-admin-ov__ltile--web { background: var(--sul-pastel-info); color: var(--sul-info-dark); }
.sul-admin-ov__ltile--hotfrog { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }
.sul-admin-ov__ltile--bing { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-admin-ov__ltile--mappls { background: var(--sul-pastel-danger); color: var(--sul-danger); }
.sul-admin-ov__ltile--none { border: var(--sul-card-border) dashed var(--sul-border); color: var(--sul-placeholder); }
.sul-admin-ov__lbody { display: flex; flex-direction: column; gap: var(--sul-spacing-xxs); min-width: 0; font-size: var(--sul-font-sm); }
.sul-admin-ov__lbody > small { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-admin-ov__lval-row { display: flex; align-items: center; gap: var(--sul-spacing-xs); min-width: 0; }
.sul-admin-ov__lval { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sul-text); text-decoration: none; }
.sul-admin-ov__lval b { font-weight: 600; }
.sul-admin-ov__lval span:not(.sul-visually-hidden) { color: var(--sul-muted); }
a.sul-admin-ov__lval:hover, a.sul-admin-ov__lval:focus-visible { text-decoration: underline; }
.sul-admin-ov__lgo { flex: none; margin-left: auto; color: var(--sul-placeholder); }
.sul-admin-ov__lgo .sul-admin-ov__ico { width: var(--sul-spacing-base); height: var(--sul-spacing-base); }
.sul-admin-ov__lval-row .sul-admin-ov__id { font-weight: 600; }

/* Posting targets (v2.6): a tile per target, two to a row, red when a week is overdue. */
.sul-admin-ov__targets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sul-spacing-compact); margin: 0; padding: var(--sul-spacing-compact) var(--sul-spacing-base); list-style: none; }
.sul-admin-ov__target { display: flex; flex-direction: column; gap: var(--sul-spacing-xs); min-width: 0; padding: var(--sul-spacing-compact); border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-lg); }
.sul-admin-ov__target--bad { border-color: color-mix(in srgb, var(--sul-danger) 35%, var(--sul-border)); background: color-mix(in srgb, var(--sul-pastel-danger) 40%, var(--sul-surface)); }
.sul-admin-ov__target-head { display: flex; align-items: center; gap: var(--sul-spacing-xs); min-width: 0; font-size: var(--sul-font-sm); font-weight: 600; }
.sul-admin-ov__target-head .sul-platform-icon { flex: none; width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); }
.sul-admin-ov__target-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sul-admin-ov__target-pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.sul-admin-ov__target-pct--hi { color: var(--sul-success-dark); }
.sul-admin-ov__target-pct--mid { color: var(--sul-warning-dark); }
.sul-admin-ov__target-pct--lo { color: var(--sul-danger); }
.sul-admin-ov__target-count { flex: none; font-size: var(--sul-font-xs); font-weight: 700; color: var(--sul-text); font-variant-numeric: tabular-nums; }
.sul-admin-ov__target--bad .sul-admin-ov__target-count { color: var(--sul-danger); }
.sul-admin-ov__target-bar { display: block; width: 100%; height: var(--sul-spacing-xs); border: 0; border-radius: var(--sul-radius-pill); overflow: hidden; background: var(--sul-background); appearance: none; }
.sul-admin-ov__target-bar::-webkit-progress-bar { background: var(--sul-background); }
.sul-admin-ov__target-bar::-webkit-progress-value { background: var(--sul-success); }
.sul-admin-ov__target-bar::-moz-progress-bar { background: var(--sul-success); }
.sul-admin-ov__target--bad .sul-admin-ov__target-bar::-webkit-progress-value { background: var(--sul-danger); }
.sul-admin-ov__target--bad .sul-admin-ov__target-bar::-moz-progress-bar { background: var(--sul-danger); }
.sul-admin-ov__target .sul-admin-ov__sub { margin: 0; }

/* The About card (v2.6): Details, People and Links as tabs, sticky beside the main column. The
   tab strip is drawn by sul-admin-overview.js; without it the panes stack under their titles. */
.sul-admin-ov__about { position: sticky; top: var(--sul-spacing-lg); }
.sul-admin-ov__about-card { display: flex; flex-direction: column; max-height: calc(100vh - var(--sul-spacing-lg) * 2); }
.sul-admin-ov__atabs { display: flex; gap: var(--sul-spacing-xxs); padding: 0 var(--sul-spacing-sm); border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-admin-ov__atabs[hidden] { display: none; }
.sul-admin-ov__atabs button { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); margin-bottom: calc(var(--sul-card-border) * -1); padding: var(--sul-spacing-compact) var(--sul-spacing-sm); border: 0; border-bottom: calc(var(--sul-card-border) * 2) solid transparent; background: none; font: inherit; font-size: var(--sul-font-sm); color: var(--sul-muted); cursor: pointer; }
.sul-admin-ov__atabs button:hover { color: var(--sul-text); }
.sul-admin-ov__atabs button[aria-selected="true"] { border-bottom-color: var(--sul-primary-action); color: var(--sul-primary-action-strong); font-weight: 600; }
.sul-admin-ov__atabs em { padding: 0 var(--sul-spacing-xs); border-radius: var(--sul-radius-pill); background: var(--sul-background); font-size: var(--sul-font-2xs); font-style: normal; color: var(--sul-muted); font-variant-numeric: tabular-nums; }
.sul-admin-ov__atabs .sul-admin-ov__acount--warn { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }
.sul-admin-ov__abody { flex: 1; min-height: 0; overflow: auto; }
.sul-admin-ov__apane[hidden] { display: none; }
.sul-admin-ov__apane + .sul-admin-ov__apane { border-top: var(--sul-card-border) solid var(--sul-border); }
.sul-admin-ov__apane-title { margin: 0; padding: var(--sul-spacing-compact) var(--sul-spacing-base); border-bottom: var(--sul-card-border) solid var(--sul-border); font-size: var(--sul-font-sm); font-weight: 700; color: var(--sul-text); }
.sul-admin-ov__apane-title small { font-size: var(--sul-font-xs); font-weight: 400; color: var(--sul-placeholder); }
.sul-admin-ov__about--tabbed .sul-admin-ov__apane-title { display: none; }
.sul-admin-ov__about--tabbed .sul-admin-ov__apane + .sul-admin-ov__apane { border-top: 0; }
.sul-admin-ov__afoot > [hidden] { display: none; }
.sul-admin-ov__afoot-end { margin-left: auto; }
.sul-admin-ov__kebab { display: grid; place-items: center; width: var(--sul-avatar-sm); height: var(--sul-avatar-sm); border-radius: var(--sul-radius-base); font-size: var(--sul-font-base); color: var(--sul-placeholder); text-decoration: none; }
.sul-admin-ov__kebab:hover, .sul-admin-ov__kebab:focus-visible { background: var(--sul-background); color: var(--sul-text); }
.sul-admin-ov__pmore { display: block; width: 100%; padding: var(--sul-spacing-sm) var(--sul-spacing-base); border: 0; border-top: var(--sul-card-border) solid var(--sul-border); background: none; font: inherit; font-size: var(--sul-font-xs); font-weight: 600; text-align: left; color: var(--sul-primary-action); cursor: pointer; }
.sul-admin-ov__pmore[hidden], .sul-admin-ov__person[hidden] { display: none; }


/* A business's Plan & targets tab (migration 158), after the plan-targets design. Console tokens. */
.sul-apt { max-width: var(--sul-desktop-wide-max); margin: 0 auto; padding: var(--sul-spacing-lg) var(--sul-spacing-xl) var(--sul-console-page-bottom); color: var(--sul-console-fg); }
.sul-apt__card { margin-bottom: var(--sul-spacing-base); overflow: hidden; background: var(--sul-console-surface); border: var(--sul-card-border) solid var(--sul-console-line); border-radius: var(--sul-console-radius-panel); }
.sul-apt__muted { color: var(--sul-console-fg-2); }
.sul-apt__note { margin: var(--sul-spacing-compact) var(--sul-spacing-lg) 0; font-size: var(--sul-console-text-13); color: var(--sul-console-fg-2); }
.sul-apt__card > .sul-apt__note:last-child { margin-bottom: var(--sul-spacing-base); }
.sul-apt__sm { min-height: var(--sul-avatar-sm); padding: 0 var(--sul-spacing-compact); font-size: var(--sul-font-xs); }
.sul-apt__push { margin-left: auto; }

/* Plan and trial */
.sul-apt__plan { display: grid; grid-template-columns: 1.1fr 1.6fr auto; gap: var(--sul-spacing-xl); align-items: center; padding: var(--sul-spacing-base) var(--sul-spacing-lg); }
.sul-apt__plan small { display: block; font-size: var(--sul-font-xs); }
.sul-apt__planname { display: flex; align-items: center; gap: var(--sul-spacing-sm); font-size: var(--sul-font-2xl); font-weight: 700; }
.sul-apt__timeline { font-size: var(--sul-font-xs); color: var(--sul-console-fg-2); }
.sul-apt__timeline b { color: var(--sul-console-fg); }
.sul-apt__split { display: flex; justify-content: space-between; gap: var(--sul-spacing-sm); }
.sul-apt__trialbar { display: block; width: 100%; height: var(--sul-spacing-sm); margin: var(--sul-spacing-xs) 0; border: 0; border-radius: var(--sul-radius-sm); overflow: hidden; background: var(--sul-console-line-2); appearance: none; }
.sul-apt__trialbar::-webkit-progress-bar { background: var(--sul-console-line-2); }
.sul-apt__trialbar::-webkit-progress-value { background: var(--sul-primary); }
.sul-apt__trialbar::-moz-progress-bar { background: var(--sul-primary); }
.sul-apt__acts { display: flex; gap: var(--sul-spacing-sm); }
.sul-apt__owner { display: flex; align-items: center; gap: var(--sul-spacing-sm); padding: var(--sul-spacing-sm) var(--sul-spacing-lg); background: var(--sul-console-sunk); border-top: var(--sul-card-border) solid var(--sul-console-line-2); font-size: var(--sul-console-text-13); color: var(--sul-console-fg-2); }
.sul-apt__pill { display: inline-flex; align-items: center; padding: var(--sul-spacing-xxs) var(--sul-spacing-sm); border-radius: var(--sul-radius-pill); font-size: var(--sul-font-xs); font-weight: 600; white-space: nowrap; background: var(--sul-console-line-2); color: var(--sul-console-fg-2); }
.sul-apt__pill--success { background: var(--sul-console-ok-soft); color: var(--sul-console-ok); }
.sul-apt__pill--warning { background: var(--sul-console-warn-soft); color: var(--sul-console-warn); }
.sul-apt__pill--danger { background: var(--sul-console-crit-soft); color: var(--sul-console-crit); }

/* Card header, the info tip */
.sul-apt__ch { display: flex; align-items: center; gap: var(--sul-spacing-compact); padding: var(--sul-spacing-base) var(--sul-spacing-lg); border-bottom: var(--sul-card-border) solid var(--sul-console-line-2); }
.sul-apt__ch h2 { margin: 0; font-size: var(--sul-console-text-15); }
.sul-apt__ch p { margin: var(--sul-spacing-xxs) 0 0; font-size: var(--sul-console-text-13); color: var(--sul-console-fg-2); }
.sul-apt__how { margin-left: auto; white-space: nowrap; }
.sul-apt__info { position: relative; display: inline-grid; place-items: center; width: var(--sul-spacing-base); height: var(--sul-spacing-base); margin-left: var(--sul-spacing-xxs); border: var(--sul-card-border) solid var(--sul-console-line); border-radius: var(--sul-radius-pill); font-size: var(--sul-font-micro); font-weight: 600; color: var(--sul-console-fg-3); cursor: help; text-transform: none; vertical-align: middle; }
.sul-apt__tip { display: none; position: absolute; top: calc(100% + var(--sul-spacing-xs)); right: 0; z-index: 5; width: var(--sul-console-tip-width); padding: var(--sul-spacing-sm) var(--sul-spacing-compact); border-radius: var(--sul-radius-base); background: var(--sul-console-fg); color: var(--sul-console-surface); font-size: var(--sul-font-xs); font-weight: 400; line-height: 1.45; text-align: left; white-space: normal; box-shadow: var(--sul-console-shadow-toast); }
.sul-apt__info:hover .sul-apt__tip, .sul-apt__info:focus-visible .sul-apt__tip { display: block; }

/* The alert when a target cannot fit its allowance */
.sul-apt__alert { display: flex; align-items: center; gap: var(--sul-spacing-compact); margin: var(--sul-spacing-compact) var(--sul-spacing-lg) 0; padding: var(--sul-spacing-compact); border-radius: var(--sul-radius-base); background: var(--sul-console-crit-soft); color: var(--sul-console-crit); font-size: var(--sul-console-text-13); }
.sul-apt__alert .sul-button { margin-left: auto; flex: none; }

/* Limits and targets table */
.sul-apt__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sul-apt__col-pl { width: 28%; }
.sul-apt__col-t, .sul-apt__col-a { width: 30%; }
.sul-apt__col-ac { width: 12%; }
.sul-apt__table th { padding: var(--sul-spacing-compact) var(--sul-spacing-lg) var(--sul-spacing-sm); border-bottom: var(--sul-card-border) solid var(--sul-console-line); font-size: var(--sul-font-2xs); font-weight: 700; letter-spacing: var(--sul-console-label-tracking); text-align: left; text-transform: uppercase; color: var(--sul-console-fg-3); }
.sul-apt__table td { padding: var(--sul-spacing-base) var(--sul-spacing-lg); border-bottom: var(--sul-card-border) solid var(--sul-console-line-2); vertical-align: top; }
.sul-apt__table tr:last-child td { border-bottom: 0; }
.sul-apt__platform { display: flex; align-items: center; gap: var(--sul-spacing-compact); }
.sul-apt__platform b { display: block; font-weight: 600; }
.sul-apt__platform small { font-size: var(--sul-font-xs); color: var(--sul-console-fg-3); }
.sul-apt__big { font-size: var(--sul-font-lg); font-weight: 700; font-variant-numeric: tabular-nums; }
.sul-apt__big > span { font-size: var(--sul-console-text-13); font-weight: 400; color: var(--sul-console-fg-2); }
.sul-apt__big > .sul-apt__ovr { margin-left: var(--sul-spacing-xs); padding: 0 var(--sul-spacing-sm); border-radius: var(--sul-radius-pill); background: var(--sul-pastel-info); color: var(--sul-info-dark); font-size: var(--sul-font-2xs); font-weight: 700; vertical-align: middle; }
.sul-apt__bar { display: block; width: 100%; height: var(--sul-spacing-xs); margin: var(--sul-spacing-xs) 0; border: 0; border-radius: var(--sul-radius-sm); overflow: hidden; background: var(--sul-console-line-2); appearance: none; }
.sul-apt__bar::-webkit-progress-bar { background: var(--sul-console-line-2); }
.sul-apt__bar--target::-webkit-progress-value { background: var(--sul-info); }
.sul-apt__bar--target::-moz-progress-bar { background: var(--sul-info); }
.sul-apt__bar--ok::-webkit-progress-value { background: var(--sul-console-ok); }
.sul-apt__bar--ok::-moz-progress-bar { background: var(--sul-console-ok); }
.sul-apt__bar--warn::-webkit-progress-value { background: var(--sul-warning); }
.sul-apt__bar--warn::-moz-progress-bar { background: var(--sul-warning); }
.sul-apt__bar--bad::-webkit-progress-value { background: var(--sul-console-crit); }
.sul-apt__bar--bad::-moz-progress-bar { background: var(--sul-console-crit); }
.sul-apt__sub { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); font-size: var(--sul-font-xs); color: var(--sul-console-fg-2); }
.sul-apt__sub span + span::before { content: "·"; margin-right: var(--sul-spacing-xs); color: var(--sul-console-fg-3); }
.sul-apt__flag { color: var(--sul-console-crit); font-weight: 600; }
.sul-apt__ac { text-align: right; }

/* The row being edited */
.sul-apt__editrow td { background: var(--sul-console-warn-soft); }
.sul-apt__ef { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sul-spacing-base); align-items: start; }
.sul-apt__f--wide { grid-column: 1 / -1; }
.sul-apt__efacts { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: var(--sul-spacing-sm); }
.sul-apt__label { display: block; margin-bottom: var(--sul-spacing-xs); font-size: var(--sul-font-xs); font-weight: 600; }
.sul-apt__label .sul-apt__muted { font-weight: 400; color: var(--sul-console-fg-3); }
.sul-apt__h { margin-top: var(--sul-spacing-xs); font-size: var(--sul-font-xs); color: var(--sul-console-fg-2); }
.sul-apt__h--err { color: var(--sul-console-crit); }
.sul-apt__reset { padding: 0; border: 0; background: none; color: var(--sul-primary-action); font: inherit; font-weight: 600; cursor: pointer; }
.sul-apt__num { display: inline-flex; align-items: center; height: var(--sul-console-control-height); overflow: hidden; background: var(--sul-console-surface); border: var(--sul-card-border) solid var(--sul-console-line); border-radius: var(--sul-radius-base); }
.sul-apt__num:focus-within { border-color: var(--sul-primary-action); box-shadow: 0 0 0 var(--sul-spacing-xxs) var(--sul-console-accent-soft); }
.sul-apt__num button { width: var(--sul-avatar-sm); height: 100%; border: 0; background: none; color: var(--sul-console-fg-2); font-size: var(--sul-font-base); cursor: pointer; }
.sul-apt__num button:hover { background: var(--sul-console-line-2); }
.sul-apt__num input { width: calc(var(--sul-spacing-3xl) * 1.5); border: 0; outline: none; background: none; font: inherit; font-size: var(--sul-console-text-15); font-weight: 600; text-align: center; }
.sul-apt__num span { padding-right: var(--sul-spacing-compact); font-size: var(--sul-font-xs); color: var(--sul-console-fg-3); white-space: nowrap; }

/* Changes */
.sul-apt__hi { display: grid; grid-template-columns: calc(var(--sul-spacing-3xl) * 3.5) 1fr; gap: var(--sul-spacing-compact); padding: var(--sul-spacing-sm) var(--sul-spacing-lg); border-bottom: var(--sul-card-border) solid var(--sul-console-line-2); font-size: var(--sul-console-text-13); }
.sul-apt__hi:last-child { border-bottom: 0; }
.sul-apt__hi > span { color: var(--sul-console-fg-3); }
.sul-apt__hi b { font-weight: 600; }
.sul-apt__hi em { font-style: normal; color: var(--sul-console-fg-2); }

/* Extend trial dialog */
.sul-apt__presets { display: flex; gap: var(--sul-spacing-xs); margin-bottom: var(--sul-spacing-compact); }
.sul-apt__presets button { flex: 1; min-height: var(--sul-console-control-height); border: var(--sul-card-border) solid var(--sul-console-line); border-radius: var(--sul-radius-base); background: var(--sul-console-surface); font: inherit; font-weight: 600; cursor: pointer; }
.sul-apt__presets .sul-apt__preset--on { border-color: var(--sul-primary-action); background: var(--sul-console-accent-soft); color: var(--sul-primary-action-strong); }
.sul-apt__custom { display: flex; align-items: center; gap: var(--sul-spacing-sm); margin-bottom: var(--sul-spacing-compact); font-size: var(--sul-font-xs); }
.sul-apt__preview { display: flex; align-items: center; justify-content: space-between; gap: var(--sul-spacing-compact); margin: var(--sul-spacing-compact) 0; padding: var(--sul-spacing-compact); border: var(--sul-card-border) solid var(--sul-console-line-2); border-radius: var(--sul-radius-base); background: var(--sul-console-sunk); }
.sul-apt__preview s { color: var(--sul-console-fg-3); }
.sul-apt__preview b { color: var(--sul-console-ok); }
.sul-apt__textarea { width: 100%; min-height: calc(var(--sul-spacing-3xl) * 1.8); padding: var(--sul-spacing-sm) var(--sul-spacing-compact); border: var(--sul-card-border) solid var(--sul-console-line); border-radius: var(--sul-radius-base); font: inherit; resize: vertical; outline: none; }
.sul-apt__textarea:focus { border-color: var(--sul-primary-action); box-shadow: 0 0 0 var(--sul-spacing-xxs) var(--sul-console-accent-soft); }

/* Toast */
.sul-apt__toast { position: fixed; left: 50%; bottom: var(--sul-spacing-lg); z-index: 60; padding: var(--sul-spacing-compact) var(--sul-spacing-base); border-radius: var(--sul-radius-base); background: var(--sul-console-fg); color: var(--sul-console-surface); font-size: var(--sul-console-text-13); opacity: 0; pointer-events: none; transform: translate(-50%, var(--sul-spacing-lg)); transition: opacity var(--sul-transition-base), transform var(--sul-transition-base); box-shadow: var(--sul-console-shadow-toast); }
.sul-apt__toast--on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
    .sul-apt { padding-left: var(--sul-spacing-base); padding-right: var(--sul-spacing-base); }
    .sul-apt__plan, .sul-apt__ef { grid-template-columns: 1fr; }
    .sul-apt__table, .sul-apt__table tbody, .sul-apt__table tr, .sul-apt__table td { display: block; width: 100%; }
    .sul-apt__table thead, .sul-apt__table colgroup { display: none; }
    .sul-apt__table td { padding: var(--sul-spacing-sm) var(--sul-spacing-lg); border: 0; }
    .sul-apt__table tr { border-bottom: var(--sul-card-border) solid var(--sul-console-line-2); }
    .sul-apt__ac { text-align: left; }
    .sul-apt__ch { flex-wrap: wrap; }
    .sul-apt__how { margin-left: 0; }
}


/* People: the owner and members, then the executive. */
.sul-admin-ov__people { margin: 0; padding: 0; list-style: none; }
/* Compact rows (v2.6): name with the role beside it, then one line of contact. */
.sul-admin-ov__person { display: grid; grid-template-columns: var(--sul-avatar-sm) minmax(0, 1fr) auto; align-items: center; gap: var(--sul-spacing-compact); padding: var(--sul-spacing-sm) var(--sul-spacing-base); border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-admin-ov__person:last-child { border-bottom: 0; }
.sul-admin-ov__avatar { display: grid; place-items: center; width: var(--sul-avatar-sm); height: var(--sul-avatar-sm); border-radius: var(--sul-radius-pill); background: var(--sul-pastel-info); color: var(--sul-info-dark); font-size: var(--sul-font-2xs); font-weight: 700; }
.sul-admin-ov__avatar--owner { background: var(--sul-pastel-primary); color: var(--sul-primary-action); }
.sul-admin-ov__avatar .sul-admin-ov__ico { width: var(--sul-spacing-base); height: var(--sul-spacing-base); }
.sul-admin-ov__who { display: flex; flex-direction: column; min-width: 0; font-size: var(--sul-font-sm); }
.sul-admin-ov__who strong { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sul-admin-ov__who small { overflow: hidden; font-size: var(--sul-font-xs); color: var(--sul-muted); text-overflow: ellipsis; white-space: nowrap; }
.sul-admin-ov__role { margin-left: var(--sul-spacing-xs); font-size: var(--sul-font-2xs); font-weight: 700; text-transform: uppercase; color: var(--sul-placeholder); }

/* The Overview is full width (AdminShell "fluid"), so a wide window takes a fourth channel tile. */
@media (min-width: 1600px) {
  .sul-admin-ov__chans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1250px) {
  .sul-admin-ov__chans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .sul-admin-ov__grid { grid-template-columns: minmax(0, 1fr); }
  .sul-admin-ov__glance { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sul-admin-ov__about { position: static; }
  .sul-admin-ov__about-card { max-height: none; }
}
@media (max-width: 640px) {
  .sul-admin-ov__glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sul-admin-ov__targets { grid-template-columns: minmax(0, 1fr); }
  .sul-admin-ov__chans { grid-template-columns: minmax(0, 1fr); }
  .sul-admin-ov__post { grid-template-columns: calc(var(--sul-avatar-lg) * 1.3) minmax(0, 1fr); }
  .sul-admin-ov__post-side { grid-column: 2; flex-direction: row; align-items: center; }
}

/* Delete a business (migration 133): the Danger zone, and the notice on one already deleted. */
.sul-admin-overview__deleted,
.sul-admin-bizlist__deleted {
  margin: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-radius: var(--sul-radius-lg);
  font-size: var(--sul-font-sm);
}
.sul-admin-overview__deleted { background: var(--sul-pastel-danger); color: var(--sul-danger); }
.sul-admin-bizlist__deleted { margin-bottom: var(--sul-spacing-base); background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-admin-overview__danger { margin: 0; border-color: color-mix(in srgb, var(--sul-danger) 35%, var(--sul-border)); }
.sul-admin-overview__danger-text { margin: 0; font-size: var(--sul-font-sm); color: var(--sul-text-secondary); }
/* Migration 254: the Overview's "AI content: test business" card, laid out as the Danger zone. */
.sul-admin-overview__test { margin: 0; }
.sul-admin-overview__test-text { margin: 0 0 var(--sul-spacing-xs); font-size: var(--sul-font-sm); color: var(--sul-text-secondary); }
.sul-admin-overview__test-notice {
  margin: 0 0 var(--sul-spacing-sm);
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
  border-radius: var(--sul-radius-lg);
  font-size: var(--sul-font-sm);
  background: var(--sul-pastel-success);
  color: var(--sul-success-dark);
}
.sul-admin-overview__test-form,
.sul-admin-overview__delete-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--sul-spacing-3xl) * 5), 1fr));
  gap: var(--sul-spacing-base);
  align-items: end;
}
.sul-admin-overview__delete-form > .sul-field__error,
.sul-admin-overview__delete-form > div:last-child,
.sul-admin-overview__test-form > .sul-field__error,
.sul-admin-overview__test-form > div:last-child { grid-column: 1 / -1; }
.sul-admin-overview__delete,
.sul-admin-overview__delete:hover { background: var(--sul-danger); color: var(--sul-surface); }

/* A business's logo in the console's initials tiles (the business list and the business bar).
   Contained, never cropped: a logo cut to a square loses its words. */
.sul-admin-result__mark--logo,
.sul-admin-bizbar__mark--logo {
  overflow: hidden;
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
}
.sul-admin-result__mark--logo img,
.sul-admin-bizbar__mark--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Channels (/app/businesses/{id}/connections) -----------------------------
   The React island in clientapp/src/islands/channels.tsx, built from the blocks in
   clientapp/src/channels/components.tsx. Top to bottom: the reach strip, the listing
   suggestions, the connected accounts, and the "Add an account" dialog. Every value is a
   token, so dark mode follows by itself. */

.sul-ch .sul-ch-plus { width: var(--sul-font-base); height: var(--sul-font-base); }

.sul-ch-flash {
  margin: 0 var(--sul-card-padding-h) var(--sul-card-gap);
  padding: var(--sul-spacing-sm) var(--sul-card-padding-h);
  border-radius: var(--sul-radius-lg);
  font-size: var(--sul-font-sm);
  font-weight: 600;
}
.sul-ch-flash--success { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-ch-flash--danger  { background: var(--sul-pastel-danger);  color: var(--sul-danger); }
.sul-ch-flash--neutral { background: var(--sul-background);     color: var(--sul-text-secondary); }

/* A platform mark as a rounded square, with a corner badge. */
.sul-ch-tile {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.sul-ch-tile .sul-platform-icon,
.sul-ch-acc > .sul-platform-icon,
.sul-ch-opt > .sul-platform-icon { border-radius: var(--sul-radius-lg); }
.sul-ch-tile--off .sul-platform-icon { filter: grayscale(1); opacity: var(--sul-opacity-disabled); }
.sul-ch-tile__badge {
  position: absolute;
  right: calc(-1 * var(--sul-spacing-xs));
  bottom: calc(-1 * var(--sul-spacing-xs));
  display: grid;
  place-items: center;
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  border-radius: var(--sul-radius-pill);
  border: var(--sul-spacing-xxs) solid var(--sul-surface);
  background: var(--sul-success);
  color: var(--sul-surface);
  font-size: var(--sul-font-2xs);
  font-weight: 700;
}
.sul-ch-tile__badge svg { width: 60%; height: 60%; }
.sul-ch-tile__badge--warn { background: var(--sul-warning-dark); }

/* Reach strip */
.sul-ch-reach {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-lg);
  padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
}
.sul-ch-reach__text { flex: 1 1 var(--sul-desktop-card-min); min-width: 0; }
.sul-ch-reach__title { margin: 0; font-size: var(--sul-font-base); font-weight: 700; color: var(--sul-text); }
.sul-ch-reach__detail { margin: var(--sul-spacing-xxs) 0 0; font-size: var(--sul-font-sm); color: var(--sul-text-secondary); }
.sul-ch-reach__bar {
  display: block;
  width: 100%;
  max-width: var(--sul-desktop-card-min);
  height: var(--sul-spacing-sm);
  margin-top: var(--sul-spacing-sm);
  border: 0;
  border-radius: var(--sul-radius-pill);
  background: var(--sul-background);
  overflow: hidden;
  appearance: none;
}
.sul-ch-reach__bar::-webkit-progress-bar { background: var(--sul-background); border-radius: var(--sul-radius-pill); }
.sul-ch-reach__bar::-webkit-progress-value { background: var(--sul-success); border-radius: var(--sul-radius-pill); }
.sul-ch-reach__bar::-moz-progress-bar { background: var(--sul-success); border-radius: var(--sul-radius-pill); }
.sul-ch-reach__slots {
  display: flex;
  gap: var(--sul-spacing-base);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sul-ch-reach__slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sul-spacing-xs);
  min-width: var(--sul-control-touch-min);
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-muted);
}
.sul-ch-reach__slot--on,
.sul-ch-reach__slot--broken { color: var(--sul-text); }

/* A card whose header carries an aside on the right (rule 2: the header is inside the card). */
.sul-ch-section { padding: var(--sul-card-padding-v) var(--sul-card-padding-h); gap: var(--sul-card-inner-gap); }
.sul-ch-section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sul-spacing-sm);
}
.sul-ch-section__title { margin: 0; font-size: var(--sul-card-label-size); font-weight: 600; color: var(--sul-text); }
.sul-ch-section__aside { font-size: var(--sul-font-xs); color: var(--sul-text-secondary); }
.sul-ch-count {
  display: inline-block;
  padding: var(--sul-spacing-xxs) var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-background);
  font-weight: 600;
  color: var(--sul-muted);
}

/* Listing suggestions */
.sul-ch-sugg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--sul-desktop-card-min)), 1fr));
  gap: var(--sul-spacing-base);
}
.sul-ch-sugg {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  background: linear-gradient(180deg, var(--sul-pastel-primary), var(--sul-surface) 70%);
}
.sul-ch-sugg__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xxs);
  font-size: var(--sul-font-2xs);
  font-weight: 700;
  letter-spacing: var(--sul-tracking-tight);
  text-transform: uppercase;
  color: var(--sul-primary-action);
}
.sul-ch-sugg__tag svg { width: var(--sul-font-xs); height: var(--sul-font-xs); }
.sul-ch-sugg__who { display: flex; align-items: center; gap: var(--sul-spacing-sm); }
.sul-ch-sugg__text { display: flex; flex-direction: column; min-width: 0; }
.sul-ch-sugg__name { font-size: var(--sul-font-sm); color: var(--sul-text); }
.sul-ch-sugg__url {
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sul-ch-sugg__url a { display: inline-flex; align-items: center; gap: var(--sul-spacing-xxs); color: var(--sul-primary-action); font-weight: 600; text-decoration: none; }
.sul-ch-sugg__url a:hover { text-decoration: underline; }
.sul-ch-sugg__question { margin: 0; font-size: var(--sul-font-sm); color: var(--sul-text); }
.sul-ch-sugg__actions { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-sm); }

.sul-ch-undo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
  border: var(--sul-card-border) dashed var(--sul-border);
  border-radius: var(--sul-radius-xl);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}
.sul-ch-undo__button {
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--sul-primary-action);
  cursor: pointer;
}

/* Quiet buttons: "Not mine", "Disconnect". */
.sul-ch-ghost { background: none; color: var(--sul-text-secondary); }
.sul-ch-ghost:hover { background: var(--sul-background); color: var(--sul-text); }
.sul-ch-danger {
  background: var(--sul-surface);
  color: var(--sul-danger);
  border-color: color-mix(in srgb, var(--sul-danger) 40%, transparent);
}
.sul-ch-danger:hover { background: var(--sul-pastel-danger); }

/* Connected accounts */
.sul-ch-acc-list { margin: 0; padding: 0; list-style: none; }
.sul-ch-acc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-base) 0;
  border-top: var(--sul-card-border) solid var(--sul-border);
}
.sul-ch-acc:first-child { border-top: 0; padding-top: var(--sul-spacing-xs); }
.sul-ch-acc__who { display: flex; flex-direction: column; flex: 1 1 var(--sul-desktop-connection-detail-min); min-width: 0; }
.sul-ch-acc__name { font-size: var(--sul-font-sm); color: var(--sul-text); overflow-wrap: anywhere; }
.sul-ch-acc__name a { color: inherit; text-decoration: none; }
.sul-ch-acc__name a:hover,
.sul-ch-acc__name a:focus-visible { color: var(--sul-primary-action); text-decoration: underline; }
.sul-ch-acc__meta { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-ch-acc__does { flex: 1 1 var(--sul-desktop-connection-detail-min); min-width: 0; margin: 0; font-size: var(--sul-font-xs); color: var(--sul-text-secondary); }
.sul-ch-acc__pill { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); }
.sul-ch-dot { width: var(--sul-spacing-xs); height: var(--sul-spacing-xs); border-radius: var(--sul-radius-pill); background: currentColor; }
.sul-ch-acc__actions { display: flex; align-items: center; gap: var(--sul-spacing-sm); }
.sul-ch-acc__warning {
  flex-basis: 100%;
  margin: 0;
  font-size: var(--sul-font-xs);
  color: var(--sul-warning-dark);
}
.sul-ch-confirm {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-sm) var(--sul-card-padding-h);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-pastel-danger);
  font-size: var(--sul-font-xs);
  color: var(--sul-text);
}
.sul-ch-confirm__actions { display: flex; gap: var(--sul-spacing-sm); }
.sul-ch-empty { margin: 0; padding: var(--sul-spacing-base) 0; text-align: center; color: var(--sul-muted); font-size: var(--sul-font-sm); }

.sul-ch-other__copy { margin: 0; font-size: var(--sul-font-sm); color: var(--sul-text-secondary); }
.sul-ch-other__links { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-sm); }

/* "Add an account" dialog: centred, one full-width button per platform. */
.sul-ch-add__error {
  margin: 0 0 var(--sul-spacing-sm);
  padding: var(--sul-spacing-sm) var(--sul-card-padding-h);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-pastel-danger);
  color: var(--sul-danger);
  font-size: var(--sul-font-sm);
}
.sul-ch-add__list { display: flex; flex-direction: column; gap: var(--sul-spacing-sm); margin: 0; padding: 0; list-style: none; }
.sul-ch-opt {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  width: 100%;
  padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-surface);
  color: var(--sul-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--sul-transition-fast) ease;
}
.sul-ch-opt:hover { border-color: var(--sul-primary-action); }
.sul-ch-opt:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-ch-opt__text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.sul-ch-opt__name { font-size: var(--sul-font-sm); }
.sul-ch-opt__detail { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-ch-opt__arrow { font-size: var(--sul-font-lg); color: var(--sul-muted); }

/* ---------------------------------------------------------------------------
   Console Publishing tab (Areas/Admin/Pages/Publishing.cshtml, the admin-publishing island built
   from clientapp/src/publishing/components.tsx): status tiles that are also the filter, the
   accounts that keep failing, a platform filter and search, then one row per post that opens to
   its targets and, for the target in ?TargetId=, its attempt timeline.
   --------------------------------------------------------------------------- */
.sul-admin-publishing,
#sul-admin-publishing {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-lg);
}
.sul-admin-publishing .sul-card { margin: 0; }

.sul-admin-publishing__muted { display: block; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-admin-publishing__hint { margin: 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-admin-publishing__label {
  margin: 0 0 var(--sul-spacing-xs);
  font-size: var(--sul-font-micro);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--sul-muted);
}
.sul-admin-publishing__link { font-weight: 600; color: var(--sul-primary-action); text-decoration: none; white-space: nowrap; }
.sul-admin-publishing__link:hover { text-decoration: underline; }

.sul-admin-publishing__dot {
  display: inline-block;
  flex: none;
  width: var(--sul-spacing-xs);
  height: var(--sul-spacing-xs);
  border-radius: var(--sul-radius-pill);
  background: currentColor;
}
.sul-admin-publishing__dotpill { display: inline-flex; align-items: center; gap: var(--sul-spacing-xxs); white-space: nowrap; }

/* Tiles */
.sul-admin-publishing__tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sul-spacing-compact);
}
.sul-admin-publishing__tile {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-surface);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.sul-admin-publishing__tile:hover { border-color: var(--sul-muted); }
.sul-admin-publishing__tile[aria-pressed="true"] {
  border-color: var(--sul-primary-action);
  box-shadow: inset 0 0 0 var(--sul-card-border) var(--sul-primary-action);
}
.sul-admin-publishing__tile:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-primary-action); outline-offset: var(--sul-spacing-xxs); }
.sul-admin-publishing__tile-n { font-size: var(--sul-font-2xl); font-weight: 700; color: var(--sul-text); font-variant-numeric: tabular-nums; }
.sul-admin-publishing__tile-l { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); font-size: var(--sul-font-sm); color: var(--sul-muted); }
.sul-admin-publishing__tile--failed .sul-admin-publishing__dot { color: var(--sul-danger); }
.sul-admin-publishing__tile--pending .sul-admin-publishing__dot { color: var(--sul-warning); }
.sul-admin-publishing__tile--published .sul-admin-publishing__dot { color: var(--sul-success); }

/* Keeps failing */
.sul-admin-publishing__alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-danger);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-pastel-danger);
}
.sul-admin-publishing__alert-icon { flex: none; width: var(--sul-spacing-xl); height: var(--sul-spacing-xl); color: var(--sul-danger); }
.sul-admin-publishing__alert-body { flex: 1; min-width: 0; }
.sul-admin-publishing__alert-title { margin: 0; font-weight: 700; color: var(--sul-text); }
.sul-admin-publishing__alert-list {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
  margin: var(--sul-spacing-xs) 0 0;
  padding: 0;
  list-style: none;
}
.sul-admin-publishing__alert-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); font-size: var(--sul-font-sm); }
.sul-admin-publishing__alert-list .sul-admin-publishing__muted { display: inline; }
.sul-admin-publishing__alert-act { flex: none; }

/* Toolbar */
.sul-admin-publishing__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-compact); }
.sul-admin-publishing__seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-xxs);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
}
.sul-admin-publishing__seg-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xs) var(--sul-spacing-compact);
  border: 0;
  border-radius: var(--sul-radius-base);
  background: none;
  font-family: inherit;
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-muted);
  white-space: nowrap;
  cursor: pointer;
}
.sul-admin-publishing__seg-item:hover { color: var(--sul-text); }
.sul-admin-publishing__seg-item[aria-pressed="true"] { background: var(--sul-pastel-primary); color: var(--sul-primary-action-strong); }
.sul-admin-publishing__seg-item:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-primary-action); outline-offset: var(--sul-spacing-xxs); }
.sul-admin-publishing__seg-item .sul-platform-icon--compact { width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); }
.sul-admin-publishing__count {
  padding: 0 var(--sul-spacing-xs);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-background);
  font-size: var(--sul-font-micro);
  color: var(--sul-muted);
  font-variant-numeric: tabular-nums;
}
.sul-admin-publishing__search {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: var(--sul-spacing-xs);
  padding: 0 var(--sul-spacing-compact);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
}
.sul-admin-publishing__search svg { flex: none; width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); color: var(--sul-muted); }
.sul-admin-publishing__search input {
  width: 100%;
  min-width: 0;
  padding: var(--sul-spacing-sm) 0;
  border: 0;
  outline: 0;
  background: none;
  font-family: inherit;
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
}
.sul-admin-publishing__search:focus-within { border-color: var(--sul-primary-action); }
.sul-admin-publishing__meta { margin-left: auto; font-size: var(--sul-font-xs); color: var(--sul-muted); }

/* Post list */
.sul-admin-publishing__list { padding: 0; overflow: hidden; }
.sul-admin-publishing__post + .sul-admin-publishing__post { border-top: var(--sul-card-border) solid var(--sul-border); }
.sul-admin-publishing__prow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto var(--sul-spacing-xl);
  align-items: center;
  gap: var(--sul-spacing-base);
  width: 100%;
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border: 0;
  background: none;
  font-family: inherit;
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
  text-align: left;
  cursor: pointer;
}
.sul-admin-publishing__prow:hover { background: var(--sul-background); }
.sul-admin-publishing__prow:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-primary-action); outline-offset: calc(-1 * var(--sul-spacing-xxs)); }
.sul-admin-publishing__ptitle { min-width: 0; }
.sul-admin-publishing__ptitle strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sul-admin-publishing__untitled { font-style: italic; font-weight: 500; color: var(--sul-muted); }
.sul-admin-publishing__chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sul-spacing-xs); }
.sul-admin-publishing__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-xxs) var(--sul-spacing-sm) var(--sul-spacing-xxs) var(--sul-spacing-xxs);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  font-size: var(--sul-font-xs);
  font-weight: 700;
}
.sul-admin-publishing__chip .sul-platform-icon--compact { width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); }
.sul-admin-publishing__chip--failed { border-color: var(--sul-danger); background: var(--sul-pastel-danger); color: var(--sul-danger); }
.sul-admin-publishing__chip--published { color: var(--sul-success-dark); }
.sul-admin-publishing__chip--pending { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }
.sul-admin-publishing__chip--other { color: var(--sul-muted); }
.sul-admin-publishing__summary { white-space: nowrap; }
.sul-admin-publishing__chev { width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); color: var(--sul-muted); transition: transform 0.15s; }
.sul-admin-publishing__prow[aria-expanded="true"] .sul-admin-publishing__chev { transform: rotate(90deg); }

.sul-admin-publishing__detail {
  padding: var(--sul-spacing-xs) var(--sul-spacing-lg) var(--sul-spacing-base);
  border-top: var(--sul-card-border) solid var(--sul-border);
  background: var(--sul-background);
}
.sul-admin-publishing__detail .sul-tablewrap { border-radius: var(--sul-radius-lg); background: var(--sul-surface); }
.sul-admin-publishing__table td { vertical-align: middle; }
.sul-admin-publishing__wrap { white-space: normal; }
.sul-admin-publishing__acct { display: flex; align-items: center; gap: var(--sul-spacing-sm); }
.sul-admin-publishing__actions { display: inline-flex; align-items: center; gap: var(--sul-spacing-compact); }
.sul-admin-publishing__tries--hi { font-weight: 700; color: var(--sul-danger); }
.sul-admin-publishing__row--open td { background: var(--sul-pastel-primary); }
.sul-admin-publishing__timeline-row > td { padding: var(--sul-spacing-base); background: var(--sul-background); white-space: normal; }
/* Migration 168: the post's Delete, under its targets, and the result line after a Retry or Delete. */
.sul-admin-publishing__post-actions { display: flex; justify-content: flex-end; margin-top: var(--sul-spacing-sm); }
.sul-admin-publishing__delete { color: var(--sul-danger); }
.sul-admin-publishing__notice {
  margin: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-success-light);
  color: var(--sul-success-dark);
  font-size: var(--sul-font-sm);
}
/* Migration 169: Move and retry's account list, one sul-choice row per account. */
.sul-admin-publishing__move {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
  margin: 0 0 var(--sul-spacing-base);
  padding: 0;
  border: 0;
  min-width: 0;
}

@media (max-width: 760px) {
  .sul-admin-publishing__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sul-admin-publishing__prow { grid-template-columns: minmax(0, 1fr) var(--sul-spacing-xl); }
  .sul-admin-publishing__chips,
  .sul-admin-publishing__summary { grid-column: 1; justify-content: flex-start; justify-self: start; }
  .sul-admin-publishing__chev { grid-row: 1; grid-column: 2; }
  .sul-admin-publishing__alert { flex-wrap: wrap; }
  .sul-admin-publishing__meta { margin-left: 0; }
  .sul-admin-publishing__search { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .sul-admin-publishing__chev { transition: none; }
}

/* ---------------------------------------------------------------------------------------------
   Console Health (admin-health island): a card per job that failed or only partly finished, then
   each run with the businesses it failed for. Pills, the search box and the dot come from the
   Publishing tab's classes; everything here is the Health page's own layout.
   --------------------------------------------------------------------------------------------- */
.sul-admin-health { display: flex; flex-direction: column; gap: var(--sul-spacing-lg); }
.sul-admin-health__muted { margin: 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-admin-health__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
  overflow-wrap: anywhere;
}
.sul-admin-health__link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--sul-primary-action);
  cursor: pointer;
}
.sul-admin-health__link:hover { text-decoration: underline; }
.sul-admin-health__link:disabled { color: var(--sul-muted); cursor: default; text-decoration: none; }
.sul-admin-health__label {
  margin: 0 0 var(--sul-spacing-xs);
  font-size: var(--sul-font-micro);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--sul-muted);
}

/* Header */
.sul-admin-health__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sul-spacing-base); }
.sul-admin-health__title { margin: 0; font-size: var(--sul-font-3xl); }
.sul-admin-health__lede { margin: var(--sul-spacing-xxs) 0 0; color: var(--sul-muted); }
.sul-admin-health__note {
  margin: 0;
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-pastel-warning);
  font-size: var(--sul-font-sm);
  color: var(--sul-text-secondary);
}

/* Job cards: the stripe and the pressed ring say which job, the pill says how bad. */
.sul-admin-health__jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sul-spacing-base); }
.sul-admin-health__job {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
  overflow: hidden;
  padding: var(--sul-spacing-base) var(--sul-spacing-lg) var(--sul-spacing-base) var(--sul-spacing-xl);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-card-radius);
  background: var(--sul-surface);
  font-family: inherit;
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
  text-align: left;
  cursor: pointer;
}
.sul-admin-health__job::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--sul-spacing-xs); }
.sul-admin-health__job--failed::before { background: var(--sul-danger); }
.sul-admin-health__job--partial::before { background: var(--sul-warning); }
.sul-admin-health__job:hover { border-color: var(--sul-muted); }
.sul-admin-health__job[aria-pressed="true"] { border-color: var(--sul-primary-action); box-shadow: inset 0 0 0 var(--sul-card-border) var(--sul-primary-action); }
.sul-admin-health__job:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-primary-action); outline-offset: var(--sul-spacing-xxs); }
.sul-admin-health__job-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sul-spacing-sm); }
.sul-admin-health__job-name { display: flex; flex-direction: column; min-width: 0; }
.sul-admin-health__job-name strong { font-size: var(--sul-font-base); }
.sul-admin-health__figures { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-lg); }
.sul-admin-health__figures > span { display: flex; flex-direction: column; }
.sul-admin-health__figures strong { font-size: var(--sul-font-2xl); font-variant-numeric: tabular-nums; line-height: 1.1; }
.sul-admin-health__figures small { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-admin-health__why { margin: 0; font-size: var(--sul-font-sm); }

/* Runs */
.sul-admin-health__runs { padding: 0; overflow: hidden; }
.sul-admin-health__rhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
}
.sul-admin-health__rhead h2 { margin: 0; font-size: var(--sul-font-base); }
.sul-admin-health__run + .sul-admin-health__run { border-top: var(--sul-card-border) solid var(--sul-border); }
.sul-admin-health__rrow {
  display: grid;
  grid-template-columns: var(--sul-avatar-lg) minmax(0, 1fr) auto auto var(--sul-spacing-xl);
  align-items: center;
  gap: var(--sul-spacing-base);
  width: 100%;
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border: 0;
  background: none;
  font-family: inherit;
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
  text-align: left;
  cursor: pointer;
}
.sul-admin-health__rrow:hover { background: var(--sul-background); }
.sul-admin-health__rrow:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-primary-action); outline-offset: calc(-1 * var(--sul-spacing-xxs)); }
.sul-admin-health__time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--sul-font-xs);
  font-variant-numeric: tabular-nums;
}
.sul-admin-health__time small { display: block; font-family: inherit; color: var(--sul-muted); }
.sul-admin-health__rjob { display: flex; flex-direction: column; min-width: 0; }
.sul-admin-health__rjob strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sul-admin-health__affected { font-size: var(--sul-font-xs); color: var(--sul-muted); white-space: nowrap; }
.sul-admin-health__chev { width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); color: var(--sul-muted); transition: transform 0.15s; }
.sul-admin-health__rrow[aria-expanded="true"] .sul-admin-health__chev { transform: rotate(90deg); }

.sul-admin-health__detail {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-compact) var(--sul-spacing-lg) var(--sul-spacing-base) calc(var(--sul-avatar-lg) + var(--sul-spacing-base) + var(--sul-spacing-lg));
  border-top: var(--sul-card-border) solid var(--sul-border);
  background: var(--sul-background);
}
.sul-admin-health__find { max-width: calc(var(--sul-avatar-lg) * 6); }
.sul-admin-health__businesses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(var(--sul-avatar-lg) * 5), 1fr));
  gap: var(--sul-spacing-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sul-admin-health__business {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  min-width: 0;
  padding: var(--sul-spacing-xs) var(--sul-spacing-compact) var(--sul-spacing-xs) var(--sul-spacing-xs);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
  text-decoration: none;
}
a.sul-admin-health__business:hover { border-color: var(--sul-primary-action); color: var(--sul-primary-action); }
.sul-admin-health__business--plain { color: var(--sul-muted); }
.sul-admin-health__initials {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--sul-avatar-sm);
  height: var(--sul-avatar-sm);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-pastel-primary);
  font-size: var(--sul-font-micro);
  font-weight: 700;
  color: var(--sul-primary-action);
}
.sul-admin-health__bname { display: flex; flex-direction: column; min-width: 0; }
.sul-admin-health__bname span,
.sul-admin-health__bname small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sul-admin-health__bname small { font-size: var(--sul-font-micro); color: var(--sul-muted); }
.sul-admin-health__more { margin: 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-admin-health__errors ul { display: flex; flex-direction: column; gap: var(--sul-spacing-xs); margin: 0; padding: 0; list-style: none; }
.sul-admin-health__errors li { display: flex; gap: var(--sul-spacing-sm); font-size: var(--sul-font-xs); overflow-wrap: anywhere; }
.sul-admin-health__ecount { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--sul-danger); }

.sul-admin-health__stopped {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border: var(--sul-card-border) dashed var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  font-size: var(--sul-font-sm);
}
.sul-admin-health__stopped p { margin: 0; overflow-wrap: anywhere; }

/* All recent runs, folded under the island */
.sul-admin-health__all { padding: 0; overflow: hidden; }
.sul-admin-health__all-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  font-weight: 600;
  cursor: pointer;
}
.sul-admin-health__all[open] .sul-admin-health__all-head { border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-admin-health__all .sul-empty { padding: var(--sul-spacing-lg); }

@media (max-width: 900px) {
  .sul-admin-health__jobs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sul-admin-health__rrow { grid-template-columns: minmax(0, 1fr) var(--sul-spacing-xl); }
  .sul-admin-health__rrow > :not(.sul-admin-health__chev) { grid-column: 1; }
  .sul-admin-health__chev { grid-row: 1; grid-column: 2; }
  .sul-admin-health__detail { padding-left: var(--sul-spacing-lg); }
}
@media (prefers-reduced-motion: reduce) {
  .sul-admin-health__chev { transition: none; }
}

/* ---------------------------------------------------------------------------------------------
   Brand and voice (brand island): the form on the left, a live sample post on the right, a save
   bar at the foot. Cards, fields, hints and buttons are the design system's own; this is the
   page's layout and the controls it has that nothing else does. The preview's colours arrive as
   custom properties (--sul-brand-1/2 and their text colours) set by the island from the
   customer's choice and the renderer's own white-or-near-black rule.
   --------------------------------------------------------------------------------------------- */
/* The page asks for the full shell (form and preview side by side) and caps itself near the
   design's width, so a wide monitor does not stretch the form fields across it. */
.sul-brand-studio {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-lg);
  width: 100%;
  max-width: calc(var(--sul-avatar-lg) * 28);
}
.sul-brand-studio__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(var(--sul-avatar-lg) * 8);
  align-items: start;
  gap: var(--sul-spacing-xl);
}
.sul-brand-studio__main { display: flex; flex-direction: column; gap: var(--sul-spacing-lg); min-width: 0; }
.sul-brand-studio__card .sul-field { margin-top: var(--sul-spacing-lg); }
.sul-brand-studio__link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--sul-primary-action);
  cursor: pointer;
}
.sul-brand-studio__link:hover { text-decoration: underline; }

/* Colours */
.sul-brand-studio__row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sul-spacing-base); }
.sul-brand-studio__colour {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
}
.sul-brand-studio__swatch {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: var(--sul-brand-swatch);
  height: var(--sul-brand-swatch);
  overflow: hidden;
  border: var(--sul-card-border) dashed var(--sul-muted);
  border-radius: var(--sul-radius-xl);
  color: var(--sul-muted);
  font-size: var(--sul-font-lg);
  cursor: pointer;
}
.sul-brand-studio__swatch--set { border-style: solid; border-color: var(--sul-border); background: var(--sul-brand-tile); }
.sul-brand-studio__swatch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sul-brand-studio__swatch:focus-within { outline: var(--sul-spacing-xxs) solid var(--sul-primary-action); outline-offset: var(--sul-spacing-xxs); }
.sul-brand-studio__colour-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sul-brand-studio__colour-text small { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-brand-studio__colour-text code { color: var(--sul-text); }
.sul-brand-studio__picks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-xs);
  margin-top: var(--sul-spacing-compact);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}
.sul-brand-studio__pick {
  width: var(--sul-spacing-2xl);
  height: var(--sul-spacing-2xl);
  border: var(--sul-spacing-xxs) solid var(--sul-surface);
  border-radius: var(--sul-radius-lg);
  box-shadow: 0 0 0 var(--sul-card-border) var(--sul-border);
  background: linear-gradient(135deg, var(--sul-brand-a) 50%, var(--sul-brand-b) 50%);
  cursor: pointer;
}

/* Logo */
.sul-brand-studio__drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-lg);
  border: var(--sul-card-border) dashed var(--sul-border);
  border-radius: var(--sul-radius-xl);
  cursor: pointer;
}
.sul-brand-studio__drop:hover,
.sul-brand-studio__drop--over { border-color: var(--sul-primary-action); background: var(--sul-pastel-primary); }
.sul-brand-studio__drop:focus-within { outline: var(--sul-spacing-xxs) solid var(--sul-primary-action); outline-offset: var(--sul-spacing-xxs); }
.sul-brand-studio__drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sul-brand-studio__drop > span:last-child { display: flex; flex-direction: column; gap: var(--sul-spacing-xxs); }
.sul-brand-studio__drop small { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-brand-studio__drop-ph {
  display: grid;
  flex: none;
  place-items: center;
  width: calc(var(--sul-control-touch-min) * 1.5);
  height: calc(var(--sul-control-touch-min) * 1.5);
  overflow: hidden;
  border-radius: var(--sul-radius-xl);
  background: var(--sul-background);
  color: var(--sul-muted);
}
.sul-brand-studio__drop-ph svg { width: var(--sul-spacing-2xl); height: var(--sul-spacing-2xl); }
.sul-brand-studio__drop-ph img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Voice */
.sul-brand-studio__meter { display: flex; align-items: center; gap: var(--sul-spacing-compact); margin-top: var(--sul-spacing-xs); font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-brand-studio__meter > span {
  flex: none;
  width: calc(var(--sul-avatar-lg) * 3);
  height: var(--sul-spacing-xs);
  overflow: hidden;
  border-radius: var(--sul-radius-pill);
  background: var(--sul-background);
}
.sul-brand-studio__meter i { display: block; height: 100%; border-radius: var(--sul-radius-pill); transition: width 0.3s; }
.sul-brand-studio__meter em { font-style: normal; }
.sul-brand-studio__meter--low i { width: 20%; background: var(--sul-danger); }
.sul-brand-studio__meter--mid i { width: 55%; background: var(--sul-warning); }
.sul-brand-studio__meter--high i { width: 100%; background: var(--sul-success); }

.sul-brand-studio__tones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sul-spacing-compact); margin-top: var(--sul-spacing-xs); }
.sul-brand-studio__tone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  cursor: pointer;
}
.sul-brand-studio__tone:hover { border-color: var(--sul-muted); }
.sul-brand-studio__tone input { position: absolute; opacity: 0; }
.sul-brand-studio__tone:has(input:checked) {
  border-color: var(--sul-primary-action);
  box-shadow: inset 0 0 0 var(--sul-card-border) var(--sul-primary-action);
  background: var(--sul-pastel-primary);
}
.sul-brand-studio__tone:has(input:focus-visible) { outline: var(--sul-spacing-xxs) solid var(--sul-primary-action); outline-offset: var(--sul-spacing-xxs); }
.sul-brand-studio__tone strong { display: flex; justify-content: space-between; font-size: var(--sul-font-sm); }
.sul-brand-studio__tone strong i {
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  border: var(--sul-spacing-xxs) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
}
.sul-brand-studio__tone:has(input:checked) strong i { border: var(--sul-spacing-xs) solid var(--sul-primary-action); }
.sul-brand-studio__tone small { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-brand-studio__tone q { font-size: var(--sul-font-xs); font-style: italic; }

.sul-brand-studio__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xs);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
}
.sul-brand-studio__chips:focus-within { border-color: var(--sul-primary-action); outline: var(--sul-card-border) solid var(--sul-primary-action); }
.sul-brand-studio__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xs) var(--sul-spacing-xs) var(--sul-spacing-xs) var(--sul-spacing-compact);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-background);
  font-size: var(--sul-font-sm);
}
.sul-brand-studio__chip button { padding: 0 var(--sul-spacing-xxs); border: 0; background: none; font-size: var(--sul-font-sm); line-height: 1; color: var(--sul-muted); cursor: pointer; }
.sul-brand-studio__chips input {
  flex: 1;
  min-width: calc(var(--sul-avatar-lg) * 3);
  padding: var(--sul-spacing-xs);
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  color: var(--sul-text);
}
.sul-brand-studio__count { margin-left: auto; padding-right: var(--sul-spacing-xs); font-size: var(--sul-font-xs); color: var(--sul-muted); }

/* Preview */
.sul-brand-studio__preview { position: sticky; top: var(--sul-spacing-lg); display: flex; flex-direction: column; gap: var(--sul-spacing-compact); }
.sul-brand-studio__preview > .sul-brand-studio__card {
  padding: var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-card-radius);
  background: var(--sul-surface);
}
.sul-brand-studio__pv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sul-spacing-compact); font-size: var(--sul-font-sm); }
.sul-brand-studio__pv-head span { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-brand-studio__design {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--sul-radius-xl);
  background: linear-gradient(160deg, color-mix(in srgb, var(--sul-brand-2) 35%, var(--sul-brand-1)), var(--sul-brand-1));
  color: var(--sul-brand-1-text);
}
.sul-brand-studio__design-logo {
  position: absolute;
  top: var(--sul-spacing-base);
  left: var(--sul-spacing-base);
  display: grid;
  place-items: center;
  width: calc(var(--sul-control-touch-min) * 1.2);
  height: calc(var(--sul-control-touch-min) * 1.2);
  overflow: hidden;
  border-radius: var(--sul-radius-xl);
  background: var(--sul-surface);
  color: var(--sul-text);
  font-weight: 700;
}
.sul-brand-studio__design-logo img { max-width: 85%; max-height: 85%; object-fit: contain; }
.sul-brand-studio__design-head {
  position: absolute;
  top: 36%;
  right: var(--sul-spacing-lg);
  left: var(--sul-spacing-lg);
  font-size: var(--sul-font-2xl);
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}
.sul-brand-studio__design-head em {
  padding: 0 var(--sul-spacing-xs);
  border-radius: var(--sul-radius-sm, var(--sul-radius-lg));
  background: var(--sul-brand-2);
  color: var(--sul-brand-2-text);
  font-style: normal;
}
.sul-brand-studio__design-cta {
  position: absolute;
  right: var(--sul-spacing-base);
  bottom: calc(var(--sul-control-touch-min) * 1.3);
  padding: var(--sul-spacing-xs) var(--sul-spacing-base);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-brand-2);
  color: var(--sul-brand-2-text);
  font-size: var(--sul-font-xs);
  font-weight: 700;
}
.sul-brand-studio__design-band {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: var(--sul-spacing-compact) var(--sul-spacing-lg);
  border-top: var(--sul-spacing-xs) solid var(--sul-brand-2);
  background: var(--sul-brand-1);
  color: var(--sul-brand-1-text);
}
.sul-brand-studio__design-band small { font-size: var(--sul-font-xs); }
.sul-brand-studio__caption { margin: var(--sul-spacing-compact) 0 0; font-size: var(--sul-font-sm); line-height: 1.5; }
.sul-brand-studio__tags { color: var(--sul-primary-action); }
.sul-brand-studio__note { margin: 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }

/* Save bar: sticky at the foot of the page rather than fixed, so it never sits under the app's rail. */
.sul-brand-studio__savebar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-card-radius);
  background: var(--sul-surface);
  box-shadow: var(--sul-shadow-md);
}
.sul-brand-studio__status { display: flex; align-items: center; gap: var(--sul-spacing-sm); margin-right: auto; font-size: var(--sul-font-sm); color: var(--sul-muted); }
.sul-brand-studio__status i { width: var(--sul-spacing-sm); height: var(--sul-spacing-sm); border-radius: var(--sul-radius-pill); background: var(--sul-success); }
.sul-brand-studio__status--dirty i { background: var(--sul-warning); }
.sul-brand-studio__status--danger { color: var(--sul-danger); }
.sul-brand-studio__status--danger i { background: var(--sul-danger); }

@media (max-width: 1100px) {
  .sul-brand-studio__layout { grid-template-columns: minmax(0, 1fr); }
  .sul-brand-studio__preview { position: static; }
}
@media (max-width: 640px) {
  .sul-brand-studio__row2,
  .sul-brand-studio__tones { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .sul-brand-studio__meter i { transition: none; }
}

/* ---------------------------------------------------------------------------------------------
   Business details (details island): a six-step wizard. Cards, fields, hints, buttons and the
   saved strip are the design system's own; this is the stepper, the phone and email rows, the
   review list and the Back / Next bar.
   --------------------------------------------------------------------------------------------- */
.sul-details-wizard { display: flex; flex-direction: column; gap: var(--sul-spacing-lg); }
.sul-details-wizard__panel[hidden] { display: none; }
.sul-details-wizard__title { margin: 0 0 var(--sul-spacing-xxs); font-size: var(--sul-font-lg); }
.sul-details-wizard__title:focus { outline: none; }
.sul-details-wizard__panel .sul-field { margin-top: var(--sul-spacing-lg); }
.sul-details-wizard__summary {
  margin: var(--sul-spacing-base) 0 0;
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-pastel-danger);
  font-size: var(--sul-font-sm);
  color: var(--sul-danger);
}
.sul-details-wizard__link,
.sul-details-wizard__add {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--sul-primary-action);
  cursor: pointer;
}
.sul-details-wizard__link:hover,
.sul-details-wizard__add:hover { text-decoration: underline; }
.sul-details-wizard__add { align-self: flex-start; padding: var(--sul-spacing-xs) 0; font-size: var(--sul-font-sm); }

/* Stepper: numbered dots joined by a line; a done step shows a tick, a step with errors a "!". */
.sul-details-wizard__stepper { display: flex; gap: var(--sul-spacing-xs); margin: 0; padding: 0; list-style: none; }
.sul-details-wizard__step { position: relative; flex: 1; min-width: 0; }
.sul-details-wizard__step + .sul-details-wizard__step::before {
  content: "";
  position: absolute;
  top: calc(var(--sul-avatar-sm) / 2);
  right: calc(50% + var(--sul-avatar-sm) / 2 + var(--sul-spacing-xs));
  left: calc(-50% + var(--sul-avatar-sm) / 2 + var(--sul-spacing-xs));
  height: var(--sul-spacing-xxs);
  background: var(--sul-border);
}
.sul-details-wizard__step button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sul-spacing-xs);
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.sul-details-wizard__step button:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-primary-action); outline-offset: var(--sul-spacing-xxs); border-radius: var(--sul-radius-lg); }
.sul-details-wizard__dot {
  display: grid;
  place-items: center;
  width: var(--sul-avatar-sm);
  height: var(--sul-avatar-sm);
  border: var(--sul-spacing-xxs) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-muted);
}
.sul-details-wizard__slabel { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-details-wizard__step--current .sul-details-wizard__dot { border-color: var(--sul-primary-action); background: var(--sul-pastel-primary); color: var(--sul-primary-action); }
.sul-details-wizard__step--current .sul-details-wizard__slabel { font-weight: 600; color: var(--sul-text); }
.sul-details-wizard__step--done .sul-details-wizard__dot { border-color: var(--sul-success); background: var(--sul-success); color: var(--sul-surface); }
.sul-details-wizard__step--error .sul-details-wizard__dot { border-color: var(--sul-danger); background: var(--sul-pastel-danger); color: var(--sul-danger); }
.sul-details-wizard__mobile { display: none; font-size: var(--sul-font-sm); color: var(--sul-muted); }
.sul-details-wizard__mobile strong { color: var(--sul-text); }
.sul-details-wizard__mobile progress {
  display: block;
  width: 100%;
  height: var(--sul-spacing-xs);
  margin-top: var(--sul-spacing-xs);
  overflow: hidden;
  border: 0;
  border-radius: var(--sul-radius-pill);
  background: var(--sul-border);
  appearance: none;
}
.sul-details-wizard__mobile progress::-webkit-progress-bar { background: var(--sul-border); }
.sul-details-wizard__mobile progress::-webkit-progress-value { background: var(--sul-primary-action); }
.sul-details-wizard__mobile progress::-moz-progress-bar { background: var(--sul-primary-action); }

/* Phone and email rows */
.sul-details-wizard__list { margin-right: 0; margin-left: 0; padding: 0; border: 0; min-width: 0; }
.sul-details-wizard__list > .sul-field__label { padding: 0; }
.sul-details-wizard__row {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
  margin-top: var(--sul-spacing-sm);
  padding: var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-background);
}
.sul-details-wizard__row.sul-field--invalid { border-color: var(--sul-danger); }
.sul-details-wizard__row .sul-field__error { margin: 0; }
.sul-details-wizard__row-top { display: flex; gap: var(--sul-spacing-sm); }
.sul-details-wizard__dial { flex: none; width: calc(var(--sul-avatar-lg) * 2.6); }
.sul-details-wizard__tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-xs) var(--sul-spacing-base); font-size: var(--sul-font-sm); }
.sul-details-wizard__tag { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); cursor: pointer; }
.sul-details-wizard__tag input { margin: 0; accent-color: var(--sul-primary-action); }
.sul-details-wizard__remove {
  margin-left: auto;
  padding: var(--sul-spacing-xxs) var(--sul-spacing-xs);
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--sul-font-sm);
  color: var(--sul-danger);
  cursor: pointer;
}
.sul-details-wizard__remove:hover { text-decoration: underline; }
.sul-details-wizard__remove:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-primary-action); outline-offset: var(--sul-spacing-xxs); }

/* Address */
.sul-details-wizard__grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sul-spacing-base); }
.sul-details-wizard__narrow { max-width: calc(var(--sul-avatar-lg) * 6); }

/* Review */
.sul-details-wizard__rv { padding: var(--sul-spacing-base) 0; border-top: var(--sul-card-border) solid var(--sul-border); }
.sul-details-wizard__rv:first-of-type { margin-top: var(--sul-spacing-base); }
.sul-details-wizard__rv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sul-spacing-xs); }
.sul-details-wizard__rv-head h3 { margin: 0; font-size: var(--sul-font-base); }
.sul-details-wizard__rv dl { margin: 0; font-size: var(--sul-font-sm); }
.sul-details-wizard__rv dl > div {
  display: grid;
  grid-template-columns: calc(var(--sul-avatar-lg) * 3.6) minmax(0, 1fr);
  gap: var(--sul-spacing-xs) var(--sul-spacing-base);
  padding: var(--sul-spacing-xxs) 0;
}
.sul-details-wizard__rv dt { color: var(--sul-muted); }
.sul-details-wizard__rv dd { margin: 0; overflow-wrap: anywhere; }
.sul-details-wizard__line { display: block; }
.sul-details-wizard__chip {
  display: inline-block;
  margin-left: var(--sul-spacing-xs);
  padding: 0 var(--sul-spacing-xs);
  border-radius: var(--sul-radius-sm);
  background: var(--sul-background);
  font-size: var(--sul-font-micro);
  color: var(--sul-text-secondary);
}
.sul-details-wizard__empty { font-style: italic; color: var(--sul-muted); }

/* Photos as thumbnails, view only: a square tile per link, opening the full image. */
.sul-details-wizard__photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(var(--sul-avatar-lg) * 2.5), 1fr));
  gap: var(--sul-spacing-sm);
  margin: var(--sul-spacing-xs) 0 var(--sul-spacing-sm);
  padding: 0;
  list-style: none;
}
.sul-details-wizard__photos--small { grid-template-columns: repeat(auto-fill, minmax(calc(var(--sul-avatar-lg) * 1.5), 1fr)); margin: 0; }
.sul-details-wizard__photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-background);
}
.sul-details-wizard__photo a { display: block; width: 100%; height: 100%; }
.sul-details-wizard__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sul-details-wizard__photo-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: var(--sul-spacing-xs);
  overflow-wrap: anywhere;
  text-align: center;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

/* Back / Step n of 6 / Next, stuck to the foot of the page while a long step scrolls. */
.sul-details-wizard__nav {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-base) 0;
  background: var(--sul-background);
}
.sul-details-wizard__count { font-size: var(--sul-font-sm); color: var(--sul-muted); }

@media (max-width: 640px) {
  .sul-details-wizard__stepper { display: none; }
  .sul-details-wizard__mobile { display: block; }
  .sul-details-wizard__grid2 { grid-template-columns: minmax(0, 1fr); }
  .sul-details-wizard__rv dl > div { grid-template-columns: minmax(0, 1fr); }
  .sul-details-wizard__count { display: none; }
  .sul-details-wizard__nav .sul-button { flex: 1; }
}

/* ---------------------------------------------------------------------------------------------
   Activity trail (migration 105): the shared pieces in clientapp/src/activity -- summary tiles,
   area chips, and the timeline -- first used by a business's History tab. Tones are class
   suffixes so one refusal looks the same on every screen that draws one.
   --------------------------------------------------------------------------------------------- */
.sul-admin-history { max-width: calc(var(--sul-spacing-3xl) * 34); }

.sul-activity-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sul-spacing-lg);
  margin-bottom: var(--sul-spacing-lg);
}

.sul-activity-head .sul-page-header { margin: 0; }
.sul-activity-head__btn { flex: none; padding: var(--sul-spacing-sm) var(--sul-spacing-base); }
.sul-activity-head__btn svg { width: var(--sul-font-base); height: var(--sul-font-base); }
.sul-activity-head__btn:hover:not([disabled]) { border-color: var(--sul-primary-action); color: var(--sul-primary-action); }

/* Tiles */
.sul-activity-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sul-spacing-compact);
  margin-bottom: var(--sul-spacing-base);
}

.sul-activity-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-surface);
  color: var(--sul-text);
  font: inherit;
  text-align: left;
}

button.sul-activity-tile { cursor: pointer; }
button.sul-activity-tile:hover { border-color: var(--sul-muted); }
button.sul-activity-tile[aria-pressed="true"] { border-color: var(--sul-text); box-shadow: 0 0 0 var(--sul-card-border) var(--sul-text); }
button.sul-activity-tile:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }

.sul-activity-tile__l {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-activity-tile__dot {
  width: var(--sul-spacing-sm);
  height: var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-danger);
}

.sul-activity-tile__v {
  font-size: var(--sul-font-2xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sul-activity-tile--alert .sul-activity-tile__v { color: var(--sul-danger); }

.sul-activity-notice {
  margin: 0 0 var(--sul-spacing-base);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-radius: var(--sul-radius-base);
  background: var(--sul-pastel-warning);
  color: var(--sul-warning-dark);
  font-size: var(--sul-font-sm);
}

/* Filter bar: the top half of one card whose bottom half is the feed. */
.sul-activity-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-bottom: none;
  border-radius: var(--sul-radius-xl) var(--sul-radius-xl) 0 0;
  background: var(--sul-surface);
}

/* The period is a link (it changes the read window), styled like the segment buttons beside it. */
.sul-rep-seg a {
  display: flex;
  align-items: center;
  height: var(--sul-avatar-sm);
  padding: 0 var(--sul-spacing-compact);
  border-radius: var(--sul-radius-base);
  color: var(--sul-muted);
  font-size: var(--sul-font-xs);
  white-space: nowrap;
  text-decoration: none;
}

.sul-rep-seg a.sul-rep-seg__on {
  background: var(--sul-surface);
  color: var(--sul-text);
  font-weight: 600;
  box-shadow: var(--sul-shadow-sm);
}

.sul-rep-seg a:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }

.sul-activity-filters__search { flex: 1 1 calc(var(--sul-spacing-3xl) * 6); }
.sul-activity-filters__search .sul-rep-srch input { width: 100%; }

.sul-activity-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-sm);
  width: 100%;
}

.sul-activity-chips__label {
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-muted);
  text-transform: uppercase;
}

.sul-activity-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xs) var(--sul-spacing-compact);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  color: var(--sul-text-secondary);
  font: inherit;
  font-size: var(--sul-font-xs);
  cursor: pointer;
}

.sul-activity-chip:hover { border-color: var(--sul-muted); }
.sul-activity-chip[aria-pressed="true"] { background: var(--sul-text); border-color: var(--sul-text); color: var(--sul-surface); }
.sul-activity-chip:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-activity-chip__n { font-size: var(--sul-font-micro); opacity: var(--sul-opacity-hover); font-variant-numeric: tabular-nums; }

/* Feed */
.sul-activity-feed {
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: 0 0 var(--sul-radius-xl) var(--sul-radius-xl);
  background: var(--sul-surface);
}

/* Used on its own (no filter bar above), the feed is a whole card. */
.sul-activity-feed:first-child { border-radius: var(--sul-radius-xl); }

.sul-activity-day {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-lg);
  border-top: var(--sul-card-border) solid var(--sul-border);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
  background: var(--sul-background);
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-muted);
}

.sul-activity-feed > section:first-child .sul-activity-day { border-top: none; }

.sul-activity-list { list-style: none; margin: 0; padding: 0; }

.sul-activity-ev {
  display: grid;
  grid-template-columns: calc(var(--sul-spacing-3xl) * 2.25) var(--sul-avatar-md) minmax(0, 1fr) auto;
  gap: var(--sul-spacing-base);
  align-items: start;
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
}

.sul-activity-ev + .sul-activity-ev { border-top: var(--sul-card-border) solid var(--sul-border); }
.sul-activity-ev:hover { background: var(--sul-background); }

.sul-activity-ev__time {
  padding-top: var(--sul-spacing-sm);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sul-activity-ico {
  display: grid;
  place-items: center;
  width: var(--sul-avatar-sm);
  height: var(--sul-avatar-sm);
  margin-top: var(--sul-spacing-xxs);
  border-radius: var(--sul-radius-pill);
}

.sul-activity-ico svg { width: var(--sul-font-base); height: var(--sul-font-base); }
.sul-activity-ico--danger { background: var(--sul-pastel-danger); color: var(--sul-danger); }
.sul-activity-ico--warning { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }
.sul-activity-ico--success { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-activity-ico--info { background: var(--sul-pastel-info); color: var(--sul-info-dark); }
.sul-activity-ico--primary { background: var(--sul-pastel-primary); color: var(--sul-primary-action-strong); }
.sul-activity-ico--secondary { background: var(--sul-secondary-bg); color: var(--sul-secondary-text); }
.sul-activity-ico--neutral { background: var(--sul-background); color: var(--sul-muted); }

.sul-activity-ev__body { min-width: 0; }

.sul-activity-ev__title {
  margin: var(--sul-spacing-xxs) 0 0;
  font-size: var(--sul-font-sm);
  font-weight: 600;
  color: var(--sul-text);
  overflow-wrap: anywhere;
}

.sul-activity-ev__times {
  display: inline-block;
  margin-left: var(--sul-spacing-xs);
  padding: 0 var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-pastel-danger);
  color: var(--sul-danger);
  font-size: var(--sul-font-micro);
  font-weight: 600;
  vertical-align: middle;
}

.sul-activity-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-xs);
  margin-top: var(--sul-spacing-xs);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

.sul-activity-by b { color: var(--sul-text); font-weight: 500; }
.sul-activity-by__sep { color: var(--sul-placeholder); }

.sul-activity-role {
  padding: 0 var(--sul-spacing-xs);
  border-radius: var(--sul-radius-sm);
  font-size: var(--sul-font-xxs);
  font-weight: 700;
  text-transform: uppercase;
}

.sul-activity-role--staff { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }
.sul-activity-role--customer { background: var(--sul-pastel-info); color: var(--sul-info-dark); }
.sul-activity-role--job,
.sul-activity-role--system { background: var(--sul-background); color: var(--sul-text-secondary); }

.sul-activity-ev__area {
  margin-top: var(--sul-spacing-xs);
  padding: 0 var(--sul-spacing-sm);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
  white-space: nowrap;
}

.sul-activity-toggle,
.sul-activity-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  margin-top: var(--sul-spacing-sm);
  padding: 0;
  border: none;
  background: none;
  color: var(--sul-primary-action);
  font: inherit;
  font-size: var(--sul-font-xs);
  font-weight: 600;
  cursor: pointer;
}

.sul-activity-link { margin-top: 0; }
.sul-activity-toggle svg { width: var(--sul-font-xs); height: var(--sul-font-xs); transition: transform var(--sul-transition-fast); }
.sul-activity-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.sul-activity-toggle:focus-visible,
.sul-activity-link:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }

.sul-activity-diff {
  max-width: calc(var(--sul-spacing-3xl) * 18);
  margin-top: var(--sul-spacing-sm);
  overflow: hidden;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  font-size: var(--sul-font-xs);
}

.sul-activity-diff table { width: 100%; border-collapse: collapse; }

.sul-activity-diff thead th {
  padding: var(--sul-spacing-xs) var(--sul-spacing-compact);
  background: var(--sul-background);
  color: var(--sul-muted);
  font-size: var(--sul-font-micro);
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
}

.sul-activity-diff tbody th,
.sul-activity-diff td {
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-top: var(--sul-card-border) solid var(--sul-border);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.sul-activity-diff__old { color: var(--sul-danger); text-decoration: line-through; }
.sul-activity-diff__new { color: var(--sul-success-dark); }
.sul-activity-diff__none { color: var(--sul-placeholder); }

.sul-activity-sub {
  list-style: none;
  margin: var(--sul-spacing-sm) 0 0;
  padding-left: var(--sul-spacing-base);
  border-left: var(--sul-spacing-xxs) solid var(--sul-border);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
  font-variant-numeric: tabular-nums;
}

.sul-activity-empty { padding: var(--sul-spacing-3xl); text-align: center; color: var(--sul-muted); }

.sul-activity-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-base);
  border-top: var(--sul-card-border) solid var(--sul-border);
  border-radius: 0 0 var(--sul-radius-xl) var(--sul-radius-xl);
  background: var(--sul-background);
  color: var(--sul-primary-action);
  font-size: var(--sul-font-sm);
  font-weight: 600;
  text-decoration: none;
}

.sul-activity-more svg { width: var(--sul-font-sm); height: var(--sul-font-sm); }

@media (max-width: 720px) {
  .sul-activity-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sul-activity-head { flex-wrap: wrap; align-items: flex-start; }
  .sul-activity-ev { grid-template-columns: var(--sul-avatar-md) minmax(0, 1fr); }
  .sul-activity-ev__time { grid-column: 2; order: -1; padding: 0; }
  .sul-activity-ico { grid-row: 1 / span 2; }
  .sul-activity-ev__area { display: none; }
}
/* Staff activity report (migration 105): a select in the filter bar, a day heading row, and
   prose cells that wrap rather than run on one line. */
.sul-rep-sel {
  padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-base);
  background: var(--sul-surface);
  color: var(--sul-text);
  font: inherit;
  font-size: var(--sul-font-sm);
}

.sul-rep-sel:focus-visible {
  outline: var(--sul-spacing-xxs) solid var(--sul-focus);
  outline-offset: var(--sul-spacing-xxs);
}

.sul-rep-dayrow th {
  background: var(--sul-background);
  font-size: var(--sul-font-xs);
  font-weight: 600;
  color: var(--sul-text-secondary);
}

.sul-rep-what {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------------------
   Customer connect link (migration 106): /connect, /connect/channels.
   The sign-in card's frame, a little wider, with one row per channel.
   --------------------------------------------------------------------------- */
.sul-connect-link {
  max-width: var(--sul-desktop-column-max);
}

.sul-connect-link__cards {
  list-style: none;
  margin: 0 0 var(--sul-spacing-lg);
  padding: 0;
  display: grid;
  gap: var(--sul-spacing-sm);
}

.sul-connect-link__card {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
}

.sul-connect-link__body {
  flex: 1 1 auto;
  min-width: 0;
}

.sul-connect-link__account,
.sul-connect-link__does {
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
  overflow-wrap: anywhere;
}

.sul-connect-link__action {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sul-connect-link__flash {
  margin: 0 0 var(--sul-spacing-base);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-radius: var(--sul-radius-base);
  background: var(--sul-success-light);
  color: var(--sul-success-dark);
  font-size: var(--sul-font-sm);
}

.sul-connect-link__options {
  display: grid;
  gap: var(--sul-spacing-sm);
  margin: 0 0 var(--sul-spacing-lg);
  padding: 0;
  border: 0;
}

@media (max-width: 640px) {
  .sul-connect-link__card {
    flex-wrap: wrap;
  }

  .sul-connect-link__action {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ContactOption: one business mobile or email as a clickable card, a checkbox in the console and
   a radio on /connect (migration 108). Selection is :has(), so no script keeps a class in step. */
.sul-contact-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  cursor: pointer;
}
.sul-contact-opt:hover { border-color: var(--sul-muted); }
.sul-contact-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sul-contact-opt__ic {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--sul-avatar-sm);
  height: var(--sul-avatar-sm);
  border-radius: var(--sul-radius-base);
  background: var(--sul-background);
  color: var(--sul-muted);
}
.sul-contact-opt__ic svg { width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); }
.sul-contact-opt__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: var(--sul-spacing-xxs); min-width: 0; }
.sul-contact-opt__name { font-size: var(--sul-font-sm); font-weight: 600; color: var(--sul-text); }
.sul-contact-opt__mono { font-family: ui-monospace, Consolas, monospace; font-size: var(--sul-font-sm); }
.sul-contact-opt__detail { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-contact-opt__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sul-spacing-xs); }
.sul-contact-opt:has(input:checked) {
  border-color: var(--sul-primary-action);
  background: var(--sul-pastel-primary);
  box-shadow: inset 0 0 0 var(--sul-card-border) var(--sul-primary-action);
}
.sul-contact-opt:has(input:checked) .sul-contact-opt__ic { background: var(--sul-primary-action); color: var(--sul-surface); }
.sul-contact-opt:has(input:focus-visible) { outline: var(--sul-spacing-xxs) solid var(--sul-primary-action); outline-offset: var(--sul-spacing-xxs); }

/* --- TokenExpiry (ui/token-expiry.tsx): when a channel's token expires --------------------------
   Shared by the console's Channels tab and the app's Channels page (migration 113). The default is a
   bordered row; --compact is one muted line under an account's name. --warn is amber and the words
   already say what to do, so colour is never the only signal. */
.sul-token {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  color: var(--sul-text-secondary);
}
.sul-token__ic { display: grid; flex: none; place-items: center; color: var(--sul-muted); }
.sul-token__ic svg { width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); }
.sul-token__body { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sul-spacing-xs) var(--sul-spacing-sm); min-width: 0; font-size: var(--sul-font-sm); }
.sul-token__label { font-size: var(--sul-font-micro); font-weight: 600; text-transform: uppercase; color: var(--sul-muted); }
.sul-token__value { font-weight: 600; color: var(--sul-text); font-variant-numeric: tabular-nums; }
.sul-token__note { color: var(--sul-muted); }
.sul-token__note::before { content: "·"; margin-right: var(--sul-spacing-sm); }

.sul-token--warn { border-color: var(--sul-warning); background: var(--sul-pastel-warning); }
.sul-token--warn .sul-token__ic,
.sul-token--warn .sul-token__value,
.sul-token--warn .sul-token__note { color: var(--sul-warning-dark); }

.sul-token--compact { padding: 0; border: 0; background: none; }
.sul-token--compact .sul-token__body { font-size: var(--sul-font-xs); }
.sul-token--compact .sul-token__ic svg { width: var(--sul-spacing-base); height: var(--sul-spacing-base); }
.sul-token--compact.sul-token--warn { background: none; }

/* --- Generate authorization link (generate-auth-link_1 mockup) -----------------------------------
   Rule for rule the mockup's own stylesheet, with tokens in place of its literals: the head and
   steps, the alerts, the step-by-step card (stepper, one slide, Back / Next pinned to its foot), the
   preview (tabs, Show placeholders, Desktop/Mobile, mail and phone frames), Links sent, a toast. */
#sul-admin-customer-link { display: flex; flex-direction: column; gap: var(--sul-spacing-lg); }
.sul-clink .sul-card { margin: 0; padding: 0; }
.sul-clink__phead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sul-spacing-lg); }
.sul-clink__h1 { margin: 0; font-size: var(--sul-font-2xl); font-weight: 700; color: var(--sul-text); }
.sul-clink__lede { margin: var(--sul-spacing-xxs) 0 0; color: var(--sul-muted); }
.sul-clink__flow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-xs); margin: 0; padding: 0; list-style: none; }
.sul-clink__flow li {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xs) var(--sul-spacing-compact) var(--sul-spacing-xs) var(--sul-spacing-xs);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  font-size: var(--sul-font-xs);
  color: var(--sul-text-secondary);
}
.sul-clink__flow b {
  display: grid;
  place-items: center;
  width: var(--sul-spacing-xl);
  height: var(--sul-spacing-xl);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-background);
  font-size: var(--sul-font-micro);
}
.sul-clink__flow .sul-clink__sep { padding: 0; border: 0; background: none; color: var(--sul-muted); }
.sul-clink__muted { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-clink__dim { font-weight: 400; color: var(--sul-muted); }
.sul-clink__hint { margin: var(--sul-spacing-compact) 0 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-clink__hint--top { margin: 0 0 var(--sul-spacing-compact); }
.sul-clink__hint--flat { margin: 0; }
.sul-clink__err { margin: var(--sul-spacing-sm) 0 0; font-size: var(--sul-font-xs); color: var(--sul-danger); }

/* Alerts: Link generated, Link not generated, a notice. */
.sul-clink__alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sul-spacing-compact);
  margin-bottom: var(--sul-spacing-lg);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  font-size: var(--sul-font-sm);
}
.sul-clink__alert:last-child { margin-bottom: 0; }
.sul-clink__alert > svg { flex: none; width: var(--sul-font-lg); height: var(--sul-font-lg); }
.sul-clink__alert--ok { border-color: var(--sul-success-light); background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-clink__alert--err { border-color: var(--sul-pastel-danger); background: var(--sul-pastel-danger); color: var(--sul-danger); }
.sul-clink__acts { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-sm); margin-top: var(--sul-spacing-sm); }
.sul-clink__why { display: block; margin-top: var(--sul-spacing-xs); font-family: ui-monospace, Consolas, monospace; font-size: var(--sul-font-xs); overflow-wrap: anywhere; }
.sul-clink__x { flex: none; margin-left: auto; padding: 0; border: 0; background: none; font-size: var(--sul-font-lg); line-height: 1; color: inherit; opacity: var(--sul-opacity-hover); cursor: pointer; }
.sul-clink__x:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }

/* Buttons, as the mockup draws them. */
.sul-clink__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sul-spacing-sm);
  min-height: calc(var(--sul-control-touch-min) - var(--sul-spacing-xs));
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  font: inherit;
  font-weight: 600;
  color: var(--sul-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.sul-clink__btn:hover { background: var(--sul-background); }
.sul-clink__btn:disabled { opacity: var(--sul-opacity-disabled); cursor: not-allowed; }
.sul-clink__btn:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-clink__btn--sm { min-height: calc(var(--sul-spacing-2xl) + var(--sul-spacing-sm)); padding: var(--sul-spacing-xs) var(--sul-spacing-compact); font-size: var(--sul-font-xs); }
.sul-clink__btn--danger { color: var(--sul-danger); }
.sul-clink__btn--danger-solid { border-color: var(--sul-danger); background: var(--sul-danger); color: var(--sul-surface); }
.sul-clink__btn--danger-solid:hover { background: var(--sul-danger); opacity: var(--sul-opacity-hover); }
.sul-clink__btn--primary { min-width: calc(var(--sul-desktop-card-min) * 0.62); min-height: var(--sul-control-touch-min); border-color: var(--sul-primary-action); background: var(--sul-primary-action); font-size: var(--sul-font-base); color: var(--sul-surface); }
.sul-clink__btn--primary:hover { background: var(--sul-primary-action-strong); }
.sul-clink__btn--next { min-width: calc(var(--sul-control-touch-min) * 2.2); border-color: var(--sul-text); background: var(--sul-text); color: var(--sul-surface); }
.sul-clink__btn--next:hover { background: var(--sul-text); opacity: var(--sul-opacity-hover); }
.sul-clink__hide { visibility: hidden; }
.sul-clink__spinner {
  width: var(--sul-spacing-lg);
  height: var(--sul-spacing-lg);
  border: calc(var(--sul-card-border) * 2) solid currentColor;
  border-top-color: transparent;
  border-radius: var(--sul-radius-pill);
  animation: sul-clink-spin 0.8s linear infinite;
}
@keyframes sul-clink-spin { to { transform: rotate(360deg); } }

/* The grid: the step-by-step card beside the preview. */
.sul-clink__grid { display: grid; grid-template-columns: minmax(calc(var(--sul-desktop-card-min) * 1.125), 38fr) minmax(0, 62fr); gap: var(--sul-spacing-xl); align-items: start; }
.sul-clink__sec { padding: var(--sul-spacing-lg) var(--sul-spacing-xl); }
.sul-clink__sec-h { display: flex; align-items: center; gap: var(--sul-spacing-compact); margin: 0 0 var(--sul-spacing-base); }
.sul-clink__sec-h h2 { flex: 1; margin: 0; font-size: var(--sul-font-base); font-weight: 700; color: var(--sul-text); }
.sul-clink__sec-h h2:focus { outline: none; }
.sul-clink__n {
  display: grid;
  flex: none;
  place-items: center;
  width: calc(var(--sul-spacing-xl) + var(--sul-spacing-xxs));
  height: calc(var(--sul-spacing-xl) + var(--sul-spacing-xxs));
  border-radius: var(--sul-radius-pill);
  background: var(--sul-text);
  font-size: var(--sul-font-micro);
  font-weight: 700;
  color: var(--sul-surface);
}
.sul-clink__aside { font-size: var(--sul-font-xs); color: var(--sul-muted); }

/* The step-by-step card: a stepper, one slide, Back / Next at the foot. */
.sul-clink__wiz { display: flex; flex-direction: column; }
.sul-clink .sul-card.sul-clink__wiz { overflow: visible; }
.sul-clink__stepper { display: flex; gap: var(--sul-spacing-xs); margin: 0; padding: var(--sul-spacing-base) var(--sul-spacing-lg) 0; border-bottom: var(--sul-card-border) solid var(--sul-border); list-style: none; }
.sul-clink__stepper li { flex: 1; min-width: 0; }
.sul-clink__stepper button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sul-spacing-xs);
  width: 100%;
  margin: 0;
  padding: 0 var(--sul-spacing-xxs) var(--sul-spacing-base);
  border: 0;
  border-bottom: calc(var(--sul-card-border) * 3) solid transparent;
  background: none;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.sul-clink__stepper button:disabled { cursor: default; }
.sul-clink__stepper button:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: calc(var(--sul-spacing-xxs) * -1); border-radius: var(--sul-radius-base); }
.sul-clink__dot {
  display: grid;
  place-items: center;
  width: calc(var(--sul-spacing-2xl) + var(--sul-spacing-xxs));
  height: calc(var(--sul-spacing-2xl) + var(--sul-spacing-xxs));
  border: calc(var(--sul-card-border) * 1.5) solid transparent;
  border-radius: var(--sul-radius-pill);
  background: var(--sul-background);
  font-size: var(--sul-font-xs);
  font-weight: 700;
  color: var(--sul-muted);
}
.sul-clink__stepper .sul-clink__lbl { max-width: 100%; overflow: hidden; font-size: var(--sul-font-xs); font-weight: 600; color: var(--sul-muted); text-overflow: ellipsis; white-space: nowrap; }
.sul-clink__val { max-width: 100%; min-height: var(--sul-spacing-lg); overflow: hidden; font-size: var(--sul-font-micro); color: var(--sul-muted); text-overflow: ellipsis; white-space: nowrap; }
.sul-clink__st--cur button { border-bottom-color: var(--sul-primary-action); }
.sul-clink__st--cur .sul-clink__dot { border-color: var(--sul-primary-action); background: var(--sul-pastel-primary); color: var(--sul-primary-action); }
.sul-clink__st--cur .sul-clink__lbl { color: var(--sul-text); }
.sul-clink__st--done .sul-clink__dot { background: var(--sul-success-dark); color: var(--sul-surface); }
.sul-clink__st--bad .sul-clink__dot { border-color: var(--sul-danger); background: var(--sul-pastel-danger); color: var(--sul-danger); }
.sul-clink__mprog { display: none; padding: var(--sul-spacing-base) var(--sul-spacing-lg) 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-clink__mprog progress { display: block; width: 100%; height: var(--sul-spacing-xs); margin-top: var(--sul-spacing-xs); border: 0; border-radius: var(--sul-radius-sm); background: var(--sul-background); appearance: none; overflow: hidden; }
.sul-clink__mprog progress::-webkit-progress-bar { background: var(--sul-background); }
.sul-clink__mprog progress::-webkit-progress-value { background: var(--sul-primary-action); }
.sul-clink__mprog progress::-moz-progress-bar { background: var(--sul-primary-action); }
.sul-clink__slides { position: relative; min-height: calc(var(--sul-desktop-card-min) * 1.375); }
.sul-clink__slide { animation: sul-clink-slide-in 0.22s ease; }
.sul-clink__slide--back { animation-name: sul-clink-slide-back; }
@keyframes sul-clink-slide-in { from { opacity: 0; transform: translateX(var(--sul-spacing-2xl)); } to { opacity: 1; transform: none; } }
@keyframes sul-clink-slide-back { from { opacity: 0; transform: translateX(calc(var(--sul-spacing-2xl) * -1)); } to { opacity: 1; transform: none; } }
.sul-clink__wnav {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-spacing-base) var(--sul-spacing-xl);
  border-top: var(--sul-card-border) solid var(--sul-border);
  border-radius: 0 0 var(--sul-card-radius) var(--sul-card-radius);
  background: var(--sul-surface);
}
.sul-clink__wnav .sul-clink__btn { min-width: calc(var(--sul-control-touch-min) * 2.2); }
.sul-clink__wnav .sul-clink__btn--primary { flex: none; min-width: calc(var(--sul-desktop-card-min) * 0.62); }
.sul-clink__count { flex: 1; text-align: center; font-size: var(--sul-font-xs); color: var(--sul-muted); white-space: nowrap; }

/* 1 Delivery channel */
.sul-clink__opts { display: grid; gap: var(--sul-spacing-sm); }
.sul-clink__opt {
  display: grid;
  grid-template-columns: var(--sul-spacing-xl) var(--sul-avatar-md) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-base) var(--sul-spacing-compact);
  border: calc(var(--sul-card-border) * 1.5) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-surface);
  cursor: pointer;
  transition: border-color var(--sul-transition-fast), background var(--sul-transition-fast);
}
.sul-clink__opt:hover { border-color: var(--sul-muted); }
.sul-clink__opt:has(input:checked) { border-color: var(--sul-primary-action); background: var(--sul-pastel-primary); }
.sul-clink__opt:has(input:focus-visible) { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-clink__opt--off { opacity: var(--sul-opacity-disabled); cursor: not-allowed; }
.sul-clink__opt input { width: var(--sul-font-lg); height: var(--sul-font-lg); margin: 0; accent-color: var(--sul-primary-action); }
.sul-clink__ic { display: grid; place-items: center; width: var(--sul-avatar-md); height: var(--sul-avatar-md); border-radius: var(--sul-radius-lg); background: var(--sul-background); color: var(--sul-text-secondary); }
.sul-clink__ic svg { width: var(--sul-font-lg); height: var(--sul-font-lg); }
.sul-clink__t { min-width: 0; }
.sul-clink__t b { display: block; font-size: var(--sul-font-sm); color: var(--sul-text); }
.sul-clink__t span { display: block; overflow: hidden; font-size: var(--sul-font-xs); color: var(--sul-muted); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.sul-clink__how { padding: var(--sul-spacing-xxs) var(--sul-spacing-sm); border-radius: var(--sul-radius-pill); font-size: var(--sul-font-micro); font-weight: 600; white-space: nowrap; }
.sul-clink__how--auto { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-clink__how--manual { background: var(--sul-pastel-info); color: var(--sul-info-dark); }

/* 2 Recipient details */
.sul-clink__rcps { display: grid; gap: var(--sul-spacing-sm); }
.sul-clink__rrow { display: flex; align-items: center; gap: var(--sul-spacing-base); padding: var(--sul-spacing-compact) var(--sul-spacing-base); border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-lg); cursor: pointer; }
.sul-clink__rrow:has(input:checked) { background: var(--sul-background); }
.sul-clink__rrow:has(input:focus-visible) { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-clink__rrow input { width: var(--sul-font-lg); height: var(--sul-font-lg); margin: 0; accent-color: var(--sul-primary-action); }
.sul-clink__k { width: calc(var(--sul-spacing-2xl) * 2.3); font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-clink__v { flex: 1; min-width: 0; font-weight: 500; color: var(--sul-text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sul-clink__tag { padding: var(--sul-card-border) var(--sul-spacing-sm); border-radius: var(--sul-radius-sm); background: var(--sul-background); font-size: var(--sul-font-micro); font-weight: 600; color: var(--sul-text-secondary); }
.sul-clink__tag--pri { background: var(--sul-role-viewer-bg); color: var(--sul-role-viewer); }
.sul-clink__reveal { padding: 0; border: 0; background: none; font: inherit; font-size: var(--sul-font-xs); font-weight: 600; color: var(--sul-primary-action); cursor: pointer; }
.sul-clink__reveal:hover { text-decoration: underline; }

/* 3 Link validity */
.sul-clink__seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sul-spacing-sm); }
.sul-clink__seg label { position: relative; cursor: pointer; }
.sul-clink__seg input { position: absolute; inset: 0; margin: 0; opacity: 0; }
.sul-clink__seg span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sul-card-border);
  min-height: calc(var(--sul-control-touch-min) * 1.3);
  padding: var(--sul-spacing-sm) var(--sul-spacing-xs);
  border: calc(var(--sul-card-border) * 1.5) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  text-align: center;
}
.sul-clink__seg b { font-size: var(--sul-font-sm); color: var(--sul-text); }
.sul-clink__seg small { font-size: var(--sul-font-micro); line-height: 1.25; color: var(--sul-muted); }
.sul-clink__seg input:checked + span { border-color: var(--sul-primary-action); background: var(--sul-pastel-primary); }
.sul-clink__seg input:checked + span b { color: var(--sul-primary-action); }
.sul-clink__seg input:focus-visible + span { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-clink__expline { display: flex; align-items: center; gap: var(--sul-spacing-sm); margin-top: var(--sul-spacing-base); padding: var(--sul-spacing-sm) var(--sul-spacing-base); border-radius: var(--sul-radius-lg); background: var(--sul-background); font-size: var(--sul-font-xs); color: var(--sul-text); }
.sul-clink__expline svg { flex: none; width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); }

/* 4 Message: template chips, what the template is for, the editable share text. */
.sul-clink__flbl { font-size: var(--sul-font-xs); font-weight: 600; color: var(--sul-text); }
.sul-clink__row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sul-spacing-sm); margin-top: var(--sul-spacing-sm); }
.sul-clink__row-between--top { margin: 0 0 var(--sul-spacing-sm); }
.sul-clink__tlink { font-size: var(--sul-font-xs); font-weight: 600; color: var(--sul-primary-action); text-decoration: none; }
.sul-clink__tlink:hover { text-decoration: underline; }
.sul-clink__tchips { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-sm); }
.sul-clink__tchip { position: relative; cursor: pointer; }
.sul-clink__tchip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.sul-clink__tchip span {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  min-height: calc(var(--sul-spacing-2xl) * 1.5);
  padding: var(--sul-spacing-xs) var(--sul-spacing-lg);
  border: calc(var(--sul-card-border) * 1.5) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  font-size: var(--sul-font-sm);
  font-weight: 500;
  color: var(--sul-text);
  transition: border-color var(--sul-transition-fast), background var(--sul-transition-fast);
}
.sul-clink__tchip:hover span { border-color: var(--sul-muted); }
.sul-clink__tchip input:checked + span { border-color: var(--sul-primary-action); background: var(--sul-pastel-primary); font-weight: 600; color: var(--sul-primary-action); }
.sul-clink__tchip input:checked + span::before { content: "✓"; font-weight: 700; }
.sul-clink__tchip input:focus-visible + span { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-clink__star { padding: 0 var(--sul-spacing-xs); border-radius: var(--sul-radius-pill); background: var(--sul-pastel-success); font-size: var(--sul-font-micro); font-style: normal; font-weight: 700; color: var(--sul-success-dark); }
.sul-clink__tdesc { margin: var(--sul-spacing-compact) 0 0; padding: var(--sul-spacing-sm) var(--sul-spacing-compact); border-radius: var(--sul-radius-lg); background: var(--sul-background); font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-clink__tdesc:empty { display: none; }
.sul-clink__edit { margin-top: var(--sul-spacing-base); border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-lg); }
.sul-clink__edit summary { display: flex; justify-content: space-between; padding: var(--sul-spacing-sm) var(--sul-spacing-base); font-size: var(--sul-font-xs); font-weight: 600; list-style: none; cursor: pointer; }
.sul-clink__edit summary::-webkit-details-marker { display: none; }
.sul-clink__edit[open] summary { border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-clink__edit-in { padding: var(--sul-spacing-base); }
.sul-clink__edit textarea {
  width: 100%;
  min-height: calc(var(--sul-control-touch-min) * 2.7);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  font: inherit;
  line-height: 1.5;
  color: var(--sul-text);
  resize: vertical;
}
.sul-clink__vars { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); margin-top: var(--sul-spacing-sm); }
.sul-clink__vars button { padding: var(--sul-spacing-xxs) var(--sul-spacing-sm); border: var(--sul-card-border) dashed var(--sul-border); border-radius: var(--sul-radius-base); background: var(--sul-surface); font-family: ui-monospace, Consolas, monospace; font-size: var(--sul-font-xs); color: var(--sul-text); cursor: pointer; }
.sul-clink__replace { display: flex; gap: var(--sul-spacing-sm); margin-top: var(--sul-spacing-base); padding: var(--sul-spacing-sm) var(--sul-spacing-compact); border: var(--sul-card-border) solid var(--sul-warning-light); border-radius: var(--sul-radius-lg); background: var(--sul-pastel-warning); font-size: var(--sul-font-xs); color: var(--sul-warning-dark); }
.sul-clink__replace svg { flex: none; width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); margin-top: var(--sul-card-border); }

/* The preview */
.sul-clink__pv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sul-spacing-base); padding: var(--sul-spacing-compact) var(--sul-spacing-base); border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-clink__ptabs { display: flex; gap: var(--sul-spacing-xxs); }
.sul-clink__ptabs button { display: flex; align-items: center; gap: var(--sul-spacing-xs); padding: var(--sul-spacing-sm) var(--sul-spacing-base); border: 0; border-radius: var(--sul-radius-base); background: none; font: inherit; font-weight: 600; color: var(--sul-muted); cursor: pointer; }
.sul-clink__ptabs button[aria-selected="true"] { background: var(--sul-background); color: var(--sul-text); }
.sul-clink__ptabs button:disabled { opacity: var(--sul-opacity-disabled); cursor: not-allowed; }
.sul-clink__ptabs button:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-clink__pv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-compact); }
.sul-clink__chk { display: flex; align-items: center; gap: var(--sul-spacing-xs); font-size: var(--sul-font-xs); color: var(--sul-muted); cursor: pointer; }
.sul-clink__chk input { accent-color: var(--sul-primary-action); }
.sul-clink__toggle { display: inline-flex; padding: var(--sul-spacing-xxs); border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-lg); background: var(--sul-surface); }
.sul-clink__toggle button { display: flex; align-items: center; gap: var(--sul-spacing-xs); padding: var(--sul-spacing-xs) var(--sul-spacing-compact); border: 0; border-radius: var(--sul-radius-base); background: none; font: inherit; font-size: var(--sul-font-xs); font-weight: 600; color: var(--sul-muted); cursor: pointer; }
.sul-clink__toggle button svg { width: var(--sul-font-sm); height: var(--sul-font-sm); }
.sul-clink__toggle button[aria-pressed="true"] { background: var(--sul-text); color: var(--sul-surface); }
.sul-clink__toggle button:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-clink__stage { display: flex; justify-content: center; min-height: calc(var(--sul-desktop-card-min) * 2); padding: var(--sul-spacing-2xl); border-radius: 0; background: var(--sul-background); }
.sul-clink__empty { align-self: center; padding: var(--sul-spacing-2xl); text-align: center; color: var(--sul-muted); }
.sul-clink__panel { display: flex; justify-content: center; width: 100%; }
/* display: flex above would otherwise beat the [hidden] attribute and show every tab at once. */
.sul-clink__panel[hidden] { display: none; }
.sul-clink__pv-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); padding: var(--sul-spacing-compact) var(--sul-spacing-lg); border-top: var(--sul-card-border) solid var(--sul-border); font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-clink__pv-note:empty { display: none; }

/* The email client frame. Its body is the server's own email, in the frame. */
.sul-clink__mail { width: 100%; max-width: calc(var(--sul-desktop-card-min) * 2.375); overflow: hidden; border-radius: var(--sul-radius-xl); background: var(--sul-surface); box-shadow: var(--sul-shadow-sm); transition: max-width var(--sul-transition-base); }
.sul-clink__stage--mobile .sul-clink__mail { max-width: calc(var(--sul-desktop-card-min) * 1.22); }
.sul-clink__envelope { padding: var(--sul-spacing-lg) var(--sul-spacing-xl); border-bottom: var(--sul-card-border) solid var(--sul-border); font-size: var(--sul-font-sm); }
.sul-clink__envelope dl { display: grid; grid-template-columns: calc(var(--sul-spacing-2xl) * 3) minmax(0, 1fr); gap: var(--sul-spacing-xxs) var(--sul-spacing-compact); margin: 0 0 var(--sul-spacing-compact); }
.sul-clink__envelope dt { color: var(--sul-muted); }
.sul-clink__envelope dd { margin: 0; overflow-wrap: anywhere; }
.sul-clink__subj { margin: 0; font-size: var(--sul-font-lg); font-weight: 700; line-height: 1.35; color: var(--sul-text); }
.sul-clink__prehead { margin: var(--sul-spacing-xxs) 0 0; font-size: var(--sul-font-sm); color: var(--sul-muted); }
.sul-clink__mail-warn { margin: var(--sul-spacing-xs) 0 0; font-size: var(--sul-font-xs); color: var(--sul-warning-dark); }
.sul-clink__mail-frame { display: block; width: 100%; height: 70vh; border: 0; background: var(--sul-surface); }

/* The WhatsApp / SMS phone frame */
.sul-clink__phone {
  align-self: flex-start;
  width: 100%;
  max-width: calc(var(--sul-desktop-card-min) * 1.25);
  overflow: hidden;
  border: var(--sul-spacing-sm) solid var(--sul-text);
  border-radius: var(--sul-radius-3xl);
  background: var(--sul-pastel-warning);
  box-shadow: var(--sul-shadow-md);
}
.sul-clink__stage--desktop .sul-clink__phone { max-width: calc(var(--sul-desktop-card-min) * 1.75); border-width: var(--sul-card-border); border-color: var(--sul-border); border-radius: var(--sul-radius-xl); }
.sul-clink__bar { display: flex; align-items: center; gap: var(--sul-spacing-compact); padding: var(--sul-spacing-base) var(--sul-spacing-base); background: var(--sul-success-dark); color: var(--sul-surface); }
.sul-clink__phone--sms .sul-clink__bar { border-bottom: var(--sul-card-border) solid var(--sul-border); background: var(--sul-background); color: var(--sul-text); }
.sul-clink__bar-av { display: grid; flex: none; place-items: center; width: calc(var(--sul-avatar-sm) + var(--sul-spacing-xs)); height: calc(var(--sul-avatar-sm) + var(--sul-spacing-xs)); border-radius: var(--sul-radius-pill); background: var(--sul-overlay); font-size: var(--sul-font-xs); font-weight: 700; }
.sul-clink__phone--sms .sul-clink__bar-av { background: var(--sul-border); }
.sul-clink__bar small { display: block; font-size: var(--sul-font-micro); opacity: var(--sul-opacity-hover); }
.sul-clink__chat { min-height: calc(var(--sul-desktop-card-min) * 1.375); padding: var(--sul-spacing-lg) var(--sul-spacing-base) var(--sul-spacing-2xl); }
.sul-clink__phone--sms { background: var(--sul-surface); }
.sul-clink__bubble {
  position: relative;
  max-width: 88%;
  margin-left: auto;
  padding: var(--sul-spacing-compact) var(--sul-spacing-base) var(--sul-spacing-lg);
  border-radius: var(--sul-radius-xl) var(--sul-radius-xs) var(--sul-radius-xl) var(--sul-radius-xl);
  background: var(--sul-success-light);
  box-shadow: var(--sul-shadow-sm);
  font-size: var(--sul-font-sm);
  line-height: 1.55;
  color: var(--sul-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sul-clink__phone--sms .sul-clink__bubble { border-radius: var(--sul-radius-2xl) var(--sul-radius-2xl) var(--sul-radius-sm) var(--sul-radius-2xl); background: var(--sul-background); }
.sul-clink__tm { position: absolute; right: var(--sul-spacing-sm); bottom: var(--sul-spacing-xxs); font-size: var(--sul-font-micro); color: var(--sul-muted); }
.sul-clink__bub-link { color: var(--sul-link); }
.sul-clink__ph { padding: 0 var(--sul-spacing-xxs); border-radius: var(--sul-radius-sm); background: var(--sul-role-viewer-bg); font-family: ui-monospace, Consolas, monospace; font-size: var(--sul-font-xs); color: var(--sul-role-viewer); }

/* Links sent */
.sul-clink__hist { overflow: hidden; }
.sul-clink__hist-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sul-spacing-base); padding: var(--sul-spacing-base) var(--sul-spacing-lg); border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-clink__hist-h h2 { margin: 0; font-size: var(--sul-font-base); font-weight: 700; color: var(--sul-text); }
.sul-clink__hist-h p { margin: var(--sul-spacing-xxs) 0 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-clink__hist-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); }
.sul-clink__hist-tools select { width: auto; padding: var(--sul-spacing-xs) calc(var(--sul-spacing-2xl) + var(--sul-spacing-xs)) var(--sul-spacing-xs) var(--sul-spacing-compact); border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-lg); background-color: var(--sul-surface); font: inherit; font-size: var(--sul-font-xs); color: var(--sul-text); }
.sul-clink__tbl-wrap { overflow-x: auto; }
.sul-clink__tbl { width: 100%; border-collapse: collapse; font-size: var(--sul-font-sm); }
.sul-clink__tbl th { padding: var(--sul-spacing-compact) var(--sul-spacing-base); border-bottom: var(--sul-card-border) solid var(--sul-border); background: var(--sul-background); text-align: left; font-size: var(--sul-font-micro); font-weight: 600; text-transform: uppercase; color: var(--sul-muted); white-space: nowrap; }
.sul-clink__tbl th button { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); padding: 0; border: 0; background: none; font: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.sul-clink__tbl th button:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); }
.sul-clink__tbl td { padding: var(--sul-spacing-base); border-bottom: var(--sul-card-border) solid var(--sul-border); vertical-align: top; color: var(--sul-text); }
.sul-clink__tbl tbody tr:last-child td { border-bottom: 0; }
.sul-clink__tbl tbody tr:hover { background: var(--sul-background); }
.sul-clink__none { padding: var(--sul-spacing-2xl); text-align: center; color: var(--sul-muted); }
.sul-clink__nowrap { white-space: nowrap; }
.sul-clink__rcp { display: block; font-variant-numeric: tabular-nums; }
.sul-clink__sub { display: block; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-clink__left { font-size: var(--sul-font-micro); font-weight: 600; color: var(--sul-warning-dark); }
.sul-clink__chn { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); }
.sul-clink__chn span { padding: 0 var(--sul-spacing-xs); border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-sm); background: var(--sul-surface); font-size: var(--sul-font-micro); }
.sul-clink__chn .sul-clink__chn--failed { border-color: var(--sul-danger); color: var(--sul-danger); }
.sul-clink__chn .sul-clink__chn--not_delivered { border-color: var(--sul-warning); color: var(--sul-warning-dark); }
.sul-clink__badge { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); padding: var(--sul-spacing-xxs) var(--sul-spacing-sm); border-radius: var(--sul-radius-pill); font-size: var(--sul-font-xs); font-weight: 600; white-space: nowrap; }
.sul-clink__badge::before { content: ""; width: var(--sul-spacing-xs); height: var(--sul-spacing-xs); border-radius: var(--sul-radius-pill); background: currentColor; }
.sul-clink__badge--active { background: var(--sul-pastel-info); color: var(--sul-info-dark); }
.sul-clink__badge--used { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-clink__badge--expired { background: var(--sul-background); color: var(--sul-muted); }
.sul-clink__badge--revoked { background: var(--sul-pastel-danger); color: var(--sul-danger); }
.sul-clink__tacts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sul-spacing-xs); }

/* The toast */
.sul-clink__toast {
  position: fixed;
  left: 50%;
  bottom: var(--sul-spacing-xl);
  z-index: 50;
  padding: var(--sul-spacing-compact) var(--sul-spacing-lg);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-text);
  font-size: var(--sul-font-sm);
  color: var(--sul-surface);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(var(--sul-spacing-xl));
  transition: opacity var(--sul-transition-base), transform var(--sul-transition-base);
}
.sul-clink__toast--on { opacity: 1; transform: translateX(-50%); }

/* Shared with Message templates (message-templates.tsx): its field labels and version list. */
.sul-clink__label { padding: 0; margin-bottom: var(--sul-spacing-xs); font-size: var(--sul-font-sm); font-weight: 600; color: var(--sul-text); }
.sul-clink__list { margin: 0; padding: 0; list-style: none; }
.sul-clink__row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto;
  gap: var(--sul-spacing-base);
  align-items: center;
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
}
.sul-clink__row + .sul-clink__row { border-top: var(--sul-card-border) solid var(--sul-border); }
.sul-clink__who { display: flex; flex-direction: column; gap: var(--sul-spacing-xxs); min-width: 0; }
.sul-clink__who strong { font-size: var(--sul-font-sm); color: var(--sul-text); }
.sul-clink__act { display: flex; justify-content: flex-end; }

@media (max-width: 520px) {
  .sul-clink__stepper { display: none; }
  .sul-clink__mprog { display: block; }
  .sul-clink__slides { min-height: 0; }
  .sul-clink__wnav .sul-clink__btn { flex: 1; min-width: 0; }
  .sul-clink__count { display: none; }
  .sul-clink__wnav .sul-clink__btn--primary { flex: 2; min-width: 0; }
}
@media (max-width: 1100px) {
  .sul-clink__grid { grid-template-columns: minmax(0, 1fr); }
  .sul-clink__stage { min-height: auto; }
}
@media (max-width: 760px) {
  .sul-clink__sec { padding: var(--sul-spacing-lg); }
  .sul-clink__seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sul-clink__stage { padding: var(--sul-spacing-base); }
  .sul-clink__opt { grid-template-columns: var(--sul-spacing-xl) var(--sul-avatar-sm) minmax(0, 1fr); }
  .sul-clink__opt .sul-clink__how { grid-column: 3; justify-self: start; }
  .sul-clink__row { grid-template-columns: minmax(0, 1fr); }
  .sul-clink__act { justify-content: flex-start; }
  /* The table becomes one card per link, each cell labelled. */
  .sul-clink__tbl, .sul-clink__tbl tbody, .sul-clink__tbl tr, .sul-clink__tbl td { display: block; }
  .sul-clink__tbl thead { display: none; }
  .sul-clink__tbl tr { padding: var(--sul-spacing-base) var(--sul-spacing-lg); border-bottom: var(--sul-card-border) solid var(--sul-border); }
  .sul-clink__tbl td { display: grid; grid-template-columns: calc(var(--sul-desktop-card-min) * 0.33) minmax(0, 1fr); gap: var(--sul-spacing-sm); padding: var(--sul-spacing-xxs) 0; border: 0; }
  .sul-clink__tbl td::before { content: attr(data-label); font-size: var(--sul-font-xs); color: var(--sul-muted); }
  .sul-clink__tbl td.sul-clink__ta { display: block; padding-top: var(--sul-spacing-sm); }
  .sul-clink__tbl td.sul-clink__ta::before { display: none; }
  .sul-clink__tacts { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .sul-clink__spinner, .sul-clink__slide { animation: none; }
  .sul-clink__opt, .sul-clink__mail, .sul-clink__tchip span, .sul-clink__toast { transition: none; }
}

/* Message templates' editor fields (message-templates.tsx), in the Customer link tab's family of
   classes because the two pages were built together. */
.sul-clink__msg { display: flex; flex-direction: column; gap: var(--sul-spacing-sm); min-width: 0; margin: 0; padding: 0; border: 0; }
.sul-clink__msg-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); }
.sul-clink__msg-row .sul-input { flex: 1 1 0; min-width: 0; }

/* The previews and the template editor open as the right-hand drawer (.sul-dialog--right), WIDER
   than its default, because an email is a full desktop width and the editor sits beside it. After
   .sul-dialog--right in the file, same [open] qualifier plus a class, so it wins only the width. */
.sul-dialog--right.sul-clink-preview[open] {
  width: min(100%, calc(var(--sul-desktop-dialog-max) * 1.6));
  max-width: calc(var(--sul-desktop-dialog-max) * 1.6);
}

/* A modal <dialog> makes the page behind it inert but still lets it scroll under the wheel, so the
   page appeared to move behind an open drawer. Freeze it while any of our dialogs is open. */
html:has(dialog.sul-dialog[open]) { overflow: hidden; }
.sul-clink-preview__meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sul-spacing-xxs) var(--sul-spacing-sm);
  margin: 0 0 var(--sul-spacing-base);
  font-size: var(--sul-font-sm);
}
.sul-clink-preview__meta dt { color: var(--sul-muted); }
.sul-clink-preview__meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--sul-text); }
.sul-clink__channels { display: flex; flex-direction: column; gap: var(--sul-spacing-xs); }
.sul-clink-preview__section {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-sm);
  padding-bottom: var(--sul-spacing-base);
  margin-bottom: var(--sul-spacing-base);
  border-bottom: var(--sul-card-border) solid var(--sul-border);
}
.sul-clink-preview__section:last-child { border-bottom: 0; margin-bottom: 0; }
.sul-clink-preview__section .sul-clink-preview__meta { margin: 0; }
.sul-clink-preview__chats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sul-spacing-base); margin-top: var(--sul-spacing-base); }
.sul-clink-preview__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sul-spacing-sm); }

.sul-mail { display: flex; flex-direction: column; gap: var(--sul-spacing-sm); }
.sul-mail__switch { align-self: flex-start; }
.sul-mail__stage {
  display: flex;
  justify-content: center;
  padding: var(--sul-spacing-base);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-background);
}
.sul-mail__frame {
  width: 100%;
  max-width: var(--sul-breakpoint-steps-label-min);
  height: 70vh;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
}
.sul-mail__frame--mobile { max-width: calc(var(--sul-breakpoint-mobile-max) * 0.6); }
.sul-mail__chat { display: flex; flex-direction: column; gap: var(--sul-spacing-xxs); min-width: 0; }
.sul-mail__bubble {
  margin: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-pastel-success);
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* The Message templates page (/admin/message-templates, message-templates.tsx), after the
   message-templates mockup: the templates grouped by key on the left, the chosen one edited in
   place on the right (channel tabs, the form beside the server's own preview, version history).
   Channel colours: Email info, SMS secondary, WhatsApp success. */
.sul-mtp-page { width: 100%; max-width: var(--sul-desktop-content-max); margin: 0 auto; }
.sul-mtp { display: grid; grid-template-columns: minmax(0, var(--sul-desktop-card-min)) minmax(0, 1fr); gap: var(--sul-spacing-base); align-items: start; }
.sul-mtp__list {
  position: sticky;
  top: var(--sul-spacing-base);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--sul-desktop-topbar-height) * 3);
  padding: 0;
  overflow: hidden;
}
.sul-mtp__list-top { display: flex; flex-direction: column; gap: var(--sul-spacing-sm); padding: var(--sul-spacing-sm); border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-mtp__list-top .sul-sd__search { flex: none; width: 100%; }
.sul-mtp__filter { display: flex; gap: var(--sul-spacing-xxs); }
.sul-mtp__filter-btn {
  flex: 1;
  min-height: calc(var(--sul-control-touch-min) * 0.65);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-base);
  background: var(--sul-surface);
  font: inherit;
  font-size: var(--sul-font-xs);
  color: var(--sul-text-secondary);
  cursor: pointer;
}
.sul-mtp__filter-btn--on { background: var(--sul-primary-action); border-color: var(--sul-primary-action); color: var(--sul-surface); font-weight: 600; }
.sul-mtp__filter-btn:focus-visible { outline: calc(var(--sul-card-border) * 2) solid var(--sul-focus); outline-offset: var(--sul-card-border); }
.sul-mtp__list-body { overflow-y: auto; }
.sul-mtp__group {
  margin: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact) var(--sul-spacing-xxs);
  font-size: var(--sul-font-micro);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sul-muted);
}
.sul-mtp__item {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xxs);
  width: 100%;
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border: 0;
  border-left: calc(var(--sul-card-border) * 3) solid transparent;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.sul-mtp__item:hover { background: var(--sul-background); }
.sul-mtp__item:focus-visible { outline: calc(var(--sul-card-border) * 2) solid var(--sul-focus); outline-offset: calc(var(--sul-card-border) * -2); }
.sul-mtp__item--current, .sul-mtp__item--current:hover { background: var(--sul-pastel-primary); border-left-color: var(--sul-primary-action); }
.sul-mtp__item-name { font-size: var(--sul-font-sm); font-weight: 600; color: var(--sul-text); }
.sul-mtp__dot {
  display: inline-block;
  width: var(--sul-spacing-xs);
  height: var(--sul-spacing-xs);
  margin-left: var(--sul-spacing-xs);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-warning);
  vertical-align: middle;
}
.sul-mtp__chips { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xxs); }
.sul-mtp__cp {
  padding: 0 var(--sul-spacing-xs);
  border-radius: var(--sul-radius-pill);
  font-size: var(--sul-font-micro);
  font-weight: 600;
  white-space: nowrap;
}
.sul-mtp__cp--email { background: var(--sul-pastel-info); color: var(--sul-info-dark); }
.sul-mtp__cp--sms { background: var(--sul-secondary-bg); color: var(--sul-secondary-text); }
.sul-mtp__cp--whatsapp { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-mtp__cp--off { opacity: var(--sul-opacity-disabled); }
.sul-mtp__cp--none { background: var(--sul-background); color: var(--sul-muted); text-decoration: line-through; }
.sul-mtp__list-foot { margin: 0; padding: var(--sul-spacing-sm) var(--sul-spacing-compact); border-top: var(--sul-card-border) solid var(--sul-border); font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-mtp__ed { padding: 0; overflow: hidden; min-width: 0; }
.sul-mtp__head { display: flex; gap: var(--sul-spacing-compact); align-items: flex-start; justify-content: space-between; padding: var(--sul-spacing-base) var(--sul-spacing-base) 0; }
.sul-mtp__head-text { min-width: 0; }
.sul-mtp__title { margin: 0; font-size: var(--sul-font-lg); }
.sul-mtp__internal {
  margin-left: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xxs) var(--sul-spacing-xs);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-role-content-admin-bg);
  color: var(--sul-role-content-admin);
  font-size: var(--sul-font-micro);
  font-weight: 700;
  vertical-align: middle;
}
.sul-mtp__key { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-mtp__use { margin: var(--sul-spacing-xxs) 0 0; font-size: var(--sul-font-sm); color: var(--sul-text-secondary); }
.sul-mtp__tabs { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xxs); padding: var(--sul-spacing-compact) var(--sul-spacing-base) 0; border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-mtp__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  margin-bottom: calc(var(--sul-card-border) * -1);
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border: 0;
  border-bottom: calc(var(--sul-card-border) * 2) solid transparent;
  background: none;
  font: inherit;
  font-size: var(--sul-font-sm);
  color: var(--sul-text-secondary);
  cursor: pointer;
}
.sul-mtp__tab--current { border-bottom-color: var(--sul-primary-action); color: var(--sul-text); font-weight: 600; }
.sul-mtp__tab--missing { color: var(--sul-muted); }
.sul-mtp__tab:focus-visible { outline: calc(var(--sul-card-border) * 2) solid var(--sul-focus); outline-offset: calc(var(--sul-card-border) * -2); }
.sul-mtp__tab-dot { width: var(--sul-spacing-xs); height: var(--sul-spacing-xs); border-radius: var(--sul-radius-pill); }
.sul-mtp__tab-dot--email { background: var(--sul-info); }
.sul-mtp__tab-dot--sms { background: var(--sul-secondary); }
.sul-mtp__tab-dot--whatsapp { background: var(--sul-success); }
.sul-mtp__tab-ver { font-size: var(--sul-font-micro); font-weight: 400; color: var(--sul-muted); }

.sul-mtp__eb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--sul-desktop-add-channel-max)); }
.sul-mtp__form { display: flex; flex-direction: column; gap: var(--sul-spacing-base); min-width: 0; padding: var(--sul-spacing-base); border-right: var(--sul-card-border) solid var(--sul-border); }
.sul-mtp__fields { display: flex; flex-direction: column; gap: var(--sul-spacing-base); min-width: 0; margin: 0; padding: 0; border: 0; }
.sul-mtp__meta { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-sm); align-items: center; font-size: var(--sul-font-sm); color: var(--sul-text-secondary); }
.sul-mtp__notice {
  margin: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact) var(--sul-spacing-sm) var(--sul-spacing-xl);
  border-radius: var(--sul-radius-base);
  background: var(--sul-pastel-warning);
  font-size: var(--sul-font-sm);
  color: var(--sul-warning-dark);
}
.sul-mtp__notice--error { background: var(--sul-pastel-danger); color: var(--sul-danger); }
.sul-mtp__vars { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); align-items: center; }
.sul-mtp__acts { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-sm); align-items: center; }
.sul-mtp__note { margin-left: auto; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-mtp__hist { padding-top: var(--sul-spacing-compact); border-top: var(--sul-card-border) solid var(--sul-border); }
.sul-mtp__hist-title { margin: 0 0 var(--sul-spacing-xs); font-size: var(--sul-font-xs); text-transform: uppercase; color: var(--sul-text-secondary); }
.sul-mtp__hist-list { margin: 0; padding: 0; list-style: none; }
.sul-mtp__hv { display: flex; gap: var(--sul-spacing-sm); align-items: center; padding: var(--sul-spacing-xxs) 0; font-size: var(--sul-font-sm); }
.sul-mtp__hv-ver { min-width: var(--sul-spacing-xl); }
.sul-mtp__hv-who { flex: 1; color: var(--sul-text-secondary); }
.sul-mtp__hv-cur { font-size: var(--sul-font-micro); font-weight: 700; text-transform: uppercase; color: var(--sul-success-dark); }
.sul-mtp__hv-btn { border: 0; background: none; padding: 0; font: inherit; font-size: var(--sul-font-xs); font-weight: 600; color: var(--sul-primary-action); cursor: pointer; }
.sul-mtp__hv-btn:disabled { opacity: var(--sul-opacity-disabled); cursor: not-allowed; }
.sul-mtp__pv { display: flex; flex-direction: column; gap: var(--sul-spacing-sm); min-width: 0; padding: var(--sul-spacing-base); background: var(--sul-background); }
.sul-mtp__pvh { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); align-items: center; font-size: var(--sul-font-xs); color: var(--sul-text-secondary); }
.sul-mtp__pvh strong { color: var(--sul-text); }
.sul-mtp__sample { display: inline-flex; gap: var(--sul-spacing-xxs); align-items: center; margin-left: auto; cursor: pointer; }
/* The email grows to its full height (EmailFrame fit), so the preview never scrolls inside itself. */
.sul-mtp__pv .sul-mail__frame--fit { height: var(--sul-mail-frame-fit, 60vh); }
.sul-mtp__missing { padding: var(--sul-spacing-2xl) var(--sul-spacing-base); }

@media (max-width: 1100px) {
  .sul-mtp__eb { grid-template-columns: minmax(0, 1fr); }
  .sul-mtp__form { border-right: 0; border-bottom: var(--sul-card-border) solid var(--sul-border); }
}
@media (max-width: 760px) {
  .sul-mtp { grid-template-columns: minmax(0, 1fr); }
  .sul-mtp__list { position: static; max-height: none; }
}

.sul-mt__item {
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-sm);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
}
.sul-mt__item .sul-button { align-self: flex-start; }
.sul-mt__chips { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); }
.sul-mt__chip {
  padding: var(--sul-spacing-xxs) var(--sul-spacing-sm);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-surface);
  font-family: ui-monospace, Consolas, monospace;
  font-size: var(--sul-font-xs);
  color: var(--sul-text);
  cursor: pointer;
}
.sul-mt__chip:hover { border-color: var(--sul-primary-action); color: var(--sul-primary-action-strong); }
.sul-mt__chip:focus-visible { outline: calc(var(--sul-card-border) * 2) solid var(--sul-focus); outline-offset: var(--sul-card-border); }

@media (max-width: 900px) {
  .sul-clink-preview__chats { grid-template-columns: minmax(0, 1fr); }
}

/* --- Bulk import (/admin/bulk-import, bulk-import.tsx) ----------------------------------------
   Three numbered step cards (market, add ids, review) and a result card in the left column, the
   file guide in the right one, and an action bar pinned under the steps. Tables reuse .sul-table
   and .sul-table__wrap; statuses reuse .sul-pill. */
.sul-bulk { display: flex; flex-direction: column; gap: var(--sul-spacing-lg); }

.sul-bulk__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sul-desktop-card-min);
  gap: var(--sul-spacing-xl);
  align-items: start;
  padding: 0 var(--sul-card-padding-h);
}

@media (max-width: 960px) {
  .sul-bulk__cols { grid-template-columns: minmax(0, 1fr); }
}

.sul-bulk__main { display: flex; flex-direction: column; gap: var(--sul-spacing-lg); min-width: 0; }

.sul-bulk__card {
  margin: 0;
  padding: var(--sul-spacing-xl);
  gap: var(--sul-spacing-base);
}

.sul-bulk__step { display: flex; align-items: center; gap: var(--sul-spacing-compact); }

.sul-bulk__n {
  flex-shrink: 0;
  width: var(--sul-avatar-sm);
  height: var(--sul-avatar-sm);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-text);
  color: var(--sul-surface);
  font-size: var(--sul-font-xs);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.sul-bulk__n--done { background: var(--sul-success-dark); }

.sul-bulk__title { margin: 0; font-size: var(--sul-font-base); font-weight: 600; color: var(--sul-text); }

.sul-bulk__hint { margin-left: auto; font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-bulk__faint { color: var(--sul-muted); }
.sul-bulk__bad { color: var(--sul-danger); }

/* Step 1: two market cards, each a hidden radio inside a label. */
.sul-bulk__markets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--sul-desktop-choice-card-min), 1fr));
  gap: var(--sul-spacing-base);
}

.sul-bulk__market {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  cursor: pointer;
  transition: border-color var(--sul-transition-fast), background var(--sul-transition-fast);
}

.sul-bulk__market:hover { border-color: var(--sul-muted); }
.sul-bulk__market--on { border-color: var(--sul-primary-action); background: var(--sul-pastel-primary); }
.sul-bulk__market:has(input:focus-visible) { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-bulk__market:has(input:disabled) { cursor: not-allowed; opacity: var(--sul-opacity-disabled); }

.sul-bulk__flag {
  flex-shrink: 0;
  width: var(--sul-avatar-md);
  height: var(--sul-avatar-md);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-background);
  color: var(--sul-text);
  font-size: var(--sul-font-xs);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.sul-bulk__market--on .sul-bulk__flag { background: var(--sul-surface); color: var(--sul-primary-action-strong); }

.sul-bulk__market-text { display: flex; flex-direction: column; min-width: 0; }
.sul-bulk__market-text span { font-size: var(--sul-font-xs); color: var(--sul-text-secondary); }

.sul-bulk__dot {
  margin-left: auto;
  flex-shrink: 0;
  width: var(--sul-spacing-xl);
  height: var(--sul-spacing-xl);
  border-radius: var(--sul-radius-pill);
  border: var(--sul-spacing-xxs) solid var(--sul-border);
}

.sul-bulk__market--on .sul-bulk__dot { border: var(--sul-spacing-xs) solid var(--sul-primary-action); background: var(--sul-surface); }

/* Step 2: Upload CSV / Paste ids. */
.sul-bulk__tabs { align-self: flex-start; }
.sul-bulk__tabs .sul-tabs__tab { flex: 0 0 auto; }

.sul-bulk__drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sul-spacing-xs);
  width: 100%;
  padding: var(--sul-spacing-2xl);
  border: var(--sul-card-border) dashed var(--sul-muted);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-background);
  color: var(--sul-text);
  font: inherit;
  font-size: var(--sul-font-sm);
  cursor: pointer;
  transition: border-color var(--sul-transition-fast), background var(--sul-transition-fast);
}

.sul-bulk__drop strong { color: var(--sul-primary-action); }
.sul-bulk__drop small { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-bulk__drop:hover,
.sul-bulk__drop--over { border-color: var(--sul-primary-action); background: var(--sul-pastel-primary); }
.sul-bulk__drop:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-bulk__drop:disabled { cursor: not-allowed; opacity: var(--sul-opacity-disabled); }

.sul-bulk__drop-ico {
  width: var(--sul-avatar-md);
  height: var(--sul-avatar-md);
  border-radius: var(--sul-radius-lg);
  border: var(--sul-card-border) solid var(--sul-border);
  background: var(--sul-surface);
  font-size: var(--sul-font-lg);
  display: grid;
  place-items: center;
}

.sul-bulk__file {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-base);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-xl);
  background: var(--sul-background);
}

.sul-bulk__file-ico {
  flex-shrink: 0;
  width: var(--sul-avatar-md);
  height: var(--sul-avatar-md);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-pastel-success);
  color: var(--sul-success-dark);
  font-size: var(--sul-font-xxs);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.sul-bulk__file-text { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.sul-bulk__file-text > span { font-size: var(--sul-font-xs); color: var(--sul-text-secondary); }

.sul-bulk__ids { width: 100%; resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: var(--sul-font-sm); }

.sul-bulk__sub {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: var(--sul-spacing-compact);
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}

/* Step 3: filter chips over the review table. */
.sul-bulk__chips { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-sm); }

.sul-bulk__chip {
  border: var(--sul-card-border) solid transparent;
  border-radius: var(--sul-radius-pill);
  padding: var(--sul-spacing-xs) var(--sul-spacing-compact);
  font: inherit;
  font-size: var(--sul-font-xs);
  font-weight: 600;
  cursor: pointer;
}

.sul-bulk__chip--all     { background: var(--sul-background);     color: var(--sul-text); }
.sul-bulk__chip--ready   { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-bulk__chip--you     { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }
.sul-bulk__chip--skipped { background: var(--sul-pastel-danger);  color: var(--sul-danger); }
.sul-bulk__chip--on { border-color: currentColor; }
.sul-bulk__chip:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }

.sul-bulk__scroll {
  max-height: calc(var(--sul-desktop-card-min) + var(--sul-spacing-3xl));
  overflow-y: auto;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
}

.sul-bulk__scroll .sul-table th { position: sticky; top: 0; background: var(--sul-background); }

.sul-bulk__note { font-size: var(--sul-font-xs); color: var(--sul-text-secondary); }

.sul-bulk__empty {
  margin: 0;
  padding: var(--sul-spacing-3xl) var(--sul-spacing-compact);
  text-align: center;
  font-size: var(--sul-font-sm);
  color: var(--sul-muted);
}

/* Result: three tiles, the progress bar, then one row per id. */
.sul-bulk__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sul-spacing-base); }

.sul-bulk__tile { display: flex; flex-direction: column; padding: var(--sul-spacing-lg); border-radius: var(--sul-radius-xl); }
.sul-bulk__tile strong { font-size: var(--sul-font-2xl); line-height: 1.2; }
.sul-bulk__tile span { font-size: var(--sul-font-xs); font-weight: 600; }
.sul-bulk__tile--imported { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-bulk__tile--synced   { background: var(--sul-pastel-info);    color: var(--sul-info-dark); }
.sul-bulk__tile--failed   { background: var(--sul-pastel-danger);  color: var(--sul-danger); }

.sul-bulk__progress { width: 100%; accent-color: var(--sul-success); }

.sul-bulk__actions { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-sm); }

/* The guide: the rules with a small key each, the two-row example, then the sample download. */
.sul-bulk__guide { position: sticky; top: var(--sul-spacing-lg); }

.sul-bulk__rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }

.sul-bulk__rules li {
  display: flex;
  gap: var(--sul-spacing-compact);
  padding: var(--sul-spacing-sm) 0;
  border-top: var(--sul-card-border) solid var(--sul-border);
  font-size: var(--sul-font-sm);
}

.sul-bulk__rules li:first-child { border-top: 0; }
.sul-bulk__rules p { margin: 0; color: var(--sul-text-secondary); }
.sul-bulk__rules strong { color: var(--sul-text); }
.sul-bulk__rules code { font-size: var(--sul-font-xs); }

.sul-bulk__key {
  flex-shrink: 0;
  min-width: var(--sul-avatar-sm);
  height: var(--sul-avatar-sm);
  padding: 0 var(--sul-spacing-xs);
  border-radius: var(--sul-radius-base);
  background: var(--sul-background);
  font-size: var(--sul-font-xxs);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.sul-bulk__req {
  border-radius: var(--sul-radius-sm);
  padding: 0 var(--sul-spacing-xs);
  background: var(--sul-background);
  color: var(--sul-text-secondary);
  font-size: var(--sul-font-xxs);
  font-weight: 700;
  text-transform: uppercase;
}

.sul-bulk__req--on { background: var(--sul-pastel-primary); color: var(--sul-primary-action-strong); }

.sul-bulk__sample { border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-lg); }
.sul-bulk__wide { width: 100%; }

/* The action bar stays at the bottom of the window while the steps scroll under it. */
.sul-bulk__bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-lg);
  padding: var(--sul-spacing-base) var(--sul-spacing-2xl);
  background: var(--sul-surface);
  border-top: var(--sul-card-border) solid var(--sul-border);
  box-shadow: var(--sul-shadow-md);
}

.sul-bulk__bar-text { flex: 1; margin: 0; font-size: var(--sul-font-sm); color: var(--sul-text-secondary); }
.sul-bulk__bar-text strong { color: var(--sul-text); }
.sul-bulk__bar .sul-field__error { margin: 0; flex-basis: 100%; }

/* ==========================================================================================
   Google Business Profile optimization (app listing page), after the gbp_profile_optimization
   mockup: a sidebar (business, completeness, section checklist) beside section cards, and a
   fixed bar that sends saved changes. Bars are <progress> because the CSP refuses style=.
   Bar fills use primary-action, not the brand orange: a bar is a graphical object needing 3:1.
   ========================================================================================== */
.sul-gbpo-alert { display: flex; align-items: center; gap: var(--sul-spacing-compact); margin: 0 0 var(--sul-spacing-lg); padding: var(--sul-spacing-compact) var(--sul-spacing-base); border-radius: var(--sul-radius-xl); background: var(--sul-pastel-info); color: var(--sul-info-dark); font-size: var(--sul-font-sm); }
.sul-gbpo-alert--warn { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }
.sul-gbpo-spinner { flex: none; width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); border: var(--sul-spacing-xxs) solid currentColor; border-right-color: transparent; border-radius: var(--sul-radius-pill); animation: sul-gbpo-spin 0.8s linear infinite; }
@keyframes sul-gbpo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sul-gbpo-spinner { animation: none; } }

.sul-gbpo-layout { display: grid; grid-template-columns: calc(var(--sul-spacing-3xl) * 9) minmax(0, 1fr); gap: var(--sul-spacing-xl); align-items: start; }
@media (max-width: 900px) { .sul-gbpo-layout { grid-template-columns: minmax(0, 1fr); } .sul-gbpo-aside { position: static; } }
.sul-gbpo-aside { position: sticky; top: var(--sul-spacing-xl); display: flex; flex-direction: column; gap: var(--sul-spacing-lg); }
.sul-gbpo-main { display: flex; flex-direction: column; gap: var(--sul-spacing-base); min-width: 0; }

.sul-gbpo-card { background: var(--sul-surface); border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-card-radius); }
.sul-gbpo-card--pad { padding: var(--sul-spacing-lg); }

.sul-gbpo-biz { display: flex; align-items: center; gap: var(--sul-spacing-base); }
.sul-gbpo-avatar { flex: none; display: grid; place-items: center; width: calc(var(--sul-spacing-xl) * 2); height: calc(var(--sul-spacing-xl) * 2); border-radius: var(--sul-radius-xl); background: var(--sul-pastel-primary); color: var(--sul-primary-action); font-size: var(--sul-font-lg); font-weight: 700; }
.sul-gbpo-biz__name { margin: 0; font-size: var(--sul-font-base); font-weight: 700; overflow-wrap: anywhere; }
.sul-gbpo-biz small { color: var(--sul-muted); font-size: var(--sul-font-xs); }

.sul-gbpo-meter { margin-top: var(--sul-spacing-lg); }
.sul-gbpo-meter__row { display: flex; justify-content: space-between; gap: var(--sul-spacing-sm); margin-bottom: var(--sul-spacing-xs); font-size: var(--sul-font-sm); }
.sul-gbpo-bar { display: block; width: 100%; height: var(--sul-spacing-sm); border: 0; border-radius: var(--sul-radius-pill); overflow: hidden; background: var(--sul-background); appearance: none; }
.sul-gbpo-bar::-webkit-progress-bar { background: var(--sul-background); }
.sul-gbpo-bar::-webkit-progress-value { background: var(--sul-primary-action); border-radius: var(--sul-radius-pill); }
.sul-gbpo-bar::-moz-progress-bar { background: var(--sul-primary-action); border-radius: var(--sul-radius-pill); }
.sul-gbpo-bar--good::-webkit-progress-value { background: var(--sul-success); }
.sul-gbpo-bar--good::-moz-progress-bar { background: var(--sul-success); }
.sul-gbpo-bar--poor::-webkit-progress-value { background: var(--sul-danger); }
.sul-gbpo-bar--poor::-moz-progress-bar { background: var(--sul-danger); }
.sul-gbpo-bar--thin { height: var(--sul-spacing-xs); }

.sul-gbpo-checklist { margin: 0; padding: var(--sul-spacing-xs); list-style: none; }
.sul-gbpo-checklist a { display: flex; align-items: center; gap: var(--sul-spacing-compact); padding: var(--sul-spacing-sm) var(--sul-spacing-base); border-radius: var(--sul-radius-lg); color: inherit; text-decoration: none; }
.sul-gbpo-checklist a:hover { background: var(--sul-background); }
.sul-gbpo-checklist__label { flex: 1 1 auto; font-size: var(--sul-font-sm); }
.sul-gbpo-checklist__meta { color: var(--sul-muted); font-size: var(--sul-font-xs); }
.sul-gbpo-dot { flex: none; display: grid; place-items: center; width: var(--sul-spacing-xl); height: var(--sul-spacing-xl); border: var(--sul-spacing-xxs) solid var(--sul-border); border-radius: var(--sul-radius-pill); color: transparent; font-size: var(--sul-font-xs); }
.sul-gbpo-dot--done { background: var(--sul-success); border-color: var(--sul-success); color: var(--sul-surface); }
.sul-gbpo-dot--todo { border-color: var(--sul-warning); }

.sul-gbpo-empty { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-lg); padding: var(--sul-spacing-xl); }
.sul-gbpo-empty__icon { flex: none; display: grid; place-items: center; width: calc(var(--sul-spacing-2xl) * 2); height: calc(var(--sul-spacing-2xl) * 2); border-radius: var(--sul-radius-xl); background: var(--sul-pastel-primary); color: var(--sul-primary-action); }
.sul-gbpo-empty__text { flex: 1 1 auto; min-width: 0; }
.sul-gbpo-empty__text h3 { margin: 0 0 var(--sul-spacing-xxs); font-size: var(--sul-font-base); }
.sul-gbpo-empty__text p { margin: 0; color: var(--sul-muted); font-size: var(--sul-font-sm); }

.sul-gbpo-score { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-xl); padding: var(--sul-spacing-lg); }
.sul-gbpo-score__big { display: flex; align-items: baseline; gap: var(--sul-spacing-xs); }
.sul-gbpo-score__num { font-size: var(--sul-font-2xl); font-weight: 700; line-height: 1; }
.sul-gbpo-score__grade { padding: 0 var(--sul-spacing-sm); border-radius: var(--sul-radius-pill); background: var(--sul-background); font-size: var(--sul-font-xs); font-weight: 700; }
.sul-gbpo-score--good .sul-gbpo-score__num { color: var(--sul-success); }
.sul-gbpo-score--fair .sul-gbpo-score__num { color: var(--sul-warning-dark); }
.sul-gbpo-score--poor .sul-gbpo-score__num { color: var(--sul-danger); }
.sul-gbpo-dims { flex: 1 1 auto; display: grid; gap: var(--sul-spacing-xs); margin: 0; font-size: var(--sul-font-xs); }
.sul-gbpo-dims__row { display: grid; grid-template-columns: calc(var(--sul-spacing-3xl) * 4) minmax(0, 1fr) auto; align-items: center; gap: var(--sul-spacing-sm); }
.sul-gbpo-dims dt { color: var(--sul-text-secondary); }
.sul-gbpo-dims dd { margin: 0; }

.sul-gbpo-section-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sul-spacing-sm); margin: var(--sul-spacing-2xl) 0 var(--sul-spacing-xs); }
.sul-gbpo-section-title h2 { margin: 0; font-size: var(--sul-font-lg); }
.sul-gbpo-section-title span { color: var(--sul-muted); font-size: var(--sul-font-sm); }

.sul-gbpo-sec { scroll-margin-top: var(--sul-spacing-xl); }
.sul-gbpo-sec__head { display: flex; align-items: center; gap: var(--sul-spacing-compact); padding: var(--sul-spacing-base) var(--sul-spacing-lg); border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-gbpo-sec__head h3 { flex: 1 1 auto; margin: 0; font-size: var(--sul-font-base); }
.sul-gbpo-sec__body { padding: var(--sul-spacing-lg); }
.sul-gbpo-sec__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sul-spacing-sm); padding: var(--sul-spacing-base) var(--sul-spacing-lg); border-top: var(--sul-card-border) solid var(--sul-border); border-radius: 0 0 var(--sul-card-radius) var(--sul-card-radius); background: var(--sul-background); }

.sul-gbpo-chip { flex: none; padding: 0 var(--sul-spacing-compact); border-radius: var(--sul-radius-pill); font-size: var(--sul-font-xs); font-weight: 600; }
.sul-gbpo-chip--missing { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }
.sul-gbpo-chip--ok { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-gbpo-chip--pending { background: var(--sul-pastel-info); color: var(--sul-info-dark); }
.sul-gbpo-chip--muted { background: var(--sul-background); color: var(--sul-muted); }

.sul-gbpo-label { display: block; margin-bottom: var(--sul-spacing-xs); color: var(--sul-muted); font-size: var(--sul-font-xs); font-weight: 600; text-transform: uppercase; }
.sul-gbpo-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sul-spacing-lg); }
@media (max-width: 700px) { .sul-gbpo-compare { grid-template-columns: minmax(0, 1fr); } }
.sul-gbpo-current { min-height: calc(var(--sul-spacing-3xl) * 4); padding: var(--sul-spacing-base); border: var(--sul-card-border) dashed var(--sul-border); border-radius: var(--sul-radius-lg); background: var(--sul-background); color: var(--sul-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.sul-gbpo-current--empty { font-style: italic; }
.sul-gbpo-textarea { min-height: calc(var(--sul-spacing-3xl) * 4); resize: vertical; }
/* sul-listing.js sizes the box to its text, so there is nothing left to scroll or drag. */
.sul-gbpo-textarea.is-autogrow { overflow-y: hidden; resize: none; }
/* Ready to send: one tick box per change group, at the top of its rows. */
.sul-gbpo-pick { width: var(--sul-spacing-3xl); vertical-align: top; text-align: center; }
.sul-gbpo-pick input { width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); accent-color: var(--sul-primary-action); cursor: pointer; }
.sul-gbpo-hint { display: flex; justify-content: space-between; gap: var(--sul-spacing-sm); margin-top: var(--sul-spacing-xs); color: var(--sul-muted); font-size: var(--sul-font-xs); }
.sul-gbpo-over { color: var(--sul-danger); font-weight: 600; }

.sul-gbpo-drafts { display: grid; gap: var(--sul-spacing-sm); margin-bottom: var(--sul-spacing-lg); }
.sul-gbpo-draft { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--sul-spacing-base); padding: var(--sul-spacing-base); border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-lg); }
.sul-gbpo-draft p { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--sul-font-sm); }

.sul-gbpo-pill { display: inline-block; padding: var(--sul-spacing-xs) var(--sul-spacing-base); border-radius: var(--sul-radius-lg); background: var(--sul-pastel-primary); color: var(--sul-primary-action); font-weight: 600; }
.sul-gbpo-sec details summary { margin-top: var(--sul-spacing-base); color: var(--sul-primary-action); font-weight: 500; cursor: pointer; }
.sul-gbpo-inline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); margin-top: var(--sul-spacing-sm); }
.sul-gbpo-inline select { flex: 1 1 auto; min-width: 0; }

.sul-gbpo-note { display: block; padding: var(--sul-spacing-base) var(--sul-spacing-lg); border-radius: var(--sul-radius-lg); background: var(--sul-background); color: var(--sul-muted); font-size: var(--sul-font-sm); }

.sul-gbpo-tools { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-sm); margin-bottom: var(--sul-spacing-base); }
.sul-gbpo-hours { width: 100%; border-collapse: collapse; }
.sul-gbpo-hours th { padding: 0 var(--sul-spacing-sm) var(--sul-spacing-sm); color: var(--sul-muted); font-size: var(--sul-font-xs); font-weight: 600; text-align: left; text-transform: uppercase; }
.sul-gbpo-hours td { padding: var(--sul-spacing-xs) var(--sul-spacing-sm); border-top: var(--sul-card-border) solid var(--sul-border); vertical-align: middle; }
.sul-gbpo-hours td:first-child { font-weight: 500; white-space: nowrap; }
.sul-gbpo-hours input[type="time"] { width: auto; min-width: 0; }
.sul-gbpo-scroll { overflow-x: auto; }
.sul-gbpo-hours tr.is-closed input[type="time"] { opacity: 0.35; }
.sul-gbpo-switch { position: relative; display: inline-flex; align-items: center; gap: var(--sul-spacing-sm); color: var(--sul-muted); font-size: var(--sul-font-sm); cursor: pointer; }
.sul-gbpo-switch input { position: absolute; opacity: 0; }
.sul-gbpo-switch__track { position: relative; width: calc(var(--sul-spacing-lg) * 2); height: var(--sul-spacing-xl); border-radius: var(--sul-radius-pill); background: var(--sul-border); transition: background 0.2s; }
.sul-gbpo-switch__track::after { content: ""; position: absolute; top: var(--sul-spacing-xxs); left: var(--sul-spacing-xxs); width: var(--sul-spacing-lg); height: var(--sul-spacing-lg); border-radius: var(--sul-radius-pill); background: var(--sul-surface); transition: left 0.2s; }
.sul-gbpo-switch input:checked + .sul-gbpo-switch__track { background: var(--sul-success); }
.sul-gbpo-switch input:checked + .sul-gbpo-switch__track::after { left: calc(var(--sul-spacing-lg) - var(--sul-spacing-xxs)); }
.sul-gbpo-switch input:focus-visible + .sul-gbpo-switch__track { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }

.sul-gbpo-drop { display: block; padding: var(--sul-spacing-2xl); border: var(--sul-spacing-xxs) dashed var(--sul-border); border-radius: var(--sul-radius-xl); color: var(--sul-muted); text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.sul-gbpo-drop:hover, .sul-gbpo-drop.is-dragging { border-color: var(--sul-primary-action); background: var(--sul-pastel-primary); }
.sul-gbpo-drop strong { color: var(--sul-primary-action); }
.sul-gbpo-drop small { display: block; margin-top: var(--sul-spacing-xs); font-size: var(--sul-font-xs); }
.sul-gbpo-photos { display: grid; gap: var(--sul-spacing-xs); margin: var(--sul-spacing-base) 0 0; padding: 0; list-style: none; }
.sul-gbpo-photos li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); padding: var(--sul-spacing-sm) 0; border-top: var(--sul-card-border) solid var(--sul-border); font-size: var(--sul-font-sm); }
.sul-gbpo-photos li span:first-child { flex: 1 1 auto; }

.sul-gbpo-opp { border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-lg); background: var(--sul-surface); }
.sul-gbpo-opp + .sul-gbpo-opp { margin-top: var(--sul-spacing-xs); }
.sul-gbpo-opp__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); padding: var(--sul-spacing-compact) var(--sul-spacing-base); }
.sul-gbpo-opp__chip { flex: none; padding: 0 var(--sul-spacing-sm); border-radius: var(--sul-radius-pill); font-size: var(--sul-font-xs); font-weight: 700; text-transform: uppercase; }
.sul-gbpo-opp--critical .sul-gbpo-opp__chip { background: var(--sul-pastel-danger); color: var(--sul-danger); }
.sul-gbpo-opp--high .sul-gbpo-opp__chip, .sul-gbpo-opp--medium .sul-gbpo-opp__chip { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }
.sul-gbpo-opp--low .sul-gbpo-opp__chip { background: var(--sul-pastel-info); color: var(--sul-info-dark); }
.sul-gbpo-opp__body { flex: 1 1 auto; min-width: 0; }
.sul-gbpo-opp__body strong { display: block; font-size: var(--sul-font-sm); }
.sul-gbpo-opp__body span { color: var(--sul-muted); font-size: var(--sul-font-xs); }
.sul-gbpo-opp__pts { flex: none; color: var(--sul-success-dark); font-size: var(--sul-font-sm); font-weight: 700; }

.sul-gbpo-applybar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 10; background: var(--sul-text); color: var(--sul-surface); }
.sul-gbpo-applybar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-base); max-width: calc(var(--sul-spacing-3xl) * 35); margin: 0 auto; padding: var(--sul-spacing-base) var(--sul-spacing-2xl); }
.sul-gbpo-applybar__text { flex: 1 1 auto; font-size: var(--sul-font-sm); }
.sul-gbpo-applybar .sul-btn:not(.sul-btn--primary) { border-color: var(--sul-text-secondary); background: transparent; color: var(--sul-surface); }
.sul-gbpo-spacer { height: calc(var(--sul-spacing-3xl) * 3); }
.sul-gbpo-btn-sm { padding: var(--sul-spacing-xs) var(--sul-spacing-compact); font-size: var(--sul-font-xs); }

/* The listing page's two prose tables (the "Ready to send" diff and the yes/no questions). The
   shared .sul-table keeps cells on one line for ids and dates; a description on one line pushed
   "Would become" off the card. Fixed columns, and the text wraps where it has to. */
.sul-gbpo-prose-table { table-layout: fixed; }
.sul-gbpo-prose-table th, .sul-gbpo-prose-table td { white-space: normal; overflow-wrap: anywhere; }
.sul-gbpo-prose-table thead th:first-child { width: 22%; }

/* ==========================================================================
   Contacts (/app/businesses/{id}/contacts, MHT 2.1). A count strip, a search
   bar with channel filters, the list, and the add/edit slide-over. A channel
   the person agreed to is a green pill; opted out is red AND says so in words;
   not asked is muted text, so state never rests on colour alone.
   ========================================================================== */

.sul-contacts__summary {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sul-spacing-base);
    margin-bottom: var(--sul-spacing-lg);
}

.sul-contacts__stat {
    display: flex;
    flex-direction: column;
    gap: var(--sul-spacing-xxs);
    min-width: calc(var(--sul-avatar-lg) * 3);
    padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-card-radius);
    background: var(--sul-surface);
    color: var(--sul-muted);
    font-size: var(--sul-font-xs);
}

.sul-contacts__figure {
    color: var(--sul-text);
    font-size: var(--sul-font-xl);
    font-weight: 700;
}

.sul-contacts__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sul-spacing-base);
    margin-bottom: var(--sul-spacing-base);
}

.sul-contacts__search { flex: 1 1 calc(var(--sul-avatar-lg) * 6); margin: 0; }

.sul-contacts__filters { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); }

.sul-contacts__filter {
    padding: var(--sul-spacing-xs) var(--sul-spacing-base);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-pill);
    background: var(--sul-surface);
    color: var(--sul-text-secondary);
    font-size: var(--sul-font-sm);
    cursor: pointer;
}

.sul-contacts__filter--current {
    border-color: var(--sul-primary-action);
    color: var(--sul-primary-action);
    font-weight: 600;
}

.sul-contacts__filter:focus-visible {
    outline: var(--sul-spacing-xxs) solid var(--sul-focus);
    outline-offset: var(--sul-spacing-xxs);
}

.sul-contacts__list { padding: 0; overflow: hidden; }

.sul-contacts__pills { display: inline-flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); }

.sul-contacts__notasked { color: var(--sul-muted); font-size: var(--sul-font-xs); }

.sul-contacts__more,
.sul-contacts__loading {
    margin: 0;
    padding: var(--sul-spacing-base) var(--sul-card-padding-h);
    color: var(--sul-muted);
    font-size: var(--sul-font-sm);
}

.sul-contacts__notice,
.sul-contacts__message {
    margin: 0 0 var(--sul-spacing-base);
    padding: var(--sul-spacing-sm) var(--sul-spacing-base);
    border-radius: var(--sul-radius-lg);
    font-size: var(--sul-font-sm);
}

.sul-contacts__notice { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-contacts__message { background: var(--sul-pastel-danger); color: var(--sul-danger); }

.sul-contacts__phone { display: flex; gap: var(--sul-spacing-sm); }
.sul-contacts__dial { flex: none; width: calc(var(--sul-avatar-lg) * 2.6); }

.sul-contacts__consentset {
    margin: var(--sul-spacing-lg) 0 0;
    padding: 0;
    border: 0;
}

.sul-contacts__consent { margin-top: var(--sul-spacing-sm); }

.sul-contacts__why {
    margin: var(--sul-spacing-xs) 0 0 var(--sul-spacing-xl);
    padding-left: var(--sul-spacing-base);
    border-left: var(--sul-spacing-xxs) solid var(--sul-border);
}

.sul-contacts__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sul-spacing-sm);
    width: 100%;
}

.sul-contacts__delete { color: var(--sul-danger); }
.sul-contacts__foot .sul-contacts__delete:first-child { margin-right: auto; }

/* Contact lists (migration 167): the list picker, the bar for ticked rows, and Manage lists. */
.sul-contacts__listpick { flex: 0 1 calc(var(--sul-avatar-lg) * 6); margin: 0; }

.sul-contacts__bulk {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sul-spacing-sm);
    margin-bottom: var(--sul-spacing-base);
    padding: var(--sul-spacing-sm) var(--sul-spacing-base);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-lg);
    background: var(--sul-pastel-info);
    font-size: var(--sul-font-sm);
}

.sul-contacts__target { width: auto; min-width: calc(var(--sul-avatar-lg) * 4); }

.sul-contacts__lists {
    margin: var(--sul-spacing-base) 0 0;
    padding: 0;
    list-style: none;
}

.sul-contacts__listrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sul-spacing-sm);
    padding: var(--sul-spacing-compact) 0;
    border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-contacts__listtext {
    display: flex;
    flex-direction: column;
    gap: var(--sul-spacing-xxs);
    min-width: 0;
}

.sul-contacts__listname { font-weight: 600; }

.sul-contacts__listform { width: 100%; margin-bottom: var(--sul-spacing-base); }

/* ==========================================================================
   The embed widget (migration 187): Social Connect inside another site's iframe.

   _Layout draws neither the topbar nor the app nav there; _EmbedNav's short
   tab bar of the pages the host's scopes open takes their place, and the
   content fills the frame's width. The Connect popup it opens has no chrome
   at all. sul-body--embed is set from the SESSION ROW, so nothing a page or a
   host does can turn it on for the standalone product.
   ========================================================================== */

.sul-body--embed { --sul-desktop-topbar-height: 0; }

.sul-body--embed .sul-appmain { padding-left: 0; }

.sul-body--embed .sul-shell {
    padding-top: var(--sul-spacing-lg);
    padding-bottom: var(--sul-spacing-lg);
}

.sul-embednav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sul-spacing-sm);
    padding: var(--sul-spacing-sm) var(--sul-spacing-lg);
    background: var(--sul-surface);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
}

/* The tabs scroll sideways on a narrow frame rather than wrapping into a
   second row of half-width buttons. */
.sul-embednav__tabs {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
}

.sul-embednav__tab {
    flex: 0 0 auto;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.sul-embednav__switch {
    flex: 0 0 auto;
    color: var(--sul-primary-action);
    font-size: var(--sul-font-sm);
    font-weight: 600;
    text-decoration: none;
}

.sul-embednav__switch:hover { text-decoration: underline; }

.sul-embednav__switch:focus-visible {
    outline: var(--sul-spacing-xxs) solid var(--sul-focus);
    outline-offset: var(--sul-spacing-xxs);
}

/* The picker: each business is a form whose button is the whole row. */
.sul-embedpick { margin: 0; }

.sul-embedpick__row {
    width: 100%;
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

/* ==========================================================================
   The Admin console: Bulk import, Staff Details and Embedded sites under one
   top-nav tab, with a left menu of the ones the viewer holds (after the
   embedded-sites design). The menu collapses to its icons
   (sul-admin-console.js); on a narrow screen it is always collapsed.
   ========================================================================== */

.sul-admin-console {
    --sul-admin-console-menu: calc(var(--sul-spacing-3xl) * 7.5);
    --sul-admin-console-mini: calc(var(--sul-spacing-3xl) * 2);
    display: grid;
    grid-template-columns: var(--sul-admin-console-menu) minmax(0, 1fr);
    gap: var(--sul-spacing-2xl);
    align-items: start;
    transition: grid-template-columns var(--sul-transition-base) ease;
}

.sul-admin-console--mini { grid-template-columns: var(--sul-admin-console-mini) minmax(0, 1fr); }

.sul-admin-console__menu {
    position: sticky;
    top: var(--sul-spacing-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--sul-surface);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-xl);
}

.sul-admin-console__head {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-sm);
    min-height: calc(var(--sul-spacing-3xl) + var(--sul-spacing-lg));
    padding: 0 var(--sul-spacing-compact) 0 var(--sul-spacing-lg);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-admin-console__title {
    flex: 1;
    font-size: var(--sul-font-micro);
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--sul-muted);
}

.sul-admin-console__toggle {
    flex: none;
    display: grid;
    place-items: center;
    width: var(--sul-spacing-3xl);
    height: var(--sul-spacing-3xl);
    padding: 0;
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-base);
    background: var(--sul-surface);
    color: var(--sul-muted);
    cursor: pointer;
}

.sul-admin-console__toggle:hover { background: var(--sul-background); color: var(--sul-text); }

.sul-admin-console__toggle svg {
    width: var(--sul-spacing-lg);
    height: var(--sul-spacing-lg);
    transition: transform var(--sul-transition-base) ease;
}

.sul-admin-console--mini .sul-admin-console__toggle svg { transform: rotate(180deg); }

.sul-admin-console__menu nav {
    display: flex;
    flex-direction: column;
    gap: var(--sul-spacing-xxs);
    padding: var(--sul-spacing-compact);
}

.sul-admin-console__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--sul-spacing-base);
    padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
    border-radius: var(--sul-radius-base);
    color: var(--sul-muted);
    text-decoration: none;
}

.sul-admin-console__item svg {
    flex: none;
    width: var(--sul-spacing-xl);
    height: var(--sul-spacing-xl);
}

.sul-admin-console__item:hover { background: var(--sul-background); color: var(--sul-text); }

/* Current carries a surface, weight AND a bar, never colour alone. */
.sul-admin-console__item--current {
    background: var(--sul-pastel-primary);
    color: var(--sul-primary-action-strong);
}

.sul-admin-console__item--current::before {
    content: "";
    position: absolute;
    top: var(--sul-spacing-sm);
    bottom: var(--sul-spacing-sm);
    left: calc(var(--sul-spacing-compact) * -1);
    width: var(--sul-spacing-xs);
    border-radius: 0 var(--sul-radius-xs) var(--sul-radius-xs) 0;
    background: var(--sul-primary-action);
}

.sul-admin-console__item:focus-visible {
    outline: var(--sul-spacing-xxs) solid var(--sul-focus);
    outline-offset: var(--sul-spacing-xxs);
}

.sul-admin-console__label { display: flex; flex-direction: column; min-width: 0; }

.sul-admin-console__name {
    font-size: var(--sul-font-sm);
    font-weight: 600;
    white-space: nowrap;
}

.sul-admin-console__hint {
    font-size: var(--sul-font-xs);
    line-height: 1.3;
    color: var(--sul-muted);
}

.sul-admin-console__item--current .sul-admin-console__hint { color: var(--sul-primary-action-strong); }

.sul-admin-console__foot {
    margin: 0;
    padding: var(--sul-spacing-compact) var(--sul-spacing-lg);
    border-top: var(--sul-card-border) solid var(--sul-border);
    font-size: var(--sul-font-xs);
    white-space: nowrap;
    color: var(--sul-muted);
}

.sul-admin-console__foot kbd {
    padding: 0 var(--sul-spacing-xs);
    border: var(--sul-card-border) solid var(--sul-border);
    border-bottom-width: var(--sul-spacing-xxs);
    border-radius: var(--sul-radius-xs);
    background: var(--sul-surface);
    font-family: inherit;
}

/* Collapsed: icons only, the name in each link's title. */
.sul-admin-console--mini .sul-admin-console__head { justify-content: center; padding: 0; }
.sul-admin-console--mini .sul-admin-console__title,
.sul-admin-console--mini .sul-admin-console__label,
.sul-admin-console--mini .sul-admin-console__foot { display: none; }
.sul-admin-console--mini .sul-admin-console__item { justify-content: center; padding: var(--sul-spacing-sm) 0; }

.sul-admin-console__body { min-width: 0; }

@media (max-width: 820px) {
    .sul-admin-console,
    .sul-admin-console--mini { grid-template-columns: var(--sul-admin-console-mini) minmax(0, 1fr); gap: var(--sul-spacing-base); }
    .sul-admin-console__head { justify-content: center; padding: 0; }
    .sul-admin-console__title,
    .sul-admin-console__label,
    .sul-admin-console__foot,
    .sul-admin-console__toggle { display: none; }
    .sul-admin-console__item { justify-content: center; padding: var(--sul-spacing-sm) 0; }
}

/* ==========================================================================
   Embedded sites (migrations 188, 189), after the embedded-sites design: a card
   per site, an add / edit drawer, and a toast. The island is
   clientapp/src/islands/admin-embedded-sites.tsx.
   ========================================================================== */

.sul-es__page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--sul-spacing-compact);
    margin-bottom: var(--sul-spacing-lg);
}

.sul-es__page-head h1 { margin: 0; font-size: var(--sul-font-xl); }

.sul-es__page-head p {
    max-width: 62ch;
    margin: var(--sul-spacing-xxs) 0 0;
    font-size: var(--sul-font-sm);
    color: var(--sul-muted);
}

.sul-es__spacer { flex: 1; }

.sul-es__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sul-spacing-xs);
    height: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xxs));
    padding: 0 var(--sul-spacing-base);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-base);
    background: var(--sul-surface);
    color: var(--sul-text);
    font: inherit;
    font-size: var(--sul-font-sm);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.sul-es__btn:hover { background: var(--sul-background); }
.sul-es__btn:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-es__btn--primary { border-color: var(--sul-primary-action); background: var(--sul-primary-action); color: var(--sul-surface); }
.sul-es__btn--primary:hover { background: var(--sul-primary-action-strong); }
.sul-es__btn--sm { height: calc(var(--sul-spacing-2xl) + var(--sul-spacing-xs)); padding: 0 var(--sul-spacing-compact); font-size: var(--sul-font-xs); }
.sul-es__btn--danger { color: var(--sul-danger); }
.sul-es__btn:disabled { opacity: var(--sul-opacity-disabled); cursor: not-allowed; }

/* A site */
.sul-es__site {
    overflow: hidden;
    margin-bottom: var(--sul-spacing-base);
    background: var(--sul-surface);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-xl);
}

.sul-es__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sul-spacing-base);
    padding: var(--sul-spacing-base) var(--sul-spacing-lg);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-es__avatar {
    display: grid;
    place-items: center;
    width: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xs));
    height: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xs));
    border-radius: var(--sul-radius-lg);
    background: var(--sul-pastel-primary);
    color: var(--sul-primary-action-strong);
    font-weight: 800;
}

.sul-es__title h2 { margin: 0; font-size: var(--sul-font-base); }

.sul-es__code,
.sul-es__mono,
.sul-es__addr,
.sul-es__key code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.sul-es__code {
    padding: var(--sul-spacing-xxs) var(--sul-spacing-xs);
    border-radius: var(--sul-radius-xs);
    background: var(--sul-background);
    font-size: var(--sul-font-xs);
    color: var(--sul-muted);
}

.sul-es__switch {
    position: relative;
    flex: none;
    width: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xs));
    height: calc(var(--sul-spacing-xl) + var(--sul-spacing-xxs));
    padding: 0;
    border: 0;
    border-radius: var(--sul-radius-pill);
    background: var(--sul-disabled);
    cursor: pointer;
}

.sul-es__switch::after {
    content: "";
    position: absolute;
    top: var(--sul-spacing-xxs);
    left: var(--sul-spacing-xxs);
    width: calc(var(--sul-spacing-lg) + var(--sul-spacing-xxs));
    height: calc(var(--sul-spacing-lg) + var(--sul-spacing-xxs));
    border-radius: var(--sul-radius-pill);
    background: var(--sul-surface);
    box-shadow: var(--sul-shadow-sm);
    transition: left var(--sul-transition-fast) ease;
}

.sul-es__switch--on { background: var(--sul-success); }
.sul-es__switch--on::after { left: calc(var(--sul-spacing-lg) + var(--sul-spacing-xxs)); }
.sul-es__switch:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-es__switch:disabled { opacity: var(--sul-opacity-disabled); cursor: not-allowed; }
.sul-es__switch-label { font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-es__alert {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-compact);
    padding: var(--sul-spacing-sm) var(--sul-spacing-lg);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
    background: var(--sul-pastel-warning);
    color: var(--sul-warning-dark);
    font-size: var(--sul-font-xs);
}

.sul-es__alert .sul-es__btn { margin-left: auto; }

.sul-es__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.sul-es__cell {
    min-width: 0;
    padding: var(--sul-spacing-base) var(--sul-spacing-lg);
    border-right: var(--sul-card-border) solid var(--sul-border);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-es__cell:nth-child(2n) { border-right: 0; }

.sul-es__cell h4 {
    margin: 0 0 var(--sul-spacing-xs);
    font-size: var(--sul-font-micro);
    text-transform: uppercase;
    color: var(--sul-muted);
}

.sul-es__muted { margin: 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-es__addr {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-xs);
    min-width: 0;
    padding: var(--sul-spacing-xxs) 0;
    font-size: var(--sul-font-xs);
}

.sul-es__addr > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sul-es__env {
    flex: none;
    padding: 0 var(--sul-spacing-xs);
    border-radius: var(--sul-radius-pill);
    background: var(--sul-background);
    font-family: inherit;
    font-size: var(--sul-font-micro);
    font-weight: 600;
    color: var(--sul-muted);
}

.sul-es__chips { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); }

.sul-es__chip {
    padding: var(--sul-spacing-xxs) var(--sul-spacing-sm);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-pill);
    background: var(--sul-surface);
    font-size: var(--sul-font-xs);
}

.sul-es__chip--on { border-color: var(--sul-success-light); background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-es__chip--off { color: var(--sul-muted); text-decoration: line-through; }

.sul-es__key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); }

.sul-es__key code {
    padding: var(--sul-spacing-xxs) var(--sul-spacing-sm);
    border-radius: var(--sul-radius-sm);
    background: var(--sul-background);
    font-size: var(--sul-font-xs);
}

.sul-es__pill {
    display: inline-flex;
    padding: var(--sul-spacing-xxs) var(--sul-spacing-sm);
    border-radius: var(--sul-radius-pill);
    font-size: var(--sul-font-xs);
    font-weight: 600;
    white-space: nowrap;
}

.sul-es__pill--ok { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-es__pill--warn { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }

.sul-es__key-hint { margin: var(--sul-spacing-xs) 0 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-es__key-hint--warn { color: var(--sul-warning-dark); font-weight: 600; }

.sul-es__use-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-lg); }
.sul-es__use b { font-size: var(--sul-font-lg); }
.sul-es__use small { display: block; font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-es__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sul-spacing-sm);
    padding: var(--sul-spacing-compact) var(--sul-spacing-lg);
    background: var(--sul-background);
}

.sul-es__empty {
    padding: var(--sul-spacing-3xl);
    border: var(--sul-card-border) dashed var(--sul-border);
    border-radius: var(--sul-radius-xl);
    background: var(--sul-surface);
    text-align: center;
    color: var(--sul-muted);
}

.sul-es__empty p { margin: var(--sul-spacing-xs) 0 0; }

/* The drawer */
.sul-es__scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: var(--sul-overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--sul-transition-base) ease;
}

.sul-es__scrim--show { opacity: 1; pointer-events: auto; }

.sul-es__drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 41;
    display: flex;
    flex-direction: column;
    width: calc(var(--sul-spacing-3xl) * 16.25);
    max-width: 100%;
    border-left: var(--sul-card-border) solid var(--sul-border);
    background: var(--sul-surface);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--sul-transition-base) ease, visibility var(--sul-transition-base);
}

.sul-es__drawer--show { transform: none; visibility: visible; }

.sul-es__drawer-head {
    display: flex;
    gap: var(--sul-spacing-compact);
    padding: var(--sul-spacing-lg) var(--sul-spacing-xl);
    border-bottom: var(--sul-card-border) solid var(--sul-border);
}

.sul-es__drawer-head h3 { margin: 0; font-size: var(--sul-font-lg); }
.sul-es__drawer-head p { margin: var(--sul-spacing-xxs) 0 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-es__close {
    margin-left: auto;
    border: 0;
    background: none;
    font-size: var(--sul-font-2xl);
    line-height: 1;
    color: var(--sul-muted);
    cursor: pointer;
}

.sul-es__drawer-body { flex: 1; overflow: auto; padding: var(--sul-spacing-lg) var(--sul-spacing-xl); }

.sul-es__field { margin: 0 0 var(--sul-spacing-lg); padding: 0; border: 0; }

.sul-es__field > label,
.sul-es__field > legend {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: var(--sul-spacing-xs);
    padding: 0;
    font-size: var(--sul-font-sm);
    font-weight: 600;
}

.sul-es__field > label span { font-size: var(--sul-font-xs); font-weight: 400; color: var(--sul-muted); }

.sul-es__field input[type=text],
.sul-es__field input[type=url] {
    width: 100%;
    height: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xs));
    padding: 0 var(--sul-spacing-compact);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-base);
    background: var(--sul-surface);
    color: var(--sul-text);
    font-size: var(--sul-font-sm);
}

.sul-es__field input:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: 0; }
.sul-es__field input:disabled { background: var(--sul-background); color: var(--sul-muted); }
.sul-es__field input.sul-es__bad { border-color: var(--sul-danger); }

.sul-es__hint { margin-top: var(--sul-spacing-xs); font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-es__hint--err { color: var(--sul-danger); }
.sul-es__hint--ok { color: var(--sul-success-dark); }

.sul-es__addr-row { display: flex; gap: var(--sul-spacing-xs); margin-bottom: var(--sul-spacing-xs); }
.sul-es__addr-row input { flex: 1; }

.sul-es__addr-row button {
    width: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xs));
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-base);
    background: var(--sul-surface);
    font-size: var(--sul-font-base);
    color: var(--sul-muted);
    cursor: pointer;
}

.sul-es__addr-row button:hover { border-color: var(--sul-danger); color: var(--sul-danger); }

.sul-es__add-address {
    width: 100%;
    height: calc(var(--sul-spacing-3xl) + var(--sul-spacing-xxs));
    border: var(--sul-card-border) dashed var(--sul-border);
    border-radius: var(--sul-radius-base);
    background: none;
    font: inherit;
    font-size: var(--sul-font-xs);
    color: var(--sul-muted);
    cursor: pointer;
}

.sul-es__add-address:hover { border-color: var(--sul-primary-action); color: var(--sul-primary-action); }

.sul-es__options { display: grid; gap: var(--sul-spacing-xs); }
.sul-es__markets { display: flex; gap: var(--sul-spacing-sm); }
.sul-es__markets .sul-es__option { flex: 1; }

.sul-es__option {
    display: flex;
    align-items: flex-start;
    gap: var(--sul-spacing-compact);
    padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-lg);
    cursor: pointer;
}

.sul-es__option:has(input:checked) { border-color: var(--sul-primary-action); background: var(--sul-pastel-primary); }
.sul-es__option input { margin-top: var(--sul-spacing-xxs); accent-color: var(--sul-primary-action); }
.sul-es__option b { display: block; font-size: var(--sul-font-sm); }
.sul-es__option small { font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-es__on-row {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-base);
    padding: var(--sul-spacing-compact) var(--sul-spacing-base);
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-lg);
}

.sul-es__on-row b { display: block; font-size: var(--sul-font-sm); }
.sul-es__on-row small { font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-es__drawer-foot {
    display: flex;
    justify-content: flex-end;
    gap: var(--sul-spacing-sm);
    padding: var(--sul-spacing-base) var(--sul-spacing-xl);
    border-top: var(--sul-card-border) solid var(--sul-border);
}

.sul-es__toast {
    position: fixed;
    bottom: var(--sul-spacing-xl);
    left: 50%;
    z-index: 70;
    padding: var(--sul-spacing-compact) var(--sul-spacing-lg);
    border-radius: var(--sul-radius-lg);
    background: var(--sul-text);
    color: var(--sul-surface);
    font-size: var(--sul-font-sm);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(var(--sul-spacing-xl));
    transition: opacity var(--sul-transition-base) ease, transform var(--sul-transition-base) ease;
}

.sul-es__toast--show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 820px) {
    .sul-es__grid { grid-template-columns: minmax(0, 1fr); }
    .sul-es__cell { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .sul-admin-console,
    .sul-es__drawer,
    .sul-es__scrim,
    .sul-es__toast,
    .sul-es__switch::after { transition: none; }
}

/* Embedded sites: the "Get embed code" drawer, wider than the edit one for code. */
.sul-es__drawer--wide { width: calc(var(--sul-spacing-3xl) * 22); }

.sul-es__code-pick { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--sul-spacing-base); }
.sul-es__code-pick .sul-es__field { margin-bottom: var(--sul-spacing-sm); }

.sul-es__code-key {
    margin: 0 0 var(--sul-spacing-lg);
    padding: var(--sul-spacing-sm) var(--sul-spacing-base);
    border-radius: var(--sul-radius-base);
    background: var(--sul-background);
    font-size: var(--sul-font-xs);
    color: var(--sul-muted);
}

.sul-es__code-key--live { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); font-weight: 600; }

.sul-es__code-step { margin: var(--sul-spacing-lg) 0 var(--sul-spacing-sm); font-size: var(--sul-font-sm); }
.sul-es__code-tabs { margin-bottom: var(--sul-spacing-sm); }
.sul-es__code-tabs .sul-tabs__tab { flex: 0 0 auto; }

.sul-es__codeblock {
    overflow: hidden;
    border: var(--sul-card-border) solid var(--sul-border);
    border-radius: var(--sul-radius-lg);
}

.sul-es__codeblock-head {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-sm);
    padding: var(--sul-spacing-sm) var(--sul-spacing-base);
    background: var(--sul-background);
}

.sul-es__codeblock-head > div { flex: 1; min-width: 0; }
.sul-es__codeblock-head b { display: block; font-size: var(--sul-font-sm); }
.sul-es__codeblock-head small { font-size: var(--sul-font-xs); color: var(--sul-muted); }

.sul-es__codeblock pre {
    max-height: calc(var(--sul-spacing-3xl) * 10);
    margin: 0;
    padding: var(--sul-spacing-base);
    overflow: auto;
    background: var(--sul-text);
    color: var(--sul-surface);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--sul-font-xs);
    line-height: 1.5;
}

@media (max-width: 820px) {
    .sul-es__code-pick { grid-template-columns: minmax(0, 1fr); }
}

/* Embedded sites: the active key on the card (190), with Copy. */
.sul-es__keyvalue {
    display: flex;
    align-items: center;
    gap: var(--sul-spacing-sm);
    margin-bottom: var(--sul-spacing-sm);
}

.sul-es__keyvalue code {
    flex: 1;
    min-width: 0;
    padding: var(--sul-spacing-xs) var(--sul-spacing-sm);
    border-radius: var(--sul-radius-sm);
    background: var(--sul-background);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--sul-font-xs);
    word-break: break-all;
    user-select: all;
}

/* Admin console > Revoke operator access (migration 193): find, review, confirm, and the history. */
.sul-revoke { display: grid; gap: var(--sul-spacing-lg); }
.sul-revoke__done {
  margin: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-pastel-success);
  color: var(--sul-success-dark);
  font-size: var(--sul-font-sm);
}
.sul-revoke__find {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--sul-spacing-3xl) * 6), 1fr));
  gap: var(--sul-spacing-lg);
}
.sul-revoke__finder { display: flex; align-items: flex-end; gap: var(--sul-spacing-sm); }
.sul-revoke__finder > .sul-field { flex: 1; min-width: 0; margin: 0; }
.sul-revoke__hint { margin: var(--sul-spacing-base) 0 var(--sul-spacing-xs); font-size: var(--sul-font-sm); }
.sul-revoke__candidates { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sul-spacing-xs); }
.sul-revoke__candidates a {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  color: var(--sul-text);
  text-decoration: none;
}
.sul-revoke__candidates a:hover,
.sul-revoke__candidates a:focus-visible { border-color: var(--sul-primary-action); }
.sul-revoke__muted { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-revoke__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--sul-spacing-3xl) * 4), 1fr));
  gap: var(--sul-spacing-base);
  margin: 0 0 var(--sul-spacing-base);
}
.sul-revoke__facts dt { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-revoke__facts dd { margin: var(--sul-spacing-xxs) 0 0; font-size: var(--sul-font-sm); color: var(--sul-text); overflow-wrap: anywhere; }
.sul-revoke__danger { border-color: color-mix(in srgb, var(--sul-danger) 35%, var(--sul-border)); }
.sul-revoke__warning { margin: 0 0 var(--sul-spacing-base); font-size: var(--sul-font-sm); color: var(--sul-text-secondary); }
.sul-revoke__warning strong:first-child { display: block; margin-bottom: var(--sul-spacing-xs); color: var(--sul-danger); }
.sul-revoke__form { display: grid; gap: var(--sul-spacing-base); max-width: calc(var(--sul-spacing-3xl) * 14); }
.sul-revoke__tick { display: flex; align-items: flex-start; gap: var(--sul-spacing-sm); font-size: var(--sul-font-sm); }
.sul-revoke__submit,
.sul-revoke__submit:hover { background: var(--sul-danger); color: var(--sul-surface); }
.sul-revoke__ids summary { cursor: pointer; font-size: var(--sul-font-xs); color: var(--sul-primary-action); }
.sul-revoke__ids ul { margin: var(--sul-spacing-xxs) 0 0; padding-left: var(--sul-spacing-base); font-size: var(--sul-font-xs); }

/* Search box with suggestions (sul-revoke-access.js), the picked people as chips, one fold per person. */
.sul-revoke__picker { display: grid; gap: var(--sul-spacing-sm); }
.sul-revoke__combo { position: relative; }
.sul-revoke__suggest {
  position: absolute;
  z-index: 20;
  top: calc(100% + var(--sul-spacing-xxs));
  left: 0;
  right: 0;
  max-height: calc(var(--sul-spacing-3xl) * 7);
  overflow-y: auto;
  margin: 0;
  padding: var(--sul-spacing-xxs);
  list-style: none;
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  box-shadow: var(--sul-shadow-lg);
}
.sul-revoke__suggest-option,
.sul-revoke__suggest-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sul-spacing-xs) var(--sul-spacing-sm);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-radius: var(--sul-radius-base);
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
}
.sul-revoke__suggest-option { cursor: pointer; }
.sul-revoke__suggest-option:hover,
.sul-revoke__suggest-option[aria-selected="true"] { background: var(--sul-pastel-primary); }
.sul-revoke__suggest-note { color: var(--sul-muted); }
.sul-revoke__chips { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); }
.sul-revoke__chips[hidden] { display: none; }
.sul-revoke__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  max-width: 100%;
  padding: var(--sul-spacing-xxs) var(--sul-spacing-xxs) var(--sul-spacing-xxs) var(--sul-spacing-sm);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-pastel-primary);
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
  overflow-wrap: anywhere;
}
.sul-revoke__chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--sul-spacing-lg);
  min-height: var(--sul-spacing-lg);
  padding: 0;
  border: 0;
  border-radius: var(--sul-radius-pill);
  background: transparent;
  font-size: var(--sul-font-base);
  line-height: 1;
  color: var(--sul-primary-action-strong);
  text-decoration: none;
  cursor: pointer;
}
.sul-revoke__chip-remove:hover,
.sul-revoke__chip-remove:focus-visible { background: var(--sul-surface); }
.sul-revoke__total { margin: 0 0 var(--sul-spacing-base); font-size: var(--sul-font-sm); }
.sul-revoke__person {
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
}
.sul-revoke__person + .sul-revoke__person { margin-top: var(--sul-spacing-sm); }
.sul-revoke__person > summary { cursor: pointer; list-style-position: outside; }
.sul-revoke__person > summary .sul-revoke__facts { margin: 0; }
.sul-revoke__person[open] > summary { margin-bottom: var(--sul-spacing-base); }

@media (max-width: 640px) {
  .sul-revoke__finder { flex-direction: column; align-items: stretch; }
}

/* ---------------------------------------------------------------------------
   Admin console → AI prices (AiPrices.cshtml, migration 201): changes to approve, last check,
   prices now. Tables are the shared .sul-table.
   --------------------------------------------------------------------------- */
.sul-aiprice { display: grid; gap: var(--sul-spacing-lg); }
.sul-aiprice__done {
  margin: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-pastel-success);
  color: var(--sul-success-dark);
  font-size: var(--sul-font-sm);
}
.sul-aiprice__muted { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-aiprice__actions { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); justify-content: flex-end; }
.sul-aiprice__actions form { margin: 0; }
.sul-aiprice__problems { margin: var(--sul-spacing-xs) 0 0; padding-left: var(--sul-spacing-base); font-size: var(--sul-font-sm); color: var(--sul-text-secondary); }
.sul-aiprice__history { margin-top: var(--sul-spacing-base); }
.sul-aiprice__history summary { cursor: pointer; font-size: var(--sul-font-sm); color: var(--sul-primary-action); }

/* ---------------------------------------------------------------------------
   Admin console → AI models & pricing (AiModels.cshtml, migration 203): summary tiles, the
   Content / Image tabs, models with their prices, edit dialogs (.sul-dialog), history.
   --------------------------------------------------------------------------- */
.sul-aimodel { display: grid; gap: var(--sul-spacing-lg); }
.sul-aimodel__done {
  margin: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-pastel-success);
  color: var(--sul-success-dark);
  font-size: var(--sul-font-sm);
}
.sul-aimodel__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--sul-desktop-report-filter-min)), 1fr));
  gap: var(--sul-spacing-base);
  margin: 0;
  padding: 0;
}
.sul-aimodel__tabs { max-width: var(--sul-desktop-dialog-max); }
.sul-aimodel__tabs .sul-tabs__tab { text-align: center; text-decoration: none; }
.sul-aimodel__muted { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-aimodel__link { font-size: var(--sul-font-xs); color: var(--sul-primary-action); }
.sul-aimodel__gaps { display: grid; gap: var(--sul-spacing-xs); margin: 0; padding: 0; list-style: none; font-size: var(--sul-font-sm); }
.sul-aimodel__table td { vertical-align: top; }
.sul-aimodel__prices { display: grid; grid-template-columns: max-content 1fr; gap: var(--sul-spacing-xxs) var(--sul-spacing-sm); margin: 0; font-size: var(--sul-font-sm); }
.sul-aimodel__price { display: contents; }
.sul-aimodel__price dt { color: var(--sul-text-secondary); }
.sul-aimodel__price dd { margin: 0; }
.sul-aimodel__unpriced { color: var(--sul-danger); font-weight: 600; }
.sul-aimodel__next { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-xs); margin-top: var(--sul-spacing-xxs); }
.sul-aimodel__next form { margin: 0; }
.sul-aimodel__textbutton {
  border: 0;
  padding: 0;
  background: none;
  color: var(--sul-primary-action);
  font: inherit;
  font-size: var(--sul-font-xs);
  text-decoration: underline;
  cursor: pointer;
}
.sul-aimodel__textbutton:focus-visible { outline: var(--sul-focus); }
.sul-aimodel__actions { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); justify-content: flex-end; }
.sul-aimodel__actions form { margin: 0; }
.sul-aimodel__fold { margin-top: var(--sul-spacing-base); }
.sul-aimodel__fold summary { cursor: pointer; font-size: var(--sul-font-sm); color: var(--sul-primary-action); }
.sul-aimodel__form { display: grid; gap: var(--sul-spacing-base); }
.sul-aimodel__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--sul-desktop-template-card-min)), 1fr)); gap: var(--sul-spacing-sm); }
.sul-aimodel__dollar { display: flex; align-items: center; gap: var(--sul-spacing-xs); }
.sul-aimodel__dollar .sul-input { flex: 1 1 auto; min-width: 0; }
.sul-aimodel__newsize { margin: 0; padding: var(--sul-spacing-sm); border: var(--sul-card-border) dashed var(--sul-border); border-radius: var(--sul-radius-base); }

@media (max-width: 640px) {
  .sul-aimodel__actions { justify-content: flex-start; }
  .sul-aimodel__prices { grid-template-columns: 1fr; row-gap: 0; }
}

/* ---------------------------------------------------------------------------
   Kept from the calendar's first design for the QC review page (QcBatch.cshtml, "Result").
   --------------------------------------------------------------------------- */
.sul-cal__subhead { margin: var(--sul-spacing-sm) 0 0; font-size: var(--sul-font-sm); font-weight: 600; }

/* ---------------------------------------------------------------------------
   Admin console → Content calendar (ContentCalendar.cshtml, _ContentEventForm.cshtml; migrations
   231/233), redesigned 2026-11-11 to content-calendar.html: status chips, a Year grid or a List,
   right-hand drawers, and Category mapping with a coverage bar. Console tokens only, so dark mode
   follows. Status is carried by a word or a title as well as colour (left border, dot).
   --------------------------------------------------------------------------- */
.sul-cc { display: flex; flex-direction: column; gap: var(--sul-spacing-base); max-width: var(--sul-desktop-content-max); }
.sul-cc [hidden] { display: none !important; }
.sul-cc__sp { flex: 1 1 auto; }
.sul-cc__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sul-spacing-sm); }
.sul-cc__head > div:first-child { flex: 1 1 auto; min-width: 0; }
.sul-cc__title { margin: 0; font-size: var(--sul-font-xl); color: var(--sul-console-fg); }
.sul-cc__sub { margin: var(--sul-spacing-xxs) 0 0; max-width: 66ch; font-size: var(--sul-console-text-13); color: var(--sul-console-fg-3); }
.sul-cc__scope { display: flex; gap: var(--sul-spacing-sm); align-items: center; }
.sul-cc__select, .sul-cc__search {
  width: auto;
  min-height: var(--sul-console-control-height);
  height: var(--sul-console-control-height);
  padding: 0 var(--sul-spacing-sm);
  font-size: var(--sul-console-text-13);
}
.sul-cc__search { width: calc(var(--sul-desktop-report-filter-min) * 1.25); max-width: 100%; }
.sul-cc__done {
  margin: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  border-radius: var(--sul-console-radius);
  background: var(--sul-console-ok-soft);
  color: var(--sul-console-ok);
  font-size: var(--sul-console-text-13);
}
.sul-cc__link { color: var(--sul-link); font-size: var(--sul-console-text-13); }
.sul-cc__hint { margin: var(--sul-spacing-xxs) 0 0; font-size: var(--sul-font-xs); color: var(--sul-console-fg-3); }
.sul-cc__note {
  margin: 0 0 var(--sul-spacing-base);
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-radius: var(--sul-console-radius);
  background: var(--sul-console-sunk);
  font-size: var(--sul-console-text-13);
  color: var(--sul-console-fg-2);
}

/* Tabs */
.sul-cc__tabs { display: flex; gap: var(--sul-spacing-xxs); border-bottom: var(--sul-card-border) solid var(--sul-console-line); overflow-x: auto; }
.sul-cc__tab {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  margin-bottom: calc(var(--sul-card-border) * -1);
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-bottom: calc(var(--sul-card-border) * 2) solid transparent;
  color: var(--sul-console-fg-3);
  font-size: var(--sul-font-sm);
  text-decoration: none;
  white-space: nowrap;
}
.sul-cc__tab:hover { color: var(--sul-console-fg); }
.sul-cc__tab[aria-current="page"] { border-bottom-color: var(--sul-console-accent); color: var(--sul-primary-action-strong); font-weight: 600; }
.sul-cc__count {
  padding: 0 var(--sul-spacing-xs);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-console-sunk);
  color: var(--sul-console-fg-3);
  font-size: var(--sul-font-xxs);
  font-weight: 600;
}
.sul-cc__count--warn { background: var(--sul-console-warn-soft); color: var(--sul-console-warn); }

/* Status chips */
.sul-cc__chips { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); margin-bottom: calc(var(--sul-spacing-base) * -0.5); }
.sul-cc__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  min-height: calc(var(--sul-console-control-height) * 0.88);
  padding: 0 var(--sul-spacing-compact);
  border: var(--sul-card-border) solid var(--sul-console-line);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-console-surface);
  color: var(--sul-console-fg-3);
  font-size: var(--sul-console-text-13);
  text-decoration: none;
}
.sul-cc__chip b { color: var(--sul-console-fg); }
.sul-cc__chip:hover { border-color: var(--sul-console-line-2); }
.sul-cc__chip[aria-current="true"] { border-color: var(--sul-console-accent); background: var(--sul-console-accent-soft); color: var(--sul-primary-action-strong); }
.sul-cc__dot { display: inline-block; flex: none; width: var(--sul-spacing-xs); height: var(--sul-spacing-xs); border-radius: 50%; background: var(--sul-console-line-2); }
.sul-cc__dot--ok { background: var(--sul-console-ok); }
.sul-cc__dot--chk { background: var(--sul-console-accent-2); }
.sul-cc__dot--off, .sul-cc__dot--seed { background: var(--sul-console-line-2); }
.sul-cc__dot--staff { background: var(--sul-console-accent); }

/* Card + toolbar */
.sul-cc__card {
  overflow: hidden;
  border: var(--sul-card-border) solid var(--sul-console-line);
  border-radius: var(--sul-console-radius-panel);
  background: var(--sul-console-surface);
  box-shadow: var(--sul-console-shadow-panel);
}
.sul-cc__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-sm);
  margin: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-bottom: var(--sul-card-border) solid var(--sul-console-line);
}
.sul-cc__cardtitle { margin: 0; font-size: var(--sul-font-sm); font-weight: 600; color: var(--sul-console-fg); }
.sul-cc__toolbar .sul-cc__hint { margin: 0; }
.sul-cc__add { min-height: var(--sul-console-control-height); }
.sul-cc__sm { min-height: calc(var(--sul-console-control-height) * 0.8); padding: 0 var(--sul-spacing-sm); font-size: var(--sul-font-xs); }
.sul-cc__seg { display: flex; padding: var(--sul-spacing-xxs); border-radius: var(--sul-radius-base); background: var(--sul-console-sunk); }
.sul-cc__seg a {
  display: inline-flex;
  align-items: center;
  min-height: calc(var(--sul-console-control-height) * 0.76);
  padding: 0 var(--sul-spacing-compact);
  border-radius: var(--sul-radius-sm);
  color: var(--sul-console-fg-3);
  font-size: var(--sul-console-text-13);
  text-decoration: none;
}
.sul-cc__seg a[aria-current="true"] { background: var(--sul-console-surface); color: var(--sul-primary-action-strong); font-weight: 600; box-shadow: var(--sul-console-shadow-seg); }
.sul-cc__empty { display: grid; gap: var(--sul-spacing-xxs); padding: var(--sul-spacing-2xl) var(--sul-spacing-lg); text-align: center; color: var(--sul-console-fg-3); }
.sul-cc__empty b { color: var(--sul-console-fg); font-size: var(--sul-console-text-15); }
.sul-cc__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-xs) var(--sul-spacing-base);
  margin: 0;
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-top: var(--sul-card-border) solid var(--sul-console-line);
  font-size: var(--sul-font-xs);
  color: var(--sul-console-fg-3);
}
.sul-cc__legend span { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); }
.sul-cc__legend--inline { padding: 0; border: 0; }

/* Year grid */
.sul-cc__year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sul-card-border); background: var(--sul-console-line); }
.sul-cc__month, .sul-cc__undated { min-width: 0; min-height: calc(var(--sul-console-figure) * 5.4); padding: var(--sul-spacing-sm) var(--sul-spacing-compact); background: var(--sul-console-surface); }
.sul-cc__undated { min-height: 0; border-top: var(--sul-card-border) solid var(--sul-console-line); }
.sul-cc__mhead {
  display: flex;
  align-items: center;
  margin: 0 0 var(--sul-spacing-xs);
  font-size: var(--sul-font-xs);
  font-weight: 700;
  letter-spacing: var(--sul-console-label-tracking);
  text-transform: uppercase;
  color: var(--sul-console-fg-3);
}
.sul-cc__mcount { margin-left: auto; font-weight: 600; letter-spacing: 0; color: var(--sul-console-fg-3); }
.sul-cc__undated .sul-cc__mcount { margin-left: var(--sul-spacing-xs); }
.sul-cc__month--now .sul-cc__mhead { color: var(--sul-primary-action-strong); }
.sul-cc__month--now { background: color-mix(in srgb, var(--sul-console-accent-soft) 45%, var(--sul-console-surface)); }
.sul-cc__evlist { margin: 0; padding: 0; list-style: none; }
.sul-cc__evlist--wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--sul-desktop-report-filter-min) * 1.4)), 1fr)); gap: 0 var(--sul-spacing-sm); }
.sul-cc__ev {
  display: grid;
  grid-template-columns: var(--sul-console-figure) minmax(0, 1fr);
  align-items: center;
  gap: var(--sul-spacing-xs);
  margin-bottom: var(--sul-spacing-xxs);
  padding: var(--sul-spacing-xxs) var(--sul-spacing-xs);
  border-left: calc(var(--sul-card-border) * 3) solid transparent;
  border-radius: var(--sul-radius-sm);
  color: var(--sul-console-fg);
  font-size: var(--sul-console-text-13);
  text-decoration: none;
}
.sul-cc__ev:hover, .sul-cc__ev:focus-visible { background: var(--sul-console-sunk); }
.sul-cc__ev:focus-visible { outline: var(--sul-focus); }
.sul-cc__ev--ok { border-left-color: var(--sul-console-ok); }
.sul-cc__ev--chk { border-left-color: var(--sul-console-accent-2); }
.sul-cc__ev--off { border-left-color: var(--sul-console-line-2); color: var(--sul-console-fg-3); }
.sul-cc__ev--off .sul-cc__evname { text-decoration: line-through; }
.sul-cc__day { font-size: var(--sul-font-xs); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--sul-console-fg-3); }
.sul-cc__evname { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sul-cc__addm {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--sul-spacing-xxs);
  min-height: var(--sul-spacing-lg);
  border: var(--sul-card-border) dashed var(--sul-console-line-2);
  border-radius: var(--sul-radius-sm);
  color: var(--sul-console-fg-3);
  font-size: var(--sul-font-xs);
  text-decoration: none;
  opacity: 0;
  transition: opacity var(--sul-transition-fast);
}
.sul-cc__month:hover .sul-cc__addm, .sul-cc__addm:focus-visible { opacity: 1; }
.sul-cc__addm:hover, .sul-cc__addm:focus-visible { border-color: var(--sul-console-accent); color: var(--sul-primary-action-strong); }
@media (hover: none) { .sul-cc__addm { opacity: 1; } }

/* Tables (list view, service categories, unmapped) */
.sul-cc__table { width: 100%; border-collapse: collapse; font-size: var(--sul-console-text-13); }
.sul-cc__table th {
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-bottom: var(--sul-card-border) solid var(--sul-console-line);
  background: var(--sul-console-sunk);
  color: var(--sul-console-fg-3);
  font-size: var(--sul-font-micro);
  font-weight: 700;
  letter-spacing: var(--sul-console-label-tracking);
  text-align: left;
  text-transform: uppercase;
}
.sul-cc__table td { padding: var(--sul-spacing-sm) var(--sul-spacing-compact); border-bottom: var(--sul-card-border) solid var(--sul-console-line); vertical-align: middle; color: var(--sul-console-fg); }
.sul-cc__table tbody tr:last-child td { border-bottom: 0; }
.sul-cc__mg th { padding-block: var(--sul-spacing-xs); background: var(--sul-console-bg); }
.sul-cc__row { cursor: pointer; }
.sul-cc__row:hover td { background: color-mix(in srgb, var(--sul-console-sunk) 50%, var(--sul-console-surface)); }
.sul-cc__w-type { width: calc(var(--sul-console-figure) * 5); }
.sul-cc__w-status { width: calc(var(--sul-console-figure) * 5.5); }
.sul-cc__w-lead { width: calc(var(--sul-console-figure) * 4.5); }
.sul-cc__w-svc { width: 24%; }
.sul-cc__w-count { width: calc(var(--sul-console-figure) * 4); }
.sul-cc__w-act { width: calc(var(--sul-console-figure) * 3); }
.sul-cc__num { text-align: right !important; font-variant-numeric: tabular-nums; }
.sul-cc__act { text-align: right; }
.sul-cc__dt { display: flex; align-items: center; gap: var(--sul-spacing-sm); }
.sul-cc__cal {
  flex: none;
  overflow: hidden;
  width: calc(var(--sul-console-figure) * 1.45);
  border: var(--sul-card-border) solid var(--sul-console-line);
  border-radius: var(--sul-radius-base);
  text-align: center;
}
.sul-cc__cal small { display: block; padding: var(--sul-card-border) 0; background: var(--sul-console-accent); color: var(--sul-console-accent-ink); font-size: var(--sul-font-micro); font-weight: 700; text-transform: uppercase; }
.sul-cc__cal b { display: block; padding: var(--sul-spacing-xxs) 0; font-size: var(--sul-console-text-15); }
.sul-cc__nm { display: grid; min-width: 0; }
.sul-cc__nm a { color: var(--sul-console-fg); font-weight: 600; text-decoration: none; }
.sul-cc__nm a:hover { text-decoration: underline; }
.sul-cc__nm small, .sul-cc__svc small { color: var(--sul-console-fg-3); font-size: var(--sul-font-xs); }
.sul-cc__svc b, .sul-cc__svc small { display: block; }
.sul-cc__svc b { font-weight: 600; }
.sul-cc__type { padding: var(--sul-spacing-xxs) var(--sul-spacing-sm); border-radius: var(--sul-radius-pill); background: var(--sul-console-sunk); color: var(--sul-console-fg-2); font-size: var(--sul-font-xs); font-weight: 600; white-space: nowrap; }
.sul-cc__type--festival { background: var(--sul-pastel-primary); color: var(--sul-primary-action-strong); }
.sul-cc__type--holiday { background: var(--sul-pastel-info); color: var(--sul-info-dark); }
.sul-cc__type--campaign { background: var(--sul-pastel-success); color: var(--sul-success-dark); }
.sul-cc__cats { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xxs); }
.sul-cc__cat { padding: 0 var(--sul-spacing-xs); border: var(--sul-card-border) solid var(--sul-console-line); border-radius: var(--sul-radius-pill); font-size: var(--sul-font-xs); white-space: nowrap; }
.sul-cc__cat--all { border-style: dashed; color: var(--sul-console-fg-3); }
.sul-cc__lead { color: var(--sul-console-fg-3); font-size: var(--sul-font-xs); }

/* Category mapping */
.sul-cc__cov { display: grid; gap: var(--sul-spacing-xs); padding: var(--sul-spacing-base); }
.sul-cc__covline, .sul-cc__covnote { margin: 0; }
.sul-cc__covline { color: var(--sul-console-fg-3); }
.sul-cc__big { color: var(--sul-console-fg); font-size: var(--sul-font-xl); }
.sul-cc__covnote { color: var(--sul-console-fg-3); font-size: var(--sul-console-text-13); }
.sul-cc__cbar {
  width: 100%;
  height: var(--sul-spacing-sm);
  margin-top: var(--sul-spacing-xs);
  overflow: hidden;
  border: 0;
  border-radius: var(--sul-radius-pill);
  appearance: none;
  background: var(--sul-console-accent-2);
}
.sul-cc__cbar::-webkit-progress-bar { background: var(--sul-console-accent-2); }
.sul-cc__cbar::-webkit-progress-value { background: var(--sul-console-ok); }
.sul-cc__cbar::-moz-progress-bar { background: var(--sul-console-ok); }
.sul-cc__um { border-top: var(--sul-card-border) solid var(--sul-console-line); }
.sul-cc__um > summary {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  color: var(--sul-console-fg);
  font-size: var(--sul-console-text-13);
  font-weight: 600;
  cursor: pointer;
}
.sul-cc__um > .sul-cc__hint { margin: 0; padding: 0 var(--sul-spacing-base) var(--sul-spacing-sm); }
.sul-cc__gcs { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xxs); margin: 0; padding: 0; list-style: none; }
.sul-cc__gc {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xxs);
  padding: var(--sul-card-border) var(--sul-spacing-sm);
  border: var(--sul-card-border) solid var(--sul-console-line);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-console-surface);
  font-size: var(--sul-font-xs);
}
.sul-cc__gc::before { content: ""; flex: none; width: var(--sul-spacing-xxs); height: var(--sul-spacing-xxs); border-radius: 50%; background: var(--sul-console-line-2); }
.sul-cc__gc--staff { border-color: color-mix(in srgb, var(--sul-console-accent) 40%, var(--sul-console-line)); background: var(--sul-console-accent-soft); }
.sul-cc__gc--staff::before { background: var(--sul-console-accent); }
.sul-cc__morebtn { margin-top: var(--sul-spacing-xxs); padding: 0; border: 0; background: none; color: var(--sul-primary-action); font: inherit; font-size: var(--sul-font-xs); font-weight: 600; cursor: pointer; }
.sul-cc__bz { font-size: var(--sul-console-text-15); font-weight: 700; }
.sul-cc__bz--zero { color: var(--sul-console-crit); }
.sul-cc__chipform { display: inline; margin: 0; }
.sul-cc__x { padding: 0 0 0 var(--sul-spacing-xxs); border: 0; background: none; color: var(--sul-console-fg-3); font-size: var(--sul-console-text-13); line-height: 1; cursor: pointer; }
.sul-cc__x:hover, .sul-cc__x:focus-visible { color: var(--sul-console-crit); }
.sul-cc__inlineform { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); margin: 0; }
.sul-cc__inlineform .sul-input { flex: 1 1 auto; min-width: 0; width: auto; }

/* Map to, US: Sulekha category search with picked chips. The list sits in the flow (not floated)
   because the table's wrapper scrolls sideways and would clip a floating one. */
.sul-cc__tagform { align-items: flex-start; }
.sul-cc__tagbox { display: flex; flex: 1 1 auto; flex-direction: column; gap: var(--sul-spacing-xs); min-width: 0; }
.sul-cc__tagbox .sul-input { width: 100%; }
.sul-cc__tagchips { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); margin: 0; padding: 0; list-style: none; }
.sul-cc__tagchips:empty { display: none; }
.sul-cc__tagresults {
  max-height: calc(var(--sul-console-control-height) * 6);
  margin: 0;
  padding: var(--sul-spacing-xxs) 0;
  overflow-y: auto;
  border: var(--sul-card-border) solid var(--sul-console-line);
  border-radius: var(--sul-radius-base);
  background: var(--sul-console-surface);
  box-shadow: var(--sul-shadow-md);
  list-style: none;
}
.sul-cc__tagresults[hidden] { display: none; }
.sul-cc__tagresults [role="option"] { padding: var(--sul-spacing-xs) var(--sul-spacing-compact); color: var(--sul-console-fg); font-size: var(--sul-console-text-13); cursor: pointer; }
.sul-cc__tagresults [role="option"] small { display: block; color: var(--sul-console-fg-3); font-size: var(--sul-font-xxs); }
.sul-cc__tagresults [role="option"]:hover,
.sul-cc__tagresults [role="option"][aria-selected="true"] { background: var(--sul-console-accent-soft); }

/* Drawer (a .sul-dialog--right, wider for the event form) */
.sul-dialog--right.sul-cc__drawer[open] { width: min(100%, var(--sul-desktop-dialog-max)); max-width: var(--sul-desktop-dialog-max); }
.sul-cc__dbody { overflow: auto; }
.sul-cc__dfoot { display: flex; align-items: center; gap: var(--sul-spacing-sm); }
.sul-cc__f { margin: 0 0 var(--sul-spacing-base); padding: 0; border: 0; min-width: 0; }
.sul-cc__f--last { margin-bottom: 0; }
.sul-cc__lb { display: flex; justify-content: space-between; gap: var(--sul-spacing-sm); margin-bottom: var(--sul-spacing-xs); padding: 0; color: var(--sul-console-fg); font-size: var(--sul-console-text-13); font-weight: 600; }
legend.sul-cc__lb { width: 100%; }
.sul-cc__lb span, .sul-cc__sublb span { color: var(--sul-console-fg-3); font-size: var(--sul-font-xs); font-weight: 400; }
.sul-cc__sublb { display: block; margin-bottom: var(--sul-spacing-xxs); color: var(--sul-console-fg-3); font-size: var(--sul-font-xs); }
.sul-cc__big-input { width: 100%; }
.sul-cc__two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sul-spacing-sm); }
.sul-cc__opts { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); }
.sul-cc__opt { position: relative; display: inline-flex; }
.sul-cc__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.sul-cc__opt span {
  display: inline-flex;
  align-items: center;
  min-height: calc(var(--sul-console-control-height) * 0.88);
  padding: 0 var(--sul-spacing-compact);
  border: var(--sul-card-border) solid var(--sul-console-line);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-console-surface);
  color: var(--sul-console-fg-2);
  font-size: var(--sul-console-text-13);
}
.sul-cc__opt:hover span { border-color: var(--sul-console-line-2); }
.sul-cc__opt input:checked + span { border-color: var(--sul-console-accent); background: var(--sul-console-accent); color: var(--sul-console-accent-ink); }
.sul-cc__opt--check input:checked + span { background: var(--sul-console-accent-soft); color: var(--sul-primary-action-strong); }
.sul-cc__opt--check input:checked + span::before { content: "✓"; margin-right: var(--sul-spacing-xxs); }
.sul-cc__opt input:focus-visible + span { outline: var(--sul-focus); outline-offset: var(--sul-card-border); }
.sul-cc__catlist { margin-top: var(--sul-spacing-sm); }
.sul-cc__shown:has([data-sul-all-categories]:checked) .sul-cc__catlist { display: none; }
.sul-cc__verify {
  margin: 0 0 var(--sul-spacing-base);
  padding: var(--sul-spacing-compact);
  border: var(--sul-card-border) solid var(--sul-console-line);
  border-radius: var(--sul-console-radius);
  background: var(--sul-console-bg);
}
.sul-cc__verifyhead { margin: 0 0 var(--sul-spacing-sm); color: var(--sul-console-fg-3); font-size: var(--sul-font-xs); }
.sul-cc__verifyhead b { display: block; color: var(--sul-console-fg); font-size: var(--sul-console-text-13); }
.sul-cc__ver {
  display: flex;
  align-items: flex-start;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border: var(--sul-card-border) solid var(--sul-console-line);
  border-radius: var(--sul-console-radius);
  color: var(--sul-console-fg-3);
  font-size: var(--sul-font-xs);
}
.sul-cc__ver input { margin-top: var(--sul-spacing-xxs); accent-color: var(--sul-console-accent); }
.sul-cc__ver b { display: block; color: var(--sul-console-fg); font-size: var(--sul-console-text-13); }
.sul-cc__more { margin: 0 0 var(--sul-spacing-base); border: var(--sul-card-border) solid var(--sul-console-line); border-radius: var(--sul-console-radius); }
.sul-cc__more > summary { padding: var(--sul-spacing-sm) var(--sul-spacing-compact); color: var(--sul-console-fg); font-size: var(--sul-console-text-13); font-weight: 600; cursor: pointer; }
.sul-cc__more > summary span { margin-left: var(--sul-spacing-xs); color: var(--sul-console-fg-3); font-size: var(--sul-font-xs); font-weight: 400; }
.sul-cc__more[open] > summary { border-bottom: var(--sul-card-border) solid var(--sul-console-line); }
.sul-cc__more > :not(summary) { margin: var(--sul-spacing-compact); }
.sul-cc__more > form > .sul-cc__f { margin-bottom: 0; }
.sul-cc__more--status { margin-bottom: 0; }
.sul-cc__danger { padding: 0; border: 0; background: none; color: var(--sul-console-crit); font: inherit; font-size: var(--sul-console-text-13); font-weight: 600; cursor: pointer; }
.sul-cc__danger:hover { text-decoration: underline; }
.sul-cc__facts { display: grid; gap: var(--sul-spacing-sm); margin: 0 0 var(--sul-spacing-base); }
.sul-cc__facts div { display: grid; grid-template-columns: calc(var(--sul-console-figure) * 5) minmax(0, 1fr); gap: var(--sul-spacing-sm); font-size: var(--sul-console-text-13); }
.sul-cc__facts dt { color: var(--sul-console-fg-3); }
.sul-cc__facts dd { margin: 0; color: var(--sul-console-fg); overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .sul-cc__year { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .sul-cc__hm { display: none; }
  .sul-cc__search { width: 100%; }
}
@media (max-width: 520px) {
  .sul-cc__year { grid-template-columns: 1fr; }
  .sul-cc__month { min-height: 0; }
  .sul-cc__two, .sul-cc__facts div { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   A business's Content plan tab (ContentPlan.cshtml, _ContentPlanDrawer.cshtml; migration 235), revamped
   2026-11-12 to content-plan-v2.html. Builds on the calendar's .sul-cc pieces (card, toolbar, seg, drawer,
   table). Each post's state is a word as well as a colour: nw not written, qc waiting for QC, ch needs a
   person, ok approved / scheduled, pub published, off closed.
   --------------------------------------------------------------------------- */
.sul-cp { max-width: none; }
.sul-cp__ai { border-color: color-mix(in srgb, var(--sul-chart-4) 30%, var(--sul-console-line)); background: color-mix(in srgb, var(--sul-chart-4) 8%, var(--sul-console-surface)); color: var(--sul-chart-4); }
.sul-cp__ai:hover { background: color-mix(in srgb, var(--sul-chart-4) 14%, var(--sul-console-surface)); }

/* Month navigation: ‹ Today › */
.sul-cp__nav { display: flex; overflow: hidden; border: var(--sul-card-border) solid var(--sul-console-line); border-radius: var(--sul-radius-base); background: var(--sul-console-surface); }
.sul-cp__nav a { display: inline-flex; align-items: center; min-height: var(--sul-console-control-height); padding: 0 var(--sul-spacing-compact); color: var(--sul-console-fg); font-size: var(--sul-console-text-13); text-decoration: none; }
.sul-cp__nav a + a { border-left: var(--sul-card-border) solid var(--sul-console-line); }
.sul-cp__nav a:hover { background: var(--sul-console-sunk); }
.sul-cp__nav a[aria-current="true"] { font-weight: 600; }

/* Regenerate: a popover from <details>, so it works without script */
.sul-cp__regen { position: relative; }
.sul-cp__regen > summary { list-style: none; cursor: pointer; }
.sul-cp__regen > summary::-webkit-details-marker { display: none; }
.sul-cp__pop {
  position: absolute;
  top: calc(100% + var(--sul-spacing-xs));
  right: 0;
  z-index: 20;
  display: grid;
  gap: var(--sul-spacing-sm);
  width: min(calc(100vw - var(--sul-spacing-3xl)), calc(var(--sul-console-figure) * 13.5));
  padding: var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-console-line);
  border-radius: var(--sul-console-radius-panel);
  background: var(--sul-console-surface);
  box-shadow: var(--sul-console-shadow-drop);
}
.sul-cp__pop h2 { margin: 0; font-size: var(--sul-console-text-15); color: var(--sul-console-fg); }
.sul-cp__pop .sul-cc__hint { margin: 0; }
.sul-cp__poplist { display: grid; gap: var(--sul-spacing-xs); margin: 0; padding-left: var(--sul-spacing-lg); font-size: var(--sul-console-text-13); color: var(--sul-console-fg-2); }
.sul-cp__warn { margin: 0; padding: var(--sul-spacing-sm) var(--sul-spacing-compact); border-radius: var(--sul-console-radius); background: var(--sul-console-crit-soft); color: var(--sul-console-crit); font-size: var(--sul-console-text-13); }
.sul-cp__popfoot { display: flex; justify-content: flex-end; gap: var(--sul-spacing-sm); margin: 0; }

/* Pills and legend swatches */
.sul-cp__pill {
  display: inline-flex;
  align-items: center;
  padding: var(--sul-card-border) var(--sul-spacing-sm);
  border-radius: var(--sul-radius-pill);
  font-size: var(--sul-font-xs);
  font-weight: 600;
  white-space: nowrap;
  background: var(--sul-console-sunk);
  color: var(--sul-console-fg-3);
}
.sul-cp__pill--qc { background: var(--sul-console-warn-soft); color: var(--sul-console-warn); }
.sul-cp__pill--ch { background: var(--sul-console-crit-soft); color: var(--sul-console-crit); }
.sul-cp__pill--ok { background: var(--sul-console-ok-soft); color: var(--sul-console-ok); }
.sul-cp__pill--pub { background: color-mix(in srgb, var(--sul-link) 12%, var(--sul-console-surface)); color: var(--sul-link); }
.sul-cp__sw { display: inline-block; width: var(--sul-spacing-sm); height: var(--sul-spacing-sm); border-radius: var(--sul-spacing-xxs); background: var(--sul-console-line-2); }
.sul-cp__sw--qc { background: var(--sul-console-warn); }
.sul-cp__sw--ch { background: var(--sul-console-crit); }
.sul-cp__sw--ok { background: var(--sul-console-ok); }
.sul-cp__sw--pub { background: var(--sul-link); }
.sul-cp__notes { display: grid; gap: var(--sul-spacing-xs); margin: 0; padding: 0; list-style: none; font-size: var(--sul-console-text-13); color: var(--sul-console-fg-2); }

/* Allowance cards */
.sul-cp__alw { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, calc(var(--sul-console-figure) * 9)), 1fr)); gap: var(--sul-spacing-base); }
.sul-cp__al { display: grid; align-content: start; gap: var(--sul-spacing-xs); padding: var(--sul-spacing-base) var(--sul-spacing-lg); overflow: visible; }
.sul-cp__alt { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); color: var(--sul-console-fg); font-size: var(--sul-console-text-13); }
.sul-cp__alt > span:last-child { margin-left: auto; color: var(--sul-console-fg-3); font-size: var(--sul-font-xs); }
.sul-cp__al small { color: var(--sul-console-fg-3); font-size: var(--sul-font-xs); }
.sul-cp__al small b { color: var(--sul-console-fg); }
.sul-cp__al small.sul-cp__bad { color: var(--sul-console-crit); font-weight: 600; }
.sul-cp__warntext { color: var(--sul-console-warn); }
.sul-cp__bars { display: block; width: 100%; height: var(--sul-spacing-xs); overflow: hidden; border-radius: var(--sul-radius-pill); }
.sul-cp__bar { fill: var(--sul-console-sunk); }
.sul-cp__bar--pub { fill: var(--sul-link); }
.sul-cp__bar--qc { fill: var(--sul-console-warn); }
.sul-cp__bar--nw { fill: var(--sul-console-line-2); }
.sul-cp__bar--mix { fill: var(--sul-console-accent); }

/* Calendar + side */
.sul-cp__lay { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--sul-console-figure) * 10); align-items: start; gap: var(--sul-spacing-base); }
.sul-cp__chf { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); }
.sul-cp__chf button {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  min-height: calc(var(--sul-console-control-height) * 0.85);
  padding: 0 var(--sul-spacing-compact) 0 var(--sul-spacing-xs);
  border: var(--sul-card-border) solid var(--sul-console-line);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-console-surface);
  color: var(--sul-console-fg);
  font: inherit;
  font-size: var(--sul-font-xs);
  cursor: pointer;
}
.sul-cp__chf button[aria-pressed="false"] { opacity: 0.45; }
.sul-cp__grid { display: grid; }
.sul-cp__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sul-cp__dh {
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-bottom: var(--sul-card-border) solid var(--sul-console-line);
  color: var(--sul-console-fg-3);
  font-size: var(--sul-font-micro);
  font-weight: 700;
  letter-spacing: var(--sul-console-label-tracking);
  text-transform: uppercase;
}
.sul-cp__day {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sul-spacing-xs);
  min-width: 0;
  min-height: calc(var(--sul-console-figure) * 4);
  padding: var(--sul-spacing-xs);
  border-right: var(--sul-card-border) solid var(--sul-console-line);
  border-bottom: var(--sul-card-border) solid var(--sul-console-line);
}
.sul-cp__day:nth-child(7n) { border-right: 0; }
.sul-cp__day--out { background: var(--sul-console-bg); }
.sul-cp__day--past { background: color-mix(in srgb, var(--sul-console-sunk) 40%, var(--sul-console-surface)); }
.sul-cp__day--past .sul-cp__n { color: var(--sul-console-fg-3); }
.sul-cp__day--drop { outline: calc(var(--sul-card-border) * 2) dashed var(--sul-console-accent); outline-offset: calc(var(--sul-card-border) * -3); background: var(--sul-console-accent-soft); }
.sul-cp__n { display: flex; align-items: center; color: var(--sul-console-fg-2); font-size: var(--sul-font-xs); font-weight: 600; }
.sul-cp__day--today .sul-cp__n b { padding: 0 var(--sul-spacing-sm); border-radius: var(--sul-radius-pill); background: var(--sul-primary-action); color: var(--sul-console-accent-ink); }
.sul-cp__add {
  position: absolute;
  top: var(--sul-spacing-xs);
  right: var(--sul-spacing-xs);
  display: grid;
  place-items: center;
  width: calc(var(--sul-spacing-lg) + var(--sul-spacing-xs));
  height: calc(var(--sul-spacing-lg) + var(--sul-spacing-xs));
  border-radius: var(--sul-radius-sm);
  background: var(--sul-console-sunk);
  color: var(--sul-console-fg-3);
  font-size: var(--sul-console-text-15);
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  transition: opacity var(--sul-transition-fast);
}
.sul-cp__day:hover .sul-cp__add, .sul-cp__add:focus-visible { opacity: 1; }
.sul-cp__add:hover { background: var(--sul-console-accent-soft); color: var(--sul-primary-action-strong); }
@media (hover: none) { .sul-cp__add { opacity: 1; } }
.sul-cp__ev { overflow: hidden; padding: var(--sul-card-border) var(--sul-spacing-xs); border-radius: var(--sul-radius-sm); background: color-mix(in srgb, var(--sul-chart-4) 10%, var(--sul-console-surface)); color: var(--sul-chart-4); font-size: var(--sul-font-xxs); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sul-cp__ev--f { background: var(--sul-pastel-primary); color: var(--sul-primary-action-strong); }
.sul-cp__ev--h { background: var(--sul-pastel-info); color: var(--sul-info-dark); }
.sul-cp__chip {
  display: block;
  min-width: 0;
  padding: var(--sul-spacing-xs) var(--sul-spacing-xs);
  border: var(--sul-card-border) solid var(--sul-console-line);
  border-left: calc(var(--sul-card-border) * 3) solid var(--sul-console-line-2);
  border-radius: var(--sul-radius-sm);
  background: var(--sul-console-surface);
  color: var(--sul-console-fg);
  font-size: var(--sul-font-xs);
  text-decoration: none;
}
.sul-cp__chip[draggable="true"] { cursor: grab; }
.sul-cp__chip:hover { border-color: var(--sul-console-line-2); box-shadow: var(--sul-console-shadow-seg); }
.sul-cp__chip:focus-visible { outline: var(--sul-focus); }
.sul-cp__chip--nw { border-style: dashed; border-left-style: solid; }
.sul-cp__chip--qc { border-left-color: var(--sul-console-warn); }
.sul-cp__chip--ch { border-left-color: var(--sul-console-crit); }
.sul-cp__chip--ok { border-left-color: var(--sul-console-ok); }
.sul-cp__chip--pub { border-left-color: var(--sul-link); }
.sul-cp__chip--off { color: var(--sul-console-fg-3); text-decoration: line-through; }
.sul-cp__chip b { display: block; overflow: hidden; margin-top: var(--sul-spacing-xxs); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sul-cp__r1 { display: flex; align-items: center; gap: var(--sul-spacing-xxs); }
.sul-cp__r1 small { margin-left: auto; color: var(--sul-console-fg-3); font-size: var(--sul-font-xxs); font-variant-numeric: tabular-nums; }
.sul-cp__pi { display: inline-flex; }
/* Marks sit inline next to a word here, so they are smaller than the avatar-sized default. */
.sul-cp .sul-platform-icon { width: var(--sul-avatar-sm); height: var(--sul-avatar-sm); font-size: var(--sul-font-xs); }
.sul-cp__chip .sul-platform-icon,
.sul-cp__cs .sul-platform-icon { width: calc(var(--sul-spacing-lg) + var(--sul-spacing-xxs)); height: calc(var(--sul-spacing-lg) + var(--sul-spacing-xxs)); }
.sul-cc__opt span .sul-platform-icon { margin-right: var(--sul-spacing-xs); }
.sul-cp__pi[hidden] { display: none; }

/* List view */
.sul-cp__table td { vertical-align: top; }
.sul-cp__nowrap { white-space: nowrap; }
.sul-cp__cs { display: grid; gap: var(--sul-spacing-xs); margin: 0; padding: 0; list-style: none; }
.sul-cp__cs li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-xs); }
.sul-cp__fix { color: var(--sul-console-crit); font-size: var(--sul-font-xs); }
.sul-cp__by { color: var(--sul-console-fg-3); font-size: var(--sul-font-xs); }

/* Side: suggestions and content mix */
.sul-cp__side { position: sticky; top: var(--sul-spacing-base); display: grid; gap: var(--sul-spacing-base); }
.sul-cp__sh { display: flex; align-items: center; gap: var(--sul-spacing-sm); padding: var(--sul-spacing-compact) var(--sul-spacing-lg); border-bottom: var(--sul-card-border) solid var(--sul-console-line); }
.sul-cp__sh h2 { margin: 0; color: var(--sul-console-fg); font-size: var(--sul-console-text-13); }
.sul-cp__sh small { margin-left: auto; color: var(--sul-console-fg-3); font-size: var(--sul-font-xs); }
.sul-cp__idea { display: grid; justify-items: start; gap: var(--sul-spacing-xs); margin: 0; padding: var(--sul-spacing-compact) var(--sul-spacing-lg); border-bottom: var(--sul-card-border) solid var(--sul-console-line); }
.sul-cp__idea:last-child { border-bottom: 0; }
.sul-cp__idea[draggable="true"] { cursor: grab; }
.sul-cp__idea b { color: var(--sul-console-fg); font-size: var(--sul-console-text-13); }
.sul-cp__idea small { color: var(--sul-console-fg-3); font-size: var(--sul-font-xs); }
.sul-cp__mx { display: grid; gap: var(--sul-spacing-sm); padding: var(--sul-spacing-compact) var(--sul-spacing-lg); font-size: var(--sul-console-text-13); color: var(--sul-console-fg); }
.sul-cp__mx > div { display: grid; grid-template-columns: calc(var(--sul-console-figure) * 4) minmax(0, 1fr) var(--sul-spacing-2xl); align-items: center; gap: var(--sul-spacing-sm); }
.sul-cp__mx b { text-align: right; font-variant-numeric: tabular-nums; }
.sul-cp__mx .sul-cc__hint { margin: 0; }

/* Drawer */
.sul-cp__dbody { display: grid; align-content: start; gap: var(--sul-spacing-lg); }
.sul-cp__sec { border: var(--sul-card-border) solid var(--sul-console-line); border-radius: var(--sul-console-radius-panel); }
details.sul-cp__sec > summary {
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-compact) var(--sul-spacing-lg);
  color: var(--sul-console-fg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
details.sul-cp__sec > summary::-webkit-details-marker { display: none; }
details.sul-cp__sec > summary small { overflow: hidden; color: var(--sul-console-fg-3); font-size: var(--sul-font-xs); font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
details.sul-cp__sec > summary::after { content: "▸"; margin-left: auto; color: var(--sul-console-fg-3); }
details.sul-cp__sec[open] > summary::after { content: "▾"; }
.sul-cp__fg { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sul-spacing-compact); margin: 0; padding: 0 var(--sul-spacing-lg) var(--sul-spacing-lg); }
.sul-cp__full { grid-column: 1 / -1; }
.sul-cp__fg .sul-cc__hint { margin: var(--sul-spacing-xxs) 0 0; }
.sul-cp__facts { margin: 0; padding: 0 var(--sul-spacing-lg) var(--sul-spacing-lg); }
.sul-cp__from { margin: 0; padding: 0 var(--sul-spacing-lg) var(--sul-spacing-compact); }
.sul-cp__tabs { display: flex; gap: var(--sul-spacing-xxs); padding: 0 var(--sul-spacing-lg); overflow-x: auto; border-bottom: var(--sul-card-border) solid var(--sul-console-line); }
.sul-cp__tabs[hidden] { display: none; }
.sul-cp__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  margin-bottom: calc(var(--sul-card-border) * -1);
  padding: var(--sul-spacing-compact);
  border: 0;
  border-bottom: calc(var(--sul-card-border) * 2) solid transparent;
  background: none;
  color: var(--sul-console-fg-3);
  font: inherit;
  font-size: var(--sul-console-text-13);
  white-space: nowrap;
  cursor: pointer;
}
.sul-cp__tab[aria-selected="true"] { border-bottom-color: var(--sul-console-accent); color: var(--sul-console-fg); font-weight: 600; }
.sul-cp__tab:focus-visible { outline: var(--sul-focus); }
.sul-cp__panel { display: grid; gap: var(--sul-spacing-compact); padding: var(--sul-spacing-lg); }
.sul-cp__panel + .sul-cp__panel { border-top: var(--sul-card-border) solid var(--sul-console-line); }
.sul-cp__tabs:not([hidden]) ~ .sul-cp__panel { border-top: 0; }
.sul-cp__tabs:not([hidden]) ~ .sul-cp__panel .sul-cp__phead { display: none; }
.sul-cp__panel[hidden] { display: none; }
.sul-cp__phead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-xs); margin: 0; color: var(--sul-console-fg); font-size: var(--sul-console-text-13); }
.sul-cp__phead small { color: var(--sul-console-fg-3); font-weight: 400; }
.sul-cp__gennote { margin: 0; padding: 0 var(--sul-spacing-lg) var(--sul-spacing-lg); }
.sul-cp__empty { display: grid; justify-items: center; gap: var(--sul-spacing-sm); padding: var(--sul-spacing-2xl); border: calc(var(--sul-card-border) * 1.5) dashed var(--sul-console-line); border-radius: var(--sul-console-radius-panel); color: var(--sul-console-fg-3); font-size: var(--sul-console-text-13); text-align: center; }
.sul-cp__empty b { color: var(--sul-console-fg); font-size: var(--sul-console-text-15); }
.sul-cp__empty small { font-size: var(--sul-font-xs); }
.sul-cp__tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-xs); }
.sul-cp__count { color: var(--sul-console-fg-3); font-size: var(--sul-font-xs); font-variant-numeric: tabular-nums; }
.sul-cp__pv { display: grid; place-items: center; padding: var(--sul-spacing-lg); border-radius: var(--sul-console-radius-panel); background: var(--sul-console-sunk); }
.sul-cp__pc { overflow: hidden; width: 100%; max-width: calc(var(--sul-console-figure) * 14.5); border-radius: var(--sul-console-radius-panel); background: var(--sul-console-surface); box-shadow: var(--sul-console-shadow-drop); }
.sul-cp__pch { display: flex; align-items: center; gap: var(--sul-spacing-sm); padding: var(--sul-spacing-compact) var(--sul-spacing-base); font-size: var(--sul-console-text-13); color: var(--sul-console-fg); }
.sul-cp__pch i { display: grid; place-items: center; flex: none; width: calc(var(--sul-console-figure) + var(--sul-spacing-xxs)); height: calc(var(--sul-console-figure) + var(--sul-spacing-xxs)); border-radius: 50%; background: var(--sul-primary-action-strong); color: var(--sul-console-accent-ink); font-size: var(--sul-font-xxs); font-style: normal; font-weight: 800; }
.sul-cp__pch small { display: block; color: var(--sul-console-fg-3); font-size: var(--sul-font-xs); }
.sul-cp__pim { display: block; width: 100%; height: auto; }
.sul-cp__ptx { max-height: calc(var(--sul-console-figure) * 8); margin: 0; padding: var(--sul-spacing-compact) var(--sul-spacing-base); overflow: auto; color: var(--sul-console-fg); font-size: var(--sul-console-text-13); white-space: pre-wrap; overflow-wrap: anywhere; }
.sul-cp__chk { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); margin: 0; padding: var(--sul-spacing-sm) var(--sul-spacing-compact); border-radius: var(--sul-console-radius); background: var(--sul-console-sunk); color: var(--sul-console-fg-2); font-size: var(--sul-console-text-13); }
.sul-cp__chk--bad { background: var(--sul-console-crit-soft); color: var(--sul-console-crit); }
.sul-cp__chk--ok { background: var(--sul-console-ok-soft); color: var(--sul-console-ok); }
.sul-cp__chk a { margin-left: auto; color: inherit; font-weight: 600; }
.sul-cp__findings { display: grid; gap: var(--sul-spacing-xs); margin: 0; padding: 0; list-style: none; font-size: var(--sul-console-text-13); color: var(--sul-console-fg-2); }

@media (max-width: 1150px) {
  .sul-cp__lay { grid-template-columns: 1fr; }
  .sul-cp__side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .sul-cp__side, .sul-cp__fg { grid-template-columns: 1fr; }
  .sul-cp__day { min-height: calc(var(--sul-console-figure) * 2.5); padding: var(--sul-spacing-xxs); }
  .sul-cp__chip b, .sul-cp__r1 small, .sul-cp__ev { display: none; }
  .sul-cp__dh { padding: var(--sul-spacing-xs) var(--sul-spacing-xxs); }
}
/* The business's own tabs, from its QC batch: one line of links. */
.sul-qc__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sul-spacing-xs) var(--sul-spacing-sm); margin: 0; }
.sul-qc__business { color: inherit; text-decoration: underline; }
.sul-qc__business:hover { color: var(--sul-primary-action); }

/* ---------------------------------------------------------------------------
   QC review of one business's posts (QcBatch.cshtml, migration 237; revamped 2026-11-12 to qc-review.html):
   the post list | the post as it will look | the check and history, and a bar of actions held at the bottom.
   --------------------------------------------------------------------------- */
.sul-qcr { display: grid; gap: var(--sul-spacing-base); }
.sul-qcr__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-base); }
.sul-qcr__title { flex: 1 1 auto; min-width: 0; display: grid; gap: var(--sul-spacing-xxs); }
.sul-qcr__crumb { margin: 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-qcr__crumb a { color: inherit; }
.sul-qcr__h1 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); font-size: var(--sul-font-xl); }
.sul-qcr__h2 { margin: 0; font-size: var(--sul-font-base); }
.sul-qcr__meta { margin: 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-qcr__reviewer {
  display: inline-flex; align-items: center; gap: var(--sul-spacing-sm); margin: 0;
  padding: var(--sul-spacing-xs) var(--sul-spacing-compact) var(--sul-spacing-xs) var(--sul-spacing-xs);
  border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-pill);
  background: var(--sul-surface); font-size: var(--sul-font-xs);
}
.sul-qcr__avatar, .sul-qcr__logo {
  display: inline-grid; place-items: center; flex: none; border-radius: 50%;
  width: var(--sul-avatar-sm); height: var(--sul-avatar-sm);
  background: var(--sul-pastel-info); color: var(--sul-info-dark); font-size: var(--sul-font-xxs); font-weight: 700;
}
.sul-qcr__select { border: 0; background: none; color: var(--sul-text); font: inherit; font-weight: 600; }
.sul-qcr__select:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-qcr__alldone {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm) var(--sul-spacing-base);
  padding: var(--sul-spacing-base) var(--sul-spacing-lg); border-radius: var(--sul-radius-lg);
  background: var(--sul-success-light); border: var(--sul-card-border) solid var(--sul-pastel-success);
}
.sul-qcr__alldone > .sul-button { margin-left: auto; }

.sul-qcr__ws {
  display: grid; gap: var(--sul-spacing-base); align-items: start;
  grid-template-columns: var(--sul-desktop-sidebar-width) minmax(0, 1fr) var(--sul-desktop-card-min);
}
.sul-qcr__list, .sul-qcr__side { position: sticky; top: var(--sul-spacing-lg); display: grid; gap: var(--sul-spacing-base); min-width: 0; }

/* The post list. */
.sul-qcr__items { list-style: none; margin: 0; padding: 0; }
.sul-qcr__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sul-spacing-sm); align-items: start;
  padding: var(--sul-spacing-compact) var(--sul-spacing-base); color: inherit; text-decoration: none;
  border-top: var(--sul-card-border) solid var(--sul-border); border-left: var(--sul-spacing-xs) solid transparent;
}
.sul-qcr__item:hover { background: var(--sul-background); }
.sul-qcr__item[aria-current="true"] { background: var(--sul-selected-bg); border-left-color: var(--sul-primary-action); }
.sul-qcr__itemtext { display: grid; gap: var(--sul-spacing-xxs); min-width: 0; }
.sul-qcr__itemtext strong { font-size: var(--sul-font-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sul-qcr__itemtext small { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-xs); font-size: var(--sul-font-micro); color: var(--sul-muted); }
.sul-qcr__tofix { color: var(--sul-danger); font-weight: 600; }
.sul-qcr__progress { display: grid; gap: var(--sul-spacing-xs); padding: var(--sul-spacing-compact) var(--sul-spacing-base); border-top: var(--sul-card-border) solid var(--sul-border); font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-qcr__bar-meter { width: 100%; height: var(--sul-spacing-xs); appearance: none; border: 0; border-radius: var(--sul-radius-pill); background: var(--sul-background); overflow: hidden; }
.sul-qcr__bar-meter::-webkit-progress-bar { background: var(--sul-background); }
.sul-qcr__bar-meter::-webkit-progress-value { background: var(--sul-success); }
.sul-qcr__bar-meter::-moz-progress-bar { background: var(--sul-success); }

/* The post. */
.sul-qcr__preview { min-width: 0; }
.sul-qcr__ph { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-compact); padding-bottom: var(--sul-spacing-compact); border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-qcr__phtext { flex: 1 1 auto; min-width: 0; display: grid; gap: var(--sul-spacing-xxs); }
.sul-qcr__seg { display: inline-flex; padding: var(--sul-spacing-xxs); border-radius: var(--sul-radius-lg); background: var(--sul-background); }
.sul-qcr__seg a { padding: var(--sul-spacing-xs) var(--sul-spacing-compact); border-radius: var(--sul-radius-base); font-size: var(--sul-font-xs); color: var(--sul-muted); text-decoration: none; }
.sul-qcr__seg a[aria-current="true"] { background: var(--sul-surface); color: var(--sul-primary-action-strong); font-weight: 600; box-shadow: var(--sul-shadow-sm); }
.sul-qcr__notice { margin: var(--sul-spacing-sm) 0 0; font-size: var(--sul-font-xs); }
.sul-qcr__stage { display: grid; place-items: center; margin-top: var(--sul-spacing-compact); padding: var(--sul-spacing-xl); border-radius: var(--sul-radius-lg); background: var(--sul-background); }
.sul-qcr__mock { width: 100%; max-width: var(--sul-desktop-signin-max); overflow: hidden; border-radius: var(--sul-radius-xl); background: var(--sul-surface); box-shadow: var(--sul-shadow-lg); }
.sul-qcr__mockhead { display: flex; align-items: center; gap: var(--sul-spacing-compact); padding: var(--sul-spacing-base); }
.sul-qcr__mockhead span { display: grid; min-width: 0; }
.sul-qcr__mockhead small { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-qcr__logo { width: var(--sul-avatar-md); height: var(--sul-avatar-md); background: var(--sul-pastel-primary); color: var(--sul-primary-action-strong); }
.sul-qcr__img { display: block; width: 100%; height: auto; }
.sul-qcr__noimg { margin: 0; padding: var(--sul-spacing-lg); text-align: center; font-size: var(--sul-font-xs); color: var(--sul-muted); background: var(--sul-background); }
.sul-qcr__words { margin: 0; padding: var(--sul-spacing-base) var(--sul-spacing-lg) var(--sul-spacing-lg); white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--sul-font-sm); }
.sul-qcr__cta {
  margin: 0 var(--sul-spacing-lg) var(--sul-spacing-lg); padding: var(--sul-spacing-sm);
  border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-pill);
  text-align: center; font-weight: 600; font-size: var(--sul-font-sm); color: var(--sul-link);
}
/* 251: the button's line under the preview can carry a long link. */
.sul-qcr__ctaline { min-width: 0; overflow-wrap: anywhere; }
.sul-qcr__mark { border-radius: var(--sul-radius-xs); padding: 0 var(--sul-spacing-xxs); color: inherit; }
.sul-qcr__mark--danger { background: var(--sul-pastel-danger); }
.sul-qcr__mark--warning { background: var(--sul-pastel-warning); }
.sul-qcr__mark--neutral { background: var(--sul-background); }
.sul-qcr__editor { width: 100%; max-width: var(--sul-desktop-dialog-max); display: grid; gap: var(--sul-spacing-sm); }
/* Preview / Edit text: the pane not chosen is hidden; display: grid above would otherwise show both. */
.sul-qcr__editor[hidden], .sul-qcr__mock[hidden] { display: none; }
.sul-qcr__textarea { width: 100%; resize: vertical; }
.sul-qcr__editbar { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-sm); }
.sul-qcr__counts { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs) var(--sul-spacing-base); margin-top: var(--sul-spacing-compact); font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-qcr__counts strong { color: var(--sul-text); }
.sul-qcr__legend { margin-left: auto; }
.sul-qcr__ver { margin: var(--sul-spacing-xs) 0 0; font-size: var(--sul-font-xs); color: var(--sul-muted); }

/* The check. */
.sul-qcr__score { display: flex; align-items: center; gap: var(--sul-spacing-base); }
.sul-qcr__score > span:last-child { display: grid; gap: var(--sul-spacing-xxs); min-width: 0; }
/* v2: the score as a ring (an SVG circle whose dash is the score out of pathLength 100), the number in the middle. */
.sul-qcr__ring { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--sul-avatar-lg); height: var(--sul-avatar-lg); }
.sul-qcr__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sul-qcr__ring circle { fill: none; stroke-width: 3.2; }
.sul-qcr__ring-track { stroke: var(--sul-background); }
.sul-qcr__ring-fill { stroke: currentColor; stroke-linecap: round; }
.sul-qcr__ring > span { position: relative; line-height: 1; font-weight: 800; font-size: var(--sul-font-xs); color: var(--sul-text); text-align: center; }
.sul-qcr__ring small { display: block; font-size: var(--sul-font-2xs); font-weight: 600; color: var(--sul-muted); }
.sul-qcr__ring--danger { color: var(--sul-danger); }
.sul-qcr__ring--warning { color: var(--sul-warning); }
.sul-qcr__ring--success { color: var(--sul-success); }
.sul-qcr__ring--neutral { color: var(--sul-border); }
@media (prefers-reduced-motion: no-preference) {
  .sul-qcr__ring-fill { transition: stroke-dasharray 0.3s; }
}
.sul-qcr__checks { list-style: none; margin: var(--sul-spacing-sm) 0 0; padding: 0; }
.sul-qcr__check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sul-spacing-sm); padding: var(--sul-spacing-compact) 0; border-top: var(--sul-card-border) solid var(--sul-border); margin: 0; }
.sul-qcr__check--ignored { opacity: 0.5; }
.sul-qcr__check--ignored .sul-qcr__finding { text-decoration: line-through; }
.sul-qcr__dot { display: inline-grid; place-items: center; width: var(--sul-spacing-xl); height: var(--sul-spacing-xl); border-radius: 50%; font-size: var(--sul-font-micro); font-weight: 800; }
.sul-qcr__dot--danger { background: var(--sul-pastel-danger); color: var(--sul-danger); }
.sul-qcr__dot--warning { background: var(--sul-pastel-warning); color: var(--sul-warning-dark); }
.sul-qcr__dot--neutral { background: var(--sul-background); color: var(--sul-muted); }
.sul-qcr__finding { margin: 0; font-size: var(--sul-font-xs); }
.sul-qcr__tag { margin-right: var(--sul-spacing-xs); font-size: var(--sul-font-xxs); font-weight: 700; text-transform: uppercase; }
.sul-qcr__tag--danger { color: var(--sul-danger); }
.sul-qcr__tag--warning { color: var(--sul-warning-dark); }
.sul-qcr__tag--neutral { color: var(--sul-muted); }
.sul-qcr__fix { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); margin-top: var(--sul-spacing-xs); }
.sul-qcr__fix[hidden] { display: none; }
.sul-qcr__ignore { border-color: transparent; color: var(--sul-muted); }

/* History. */
.sul-qcr__history { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sul-spacing-xs); }
.sul-qcr__history li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--sul-spacing-sm); font-size: var(--sul-font-xs); }
.sul-qcr__history li > span:first-child { color: var(--sul-muted); }

/* v2: the versions strip above the post, the "looking at an earlier version" line, the done view's buttons. */
.sul-qcr__vers {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-sm) 0; border-bottom: var(--sul-card-border) solid var(--sul-border);
  font-size: var(--sul-font-xs); color: var(--sul-muted);
}
.sul-qcr__vers a {
  padding: var(--sul-spacing-xxs) var(--sul-spacing-compact); border-radius: var(--sul-radius-pill);
  border: var(--sul-card-border) solid var(--sul-border); background: var(--sul-surface); color: var(--sul-muted); text-decoration: none;
}
.sul-qcr__vers a[aria-current="true"] { border-color: var(--sul-primary-action); background: var(--sul-selected-bg); color: var(--sul-primary-action-strong); font-weight: 600; }
.sul-qcr__vers a:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-qcr__older {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact); border-radius: var(--sul-radius-base); background: var(--sul-warning-light);
}
.sul-qcr__older > span { flex: 1 1 auto; min-width: 0; }
.sul-qcr__older form { margin: 0; }
.sul-qcr__donebtns { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-sm); margin-left: auto; }
.sul-qcr__reviewer form, form.sul-qcr__reviewer { margin: 0; }

/* The bar of actions: held at the bottom of the window while the page scrolls. */
.sul-qcr__actions {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm);
  padding: var(--sul-spacing-compact) var(--sul-spacing-lg);
  border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-xl) var(--sul-radius-xl) 0 0;
  background: var(--sul-surface); box-shadow: var(--sul-shadow-lg);
}
.sul-qcr__actions form { margin: 0; }
.sul-qcr__who { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-xs); font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-qcr__who strong { color: var(--sul-text); }
.sul-qcr__step { display: inline-grid; place-items: center; width: var(--sul-avatar-sm); height: var(--sul-avatar-sm); border-radius: var(--sul-radius-base); border: var(--sul-card-border) solid var(--sul-border); color: var(--sul-text); text-decoration: none; }
.sul-qcr__grow { flex: 1 1 auto; }
.sul-qcr__late { margin: 0; }
/* 252: the publishing time on the business's clock and in IST; amber when it has passed. */
.sul-qcr__when {
  display: grid; gap: var(--sul-spacing-xs); justify-items: start;
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-base);
}
.sul-qcr__when--late { border-color: var(--sul-warning); background: var(--sul-warning-light); color: var(--sul-warning-dark); }
.sul-qcr__pick { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-base); }
.sul-qcr__pick .sul-field { display: grid; gap: var(--sul-spacing-xs); }
.sul-qcr__no { color: var(--sul-danger); }
.sul-qcr__ok { background: var(--sul-success-dark); border-color: var(--sul-success-dark); color: var(--sul-surface); }
.sul-qcr__actions kbd, .sul-qcr__ok kbd {
  margin-left: var(--sul-spacing-xs); padding: 0 var(--sul-spacing-xs); border: var(--sul-card-border) solid currentColor;
  border-radius: var(--sul-radius-sm); font: inherit; font-size: var(--sul-font-micro); opacity: 0.65;
}

/* Reason chips in the dialogs. */
.sul-qcr__chips { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); }
.sul-qcr__chips[hidden] { display: none; }
.sul-qcr__chip {
  padding: var(--sul-spacing-xs) var(--sul-spacing-compact); border-radius: var(--sul-radius-pill);
  border: var(--sul-card-border) solid var(--sul-border); background: var(--sul-surface); color: var(--sul-text);
  font: inherit; font-size: var(--sul-font-xs); cursor: pointer;
}
.sul-qcr__chip[aria-pressed="true"] { background: var(--sul-primary-action); border-color: var(--sul-primary-action); color: var(--sul-surface); }

@media (max-width: 1200px) {
  .sul-qcr__ws { grid-template-columns: minmax(0, 1fr) var(--sul-desktop-card-min); }
  .sul-qcr__list { display: none; }
}
@media (max-width: 860px) {
  .sul-qcr__ws { grid-template-columns: 1fr; }
  .sul-qcr__side { position: static; }
  .sul-qcr__legend { margin-left: 0; }
}

/* ---------------------------------------------------------------------------
   QC queue (QcQueue.cshtml, revamped 2026-11-12 to qc-review-v2.html): tiles that filter, tabs + search +
   platform + sort, a bulk-assign bar, one row per business.
   --------------------------------------------------------------------------- */
.sul-qcq { display: grid; gap: var(--sul-spacing-base); }
.sul-qcq__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sul-spacing-compact); }
.sul-qcq__tile {
  display: grid; gap: var(--sul-spacing-xxs); padding: var(--sul-card-padding-v) var(--sul-card-padding-h);
  border: var(--sul-card-border) solid var(--sul-border); border-radius: var(--sul-radius-xl);
  background: var(--sul-surface); color: inherit; text-decoration: none;
}
.sul-qcq__tile:hover { border-color: var(--sul-muted); }
.sul-qcq__tile:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-qcq__tile[aria-current="true"] { border-color: var(--sul-primary-action); box-shadow: 0 0 0 var(--sul-spacing-xs) var(--sul-selected-bg); }
.sul-qcq__tile small { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-qcq__tile strong { font-size: var(--sul-font-2xl); line-height: 1.1; }
.sul-qcq__tile em { font-style: normal; font-size: var(--sul-font-xxs); color: var(--sul-muted); }
.sul-qcq__bad { color: var(--sul-danger); }

.sul-qcq__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); padding-bottom: var(--sul-spacing-compact); border-bottom: var(--sul-card-border) solid var(--sul-border); }
.sul-qcq__tabs { display: inline-flex; padding: var(--sul-spacing-xxs); border-radius: var(--sul-radius-lg); background: var(--sul-background); }
.sul-qcq__tabs a {
  display: inline-flex; align-items: center; gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-xs) var(--sul-spacing-compact); border-radius: var(--sul-radius-base);
  font-size: var(--sul-font-xs); color: var(--sul-muted); text-decoration: none;
}
.sul-qcq__tabs a span { padding: 0 var(--sul-spacing-xs); border-radius: var(--sul-radius-pill); background: var(--sul-border); font-size: var(--sul-font-xxs); }
.sul-qcq__tabs a[aria-current="page"] { background: var(--sul-surface); color: var(--sul-primary-action-strong); font-weight: 600; box-shadow: var(--sul-shadow-sm); }
.sul-qcq__tabs a[aria-current="page"] span { background: var(--sul-selected-bg); }
.sul-qcq__search { flex: 1 1 var(--sul-desktop-report-filter-min); max-width: var(--sul-desktop-card-min); }
.sul-qcq__select { width: auto; }
.sul-qcq__grow { flex: 1 1 auto; }

.sul-qcq__bulk {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm);
  margin-top: var(--sul-spacing-compact); padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-radius: var(--sul-radius-base); background: var(--sul-selected-bg); font-size: var(--sul-font-xs);
}
.sul-qcq__bulk[hidden] { display: none; }
.sul-qcq__clear[hidden] { display: none; }

.sul-qcq__table td { vertical-align: middle; }
.sul-qcq__row { cursor: pointer; }
.sul-qcq__row:hover td { background: var(--sul-background); }
.sul-qcq__row:hover .sul-qcq__open { background: var(--sul-primary-action); border-color: var(--sul-primary-action); color: var(--sul-surface); }
.sul-qcq__tick { width: var(--sul-spacing-2xl); }
.sul-qcq__tick input { accent-color: var(--sul-primary-action); }
.sul-qcq__tick input[hidden] { display: none; }
.sul-qcq__icons { display: inline-flex; gap: var(--sul-spacing-xxs); }
.sul-qcq__who { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); font-size: var(--sul-font-xs); }
.sul-qcq__row form { margin: 0; }
.sul-qcq__take {
  padding: var(--sul-spacing-xxs) var(--sul-spacing-compact); border-radius: var(--sul-radius-pill);
  border: var(--sul-card-border) dashed var(--sul-primary-action); background: none;
  color: var(--sul-primary-action); font: inherit; font-size: var(--sul-font-xs); font-weight: 600; cursor: pointer;
}
.sul-qcq__take:focus-visible { outline: var(--sul-spacing-xxs) solid var(--sul-focus); outline-offset: var(--sul-spacing-xxs); }
.sul-qcq kbd {
  margin-left: var(--sul-spacing-xs); padding: 0 var(--sul-spacing-xs); border: var(--sul-card-border) solid currentColor;
  border-radius: var(--sul-radius-sm); font: inherit; font-size: var(--sul-font-micro); opacity: 0.65;
}

@media (max-width: 860px) {
  .sul-qcq__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sul-qcq__hide-s { display: none; }
  .sul-qcq__search { max-width: none; }
}

/* Write a post → Media → Design with Canva (compose/CanvaPanel.tsx, migration 195). */
.sul-canva { display: grid; gap: var(--sul-spacing-sm); margin-bottom: var(--sul-spacing-base); }
.sul-canva__lede { margin: 0; font-size: var(--sul-font-sm); color: var(--sul-text-secondary); }
.sul-canva__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-sm); }
.sul-canva__account { justify-content: space-between; font-size: var(--sul-font-sm); }
.sul-canva__sizes { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--sul-spacing-xs); }
.sul-canva__pending {
  display: grid;
  gap: var(--sul-spacing-xs);
  padding: var(--sul-spacing-sm);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-sm);
  background: var(--sul-background);
  font-size: var(--sul-font-sm);
}
.sul-canva__pending p { margin: 0; }
.sul-canva__search { flex: 1 1 auto; min-width: 0; }
.sul-canva__designs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(var(--sul-photo-thumb) * 1.4), 1fr));
  gap: var(--sul-spacing-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sul-canva__design { display: flex; flex-direction: column; gap: var(--sul-spacing-xs); min-width: 0; }
.sul-canva__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-sm);
  background: var(--sul-background);
}
.sul-canva__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--sul-font-xs);
  color: var(--sul-muted);
}
.sul-canva__title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--sul-font-xs);
}

/* Business > Features (migration 205): the per-row change form and the saved notice. */
.sul-features__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-xs);
}
.sul-features__form .sul-input { width: auto; min-width: 0; }
.sul-features__notice {
  margin: 0 0 var(--sul-spacing-base);
  font-size: var(--sul-font-sm);
  color: var(--sul-success-dark);
}

/* ---------------------------------------------------------------------------
   Businesses list → Sync insights, a batch's progress (InsightsSync.cshtml, migration 212).
   Tables are the shared .sul-table; the frame scrolls sideways on a narrow screen.
   --------------------------------------------------------------------------- */
.sul-isync { display: grid; gap: var(--sul-spacing-lg); }
.sul-isync__progress { margin: 0 0 var(--sul-spacing-xs); font-size: var(--sul-font-sm); color: var(--sul-text); }
.sul-isync__bar {
  display: block;
  width: 100%;
  height: var(--sul-spacing-sm);
  margin: 0 0 var(--sul-spacing-base);
  border: 0;
  border-radius: var(--sul-radius-pill);
  background: var(--sul-background);
  overflow: hidden;
  appearance: none;
}
.sul-isync__bar::-webkit-progress-bar { background: var(--sul-background); border-radius: var(--sul-radius-pill); }
.sul-isync__bar::-webkit-progress-value { background: var(--sul-primary-action); border-radius: var(--sul-radius-pill); }
.sul-isync__bar::-moz-progress-bar { background: var(--sul-primary-action); border-radius: var(--sul-radius-pill); }
.sul-isync__note { margin: 0 0 var(--sul-spacing-base); font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-isync__frame { overflow-x: auto; }
.sul-isync__muted { display: block; font-size: var(--sul-font-xs); color: var(--sul-muted); overflow-wrap: anywhere; }
.sul-isync__error { display: block; margin-top: var(--sul-spacing-xxs); font-size: var(--sul-font-xs); color: var(--sul-danger); overflow-wrap: anywhere; }
.sul-isync tr[aria-current="true"] td { background: var(--sul-background); }

/* Bulk insights sync by AdIds for a date range (migration 220). */
.sul-isync__notice {
  margin: 0 0 var(--sul-spacing-lg);
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
  border: var(--sul-card-border) solid var(--sul-border);
  font-size: var(--sul-font-sm);
  color: var(--sul-text);
}
.sul-isync__form { display: grid; gap: var(--sul-spacing-base); }
.sul-isync__form .sul-field { margin: 0; }
.sul-isync__adids { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
.sul-isync__market { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-lg); margin: 0; padding: 0; border: 0; }
.sul-isync__market legend { padding: 0; margin-bottom: var(--sul-spacing-xs); }
.sul-isync__market label { display: inline-flex; align-items: center; gap: var(--sul-spacing-xs); font-size: var(--sul-font-sm); }
.sul-isync__dates { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-lg); }
.sul-isync__form-error { margin: 0 0 var(--sul-spacing-base); font-size: var(--sul-font-sm); }
.sul-isync__form > .sul-button { justify-self: start; }
.sul-isync__meta { margin: 0 0 var(--sul-spacing-xs); font-size: var(--sul-font-sm); color: var(--sul-muted); }
.sul-isync__missing { margin: 0 0 var(--sul-spacing-base); font-size: var(--sul-font-sm); }
.sul-isync__missing p { margin: var(--sul-spacing-xs) 0 0; overflow-wrap: anywhere; }

/* Sync insights details by day or month (migration 218). */
.sul-isync__filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sul-spacing-lg); }
.sul-isync__filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sul-spacing-sm); }
.sul-isync__filter .sul-field { margin: 0; }
.sul-isync__clear { font-size: var(--sul-font-sm); padding-bottom: var(--sul-spacing-sm); }
.sul-isync__step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sul-spacing-base);
  margin: var(--sul-spacing-base) 0;
  font-size: var(--sul-font-sm);
}
.sul-isync__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(var(--sul-spacing-3xl) * 4), 1fr));
  gap: var(--sul-spacing-sm);
  margin: 0;
}
.sul-isync__tiles > div {
  padding: var(--sul-spacing-compact) var(--sul-spacing-base);
  border: var(--sul-card-border) solid var(--sul-border);
  border-radius: var(--sul-radius-lg);
  background: var(--sul-surface);
}
.sul-isync__tiles dt { font-size: var(--sul-font-xs); color: var(--sul-muted); }
.sul-isync__tiles dd { margin: var(--sul-spacing-xxs) 0 0; font-size: var(--sul-font-xl); font-weight: 600; color: var(--sul-text); }

/* ---------------------------------------------------------------------
   Leave & cover (/admin/leave, migration 213): the admin-leave island,
   after leave-cover_2.html. Console tokens only; dynamic sizes arrive as
   custom properties (--w, --days, --row, --col, --a, --b) set from refs.
   --------------------------------------------------------------------- */
.sul-lv { display: grid; gap: var(--sul-spacing-base); color: var(--sul-console-fg); font-size: var(--sul-console-text-13); }
.sul-lv b { font-weight: 600; }
.sul-lv small { color: var(--sul-console-fg-3); font-size: var(--sul-font-xs); }
.sul-lv__min { min-width: 0; }
.sul-lv__sp { flex: 1; }
.sul-lv__head { display: flex; align-items: flex-end; gap: var(--sul-spacing-compact); flex-wrap: wrap; }
.sul-lv__h1 { margin: 0; font-size: var(--sul-font-2xl); }
.sul-lv__sub { margin: var(--sul-spacing-xs) 0 0; color: var(--sul-console-fg-3); max-width: 62ch; }

/* status bar */
.sul-lv__sb, .sul-lv__card {
  background: var(--sul-console-surface);
  border: var(--sul-card-border) solid var(--sul-console-line);
  border-radius: var(--sul-console-radius-panel);
  box-shadow: var(--sul-console-shadow-panel);
}
.sul-lv__sb { padding: var(--sul-spacing-base) var(--sul-spacing-lg); }
.sul-lv__sbh { display: flex; align-items: baseline; gap: var(--sul-spacing-sm); margin-bottom: var(--sul-spacing-sm); }
.sul-lv__sbh b { font-size: var(--sul-console-text-15); }
.sul-lv__sp2 { margin-left: auto; color: var(--sul-console-fg-3); font-size: var(--sul-font-xs); }
.sul-lv__bar3 { display: flex; gap: var(--sul-spacing-xxs); height: var(--sul-spacing-compact); border-radius: var(--sul-radius-pill); overflow: hidden; background: var(--sul-console-sunk); }
.sul-lv__seg { display: block; flex: var(--w) 1 0; }
.sul-lv__seg--ok, .sul-lv__dot--ok { background: var(--sul-console-ok); }
.sul-lv__seg--wait, .sul-lv__dot--wait { background: var(--sul-console-accent-2); }
.sul-lv__seg--no, .sul-lv__dot--no { background: var(--sul-console-crit); }
.sul-lv__dot--all { background: var(--sul-console-fg-3); }
.sul-lv__sbl { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xl); margin-top: var(--sul-spacing-compact); }
.sul-lv__sbl button { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sul-lv__sbl b { display: block; font-size: var(--sul-font-xl); line-height: 1.1; font-variant-numeric: tabular-nums; }
.sul-lv__sbl small { display: flex; align-items: center; gap: var(--sul-spacing-xs); }
.sul-lv__sbl button.is-on small { color: var(--sul-console-accent); font-weight: 600; }
.sul-lv__dot { width: var(--sul-spacing-sm); height: var(--sul-spacing-sm); border-radius: var(--sul-radius-xs); display: inline-block; }

/* the card */
.sul-lv__card { overflow: hidden; }
.sul-lv__ch { display: flex; align-items: center; gap: var(--sul-spacing-sm); flex-wrap: wrap; padding: var(--sul-spacing-base) var(--sul-spacing-lg); border-bottom: var(--sul-card-border) solid var(--sul-console-sunk); }
.sul-lv__ch h2 { margin: 0; font-size: var(--sul-console-text-15); }
.sul-lv__link { border: 0; background: none; padding: 0; font: inherit; font-size: var(--sul-font-xs); color: var(--sul-console-accent); cursor: pointer; }
.sul-lv__seg-toggle { display: flex; margin-left: auto; padding: var(--sul-spacing-xxs); border-radius: var(--sul-radius-base); background: var(--sul-console-sunk); }
.sul-lv__seg-toggle button { border: 0; background: none; height: calc(var(--sul-console-control-height) - var(--sul-spacing-sm)); padding: 0 var(--sul-spacing-compact); border-radius: var(--sul-radius-sm); font: inherit; color: var(--sul-console-fg-3); cursor: pointer; }
.sul-lv__seg-toggle button.is-on { background: var(--sul-console-surface); color: var(--sul-console-accent); font-weight: 600; box-shadow: var(--sul-console-shadow-seg); }

.sul-lv__row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.2fr) auto;
  gap: var(--sul-spacing-base);
  align-items: center;
  padding: var(--sul-spacing-base) var(--sul-spacing-lg);
  border-bottom: var(--sul-card-border) solid var(--sul-console-sunk);
}
.sul-lv__row:last-child { border-bottom: 0; }
.sul-lv__who { display: flex; gap: var(--sul-spacing-compact); align-items: center; min-width: 0; }
.sul-lv__who b, .sul-lv__dt b { display: block; }
.sul-lv__cov { font-size: var(--sul-font-xs); color: var(--sul-console-fg-3); min-width: 0; }
.sul-lv__cov b { color: var(--sul-console-fg); }
.sul-lv__warn { color: var(--sul-console-warn); }
.sul-lv__acts { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-xs); justify-content: flex-end; }
.sul-lv__ok { color: var(--sul-console-ok); }
.sul-lv__no { color: var(--sul-console-crit); }

.sul-lv__av {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: var(--sul-avatar-sm);
  height: var(--sul-avatar-sm);
  border-radius: var(--sul-radius-pill);
  background: var(--sul-console-accent-soft);
  color: var(--sul-console-accent);
  font-size: var(--sul-font-micro);
  font-weight: 700;
}
.sul-lv__av--sm { width: var(--sul-spacing-2xl); height: var(--sul-spacing-2xl); font-size: var(--sul-font-xxs); }

.sul-lv__pill { font-size: var(--sul-font-micro); font-weight: 700; padding: 0 var(--sul-spacing-sm); border-radius: var(--sul-radius-pill); background: var(--sul-console-sunk); color: var(--sul-console-fg-3); white-space: nowrap; }
.sul-lv__pill--now { background: var(--sul-console-ok-soft); color: var(--sul-console-ok); }
.sul-lv__pill--soon { background: var(--sul-pastel-info); color: var(--sul-info-dark); }
.sul-lv__pill--wait { background: var(--sul-console-warn-soft); color: var(--sul-console-warn); }
.sul-lv__pill--declined { background: var(--sul-console-crit-soft); color: var(--sul-console-crit); }

.sul-lv__empty { padding: var(--sul-spacing-lg); text-align: center; color: var(--sul-console-fg-3); margin: 0; }
.sul-lv__empty b { display: block; color: var(--sul-console-fg); margin-bottom: var(--sul-spacing-xs); }
.sul-lv__empty--big { padding: var(--sul-spacing-3xl) var(--sul-spacing-lg); }

/* covering card */
.sul-lv__covering ul { margin: 0; padding: var(--sul-spacing-sm) var(--sul-spacing-lg); list-style: none; display: grid; gap: var(--sul-spacing-xs); }
.sul-lv__covering li { display: flex; gap: var(--sul-spacing-sm); align-items: baseline; flex-wrap: wrap; }
.sul-lv__covering a { color: var(--sul-console-accent); font-weight: 600; }

/* timeline */
.sul-lv__tlh { display: flex; align-items: center; gap: var(--sul-spacing-sm); padding: var(--sul-spacing-compact) var(--sul-spacing-lg); border-bottom: var(--sul-card-border) solid var(--sul-console-sunk); }
.sul-lv__tlh b { min-width: calc(var(--sul-spacing-3xl) * 4); text-align: center; }
.sul-lv__nav { width: var(--sul-spacing-2xl); height: var(--sul-spacing-2xl); border-radius: var(--sul-radius-sm); border: var(--sul-card-border) solid var(--sul-console-line); background: var(--sul-console-surface); color: var(--sul-console-fg-3); cursor: pointer; }
.sul-lv__ovl { margin: 0; padding: var(--sul-spacing-sm) var(--sul-spacing-lg); background: var(--sul-console-warn-soft); color: var(--sul-console-warn); font-size: var(--sul-font-xs); }
.sul-lv__tw { overflow-x: auto; }
.sul-lv__tg {
  display: grid;
  grid-template-columns: calc(var(--sul-spacing-3xl) * 6) repeat(var(--days), minmax(var(--sul-spacing-2xl), 1fr));
  min-width: calc(var(--sul-spacing-3xl) * 28);
}
.sul-lv__trow { display: contents; }
.sul-lv__dh { grid-row: 1; padding: var(--sul-spacing-xs) 0; text-align: center; font-size: var(--sul-font-micro); color: var(--sul-console-fg-3); background: var(--sul-console-sunk); border-bottom: var(--sul-card-border) solid var(--sul-console-line); font-variant-numeric: tabular-nums; }
.sul-lv__dh--name { position: sticky; left: 0; z-index: 3; text-align: left; padding-left: var(--sul-spacing-base); }
.sul-lv__dh.is-we { color: var(--sul-console-line-2); }
.sul-lv__dh.is-today { background: var(--sul-console-accent); color: var(--sul-console-accent-ink); font-weight: 700; }
.sul-lv__nm {
  grid-row: var(--row);
  grid-column: 1;
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  gap: var(--sul-spacing-sm);
  align-items: center;
  padding: var(--sul-spacing-sm) var(--sul-spacing-base);
  background: var(--sul-console-surface);
  border-right: var(--sul-card-border) solid var(--sul-console-sunk);
  border-bottom: var(--sul-card-border) solid var(--sul-console-sunk);
}
.sul-lv__nm b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--sul-font-xs); }
.sul-lv__cell { grid-row: var(--row); grid-column: var(--col); min-height: calc(var(--sul-spacing-3xl) + var(--sul-spacing-base)); border-bottom: var(--sul-card-border) solid var(--sul-console-sunk); border-left: var(--sul-card-border) solid var(--sul-console-sunk); }
.sul-lv__cell.is-we { background: repeating-linear-gradient(135deg, var(--sul-console-sunk) 0 var(--sul-spacing-xs), var(--sul-console-surface) var(--sul-spacing-xs) var(--sul-spacing-sm)); }
.sul-lv__cell.is-today { background: var(--sul-console-accent-soft); }
.sul-lv__bar {
  grid-row: var(--row);
  grid-column: var(--a) / var(--b);
  align-self: center;
  z-index: 1;
  margin: 0 var(--sul-spacing-xxs);
  height: calc(var(--sul-spacing-2xl) + var(--sul-spacing-xs));
  display: flex;
  align-items: center;
  gap: var(--sul-spacing-xs);
  padding: 0 var(--sul-spacing-sm);
  overflow: hidden;
  white-space: nowrap;
  border: var(--sul-card-border) solid;
  border-radius: var(--sul-radius-sm);
  font: inherit;
  font-size: var(--sul-font-micro);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.sul-lv__bar small { color: inherit; opacity: 0.8; font-weight: 400; font-size: inherit; }
.sul-lv__bar--now, .sul-lv__key--now { background: var(--sul-console-ok-soft); border-color: var(--sul-console-ok); color: var(--sul-console-ok); }
.sul-lv__bar--soon, .sul-lv__key--soon { background: var(--sul-pastel-info); border-color: var(--sul-info); color: var(--sul-info-dark); }
.sul-lv__bar--wait, .sul-lv__key--wait { background: repeating-linear-gradient(135deg, var(--sul-console-warn-soft) 0 var(--sul-spacing-xs), var(--sul-console-surface) var(--sul-spacing-xs) var(--sul-spacing-sm)); border-color: var(--sul-console-accent-2); color: var(--sul-console-warn); }
.sul-lv__bar--past, .sul-lv__key--past { background: var(--sul-console-sunk); border-color: var(--sul-console-line); color: var(--sul-console-fg-3); }
.sul-lv__tlg { display: flex; flex-wrap: wrap; gap: var(--sul-spacing-base); padding: var(--sul-spacing-sm) var(--sul-spacing-lg); font-size: var(--sul-font-micro); color: var(--sul-console-fg-3); }
.sul-lv__tlg span { display: flex; align-items: center; gap: var(--sul-spacing-xs); }
.sul-lv__key { display: inline-block; width: var(--sul-spacing-base); height: var(--sul-spacing-sm); border: var(--sul-card-border) solid; border-radius: var(--sul-radius-xs); }

/* drawer */
.sul-lv__drawer { width: min(calc(var(--sul-spacing-3xl) * 17.5), 100vw); }
.sul-lv__f { margin-bottom: var(--sul-spacing-lg); }
.sul-lv__lb { display: flex; justify-content: space-between; align-items: center; gap: var(--sul-spacing-sm); font-weight: 600; margin-bottom: var(--sul-spacing-xs); }
.sul-lv__num { display: inline-grid; place-items: center; width: var(--sul-spacing-xl); height: var(--sul-spacing-xl); margin-right: var(--sul-spacing-xs); border-radius: var(--sul-radius-pill); background: var(--sul-console-fg); color: var(--sul-console-surface); font-size: var(--sul-font-micro); }
.sul-lv__chosen { display: flex; align-items: center; gap: var(--sul-spacing-compact); padding: var(--sul-spacing-sm) var(--sul-spacing-compact); border: var(--sul-card-border) solid var(--sul-console-line); border-radius: var(--sul-console-radius); }
.sul-lv__chosen b, .sul-lv__chosen small { display: block; }
.sul-lv__chosen button { margin-left: auto; }
.sul-lv__pick { display: grid; gap: var(--sul-spacing-xs); }
.sul-lv__dd { max-height: calc(var(--sul-spacing-3xl) * 9); overflow: auto; border: var(--sul-card-border) solid var(--sul-console-line); border-radius: var(--sul-console-radius); }
.sul-lv__dg { position: sticky; top: 0; padding: var(--sul-spacing-sm) var(--sul-spacing-base) var(--sul-spacing-xxs); background: var(--sul-console-sunk); font-size: var(--sul-font-xxs); font-weight: 700; letter-spacing: var(--sul-console-label-tracking); text-transform: uppercase; color: var(--sul-console-fg-3); }
.sul-lv__op { display: flex; align-items: center; gap: var(--sul-spacing-compact); width: 100%; padding: var(--sul-spacing-xs) var(--sul-spacing-base); border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sul-lv__op:hover, .sul-lv__op:focus-visible { background: var(--sul-console-accent-soft); }
.sul-lv__op small { margin-left: auto; white-space: nowrap; }
.sul-lv__dates { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sul-spacing-sm); }
.sul-lv__dates label { display: grid; gap: var(--sul-spacing-xs); font-size: var(--sul-font-xs); color: var(--sul-console-fg-3); }
.sul-lv__chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sul-spacing-xs); margin-top: var(--sul-spacing-sm); }
.sul-lv__chips button { height: calc(var(--sul-spacing-3xl) - var(--sul-spacing-xs)); padding: 0 var(--sul-spacing-compact); border: var(--sul-card-border) solid var(--sul-console-line); border-radius: var(--sul-radius-pill); background: var(--sul-console-surface); font: inherit; color: var(--sul-console-fg-3); cursor: pointer; }
.sul-lv__chips button.is-on { background: var(--sul-console-accent); border-color: var(--sul-console-accent); color: var(--sul-console-accent-ink); }
.sul-lv__chips span { margin-left: auto; font-weight: 600; }
.sul-lv__bad { color: var(--sul-console-crit); }
.sul-lv__note { margin-top: var(--sul-spacing-sm); }
.sul-lv__fixed { margin: 0; }
.sul-lv__cv { border: var(--sul-card-border) solid var(--sul-console-line); border-radius: var(--sul-console-radius); overflow: hidden; }
.sul-lv__cvh { display: flex; align-items: center; gap: var(--sul-spacing-sm); padding: var(--sul-spacing-sm) var(--sul-spacing-compact); background: var(--sul-console-sunk); font-size: var(--sul-font-xs); color: var(--sul-console-fg-3); }
.sul-lv__cvh input { flex: 1; height: var(--sul-spacing-3xl); }
.sul-lv__cvl { max-height: calc(var(--sul-spacing-3xl) * 8); overflow: auto; }
.sul-lv__cvo {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) calc(var(--sul-spacing-3xl) * 4);
  gap: var(--sul-spacing-compact);
  align-items: center;
  padding: var(--sul-spacing-sm) var(--sul-spacing-compact);
  border-bottom: var(--sul-card-border) solid var(--sul-console-sunk);
  cursor: pointer;
}
.sul-lv__cvo:last-child { border-bottom: 0; }
.sul-lv__cvo.is-on { background: var(--sul-console-accent-soft); }
.sul-lv__cvo.is-away { opacity: var(--sul-opacity-disabled); cursor: not-allowed; }
.sul-lv__cvo input { accent-color: var(--sul-console-accent); }
.sul-lv__cvo b, .sul-lv__cvo small { display: block; }
.sul-lv__sug { margin-left: var(--sul-spacing-xs); padding: 0 var(--sul-spacing-xs); border-radius: var(--sul-radius-pill); background: var(--sul-console-ok-soft); color: var(--sul-console-ok); font-size: var(--sul-font-xxs); font-weight: 700; }
.sul-lv__load { font-size: var(--sul-font-micro); color: var(--sul-console-fg-3); text-align: right; }
.sul-lv__track { display: block; height: var(--sul-spacing-xs); margin-top: var(--sul-spacing-xxs); border-radius: var(--sul-radius-pill); background: var(--sul-console-sunk); overflow: hidden; }
.sul-lv__track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--sul-console-accent); }
.sul-lv__track--low i { background: var(--sul-console-ok); }
.sul-lv__track--mid i { background: var(--sul-console-accent-2); }
.sul-lv__track--high i { background: var(--sul-console-crit); }
.sul-lv__hint { margin: var(--sul-spacing-xs) 0 0; font-size: var(--sul-font-xs); color: var(--sul-console-fg-3); }
.sul-lv__prev { padding: var(--sul-spacing-compact) var(--sul-spacing-base); border: var(--sul-card-border) dashed var(--sul-console-line-2); border-radius: var(--sul-console-radius); background: var(--sul-console-sunk); font-size: var(--sul-font-xs); }
.sul-lv__split { display: grid; gap: var(--sul-spacing-xs); margin-top: var(--sul-spacing-sm); }
.sul-lv__split div { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--sul-spacing-3xl) * 4) var(--sul-spacing-3xl); gap: var(--sul-spacing-sm); align-items: center; }
.sul-lv__split span:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.sul-lv__dfh { flex: 1; color: var(--sul-console-fg-3); }

/* Left permanently (migration 217) */
.sul-lv__danger:not(:disabled) { background: var(--sul-console-crit); border-color: var(--sul-console-crit); }
.sul-lv__unplaced { margin: var(--sul-spacing-sm) 0 0; }
.sul-lv__sure { display: flex; gap: var(--sul-spacing-sm); align-items: flex-start; margin-top: var(--sul-spacing-sm); font-size: var(--sul-font-xs); }
.sul-lv__sure input { margin-top: var(--sul-spacing-xxs); }

.sul-lv__toast {
  position: fixed;
  left: 50%;
  bottom: var(--sul-spacing-xl);
  z-index: 60;
  transform: translate(-50%, var(--sul-spacing-xl));
  padding: var(--sul-spacing-compact) var(--sul-spacing-lg);
  border-radius: var(--sul-console-radius);
  background: var(--sul-console-fg);
  color: var(--sul-console-surface);
  box-shadow: var(--sul-console-shadow-toast);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--sul-transition-base), transform var(--sul-transition-base);
}
.sul-lv__toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 820px) {
  .sul-lv__row { grid-template-columns: 1fr; }
  .sul-lv__acts { justify-content: flex-start; }
  .sul-lv__dates { grid-template-columns: 1fr; }
}

