/* Signal OSX, the eleventh stylesheet (version 0.11, 19 November 2026): the parts for guided work across steps, and
   three fixes to earlier parts. Link it after every other Signal OSX stylesheet a page links.

   Added by the studio under Jason's standing permission for Content Studio and the AI Asset Manager
   (DEC-SYS-20261116-02: "add any new parts to the design system"), from Content Studio's guided path (build packs v8,
   v9 and v10, studio OI-249). He reviews it as built, not as pictures. Rules: specs/guided.md. Markup: specs/markup.md.
   Built from system values only.

   The three fixes are kept here, not in the stylesheets they correct, so that pages drawn and approved on an earlier
   version still draw exactly as approved. A product takes them by linking this sheet; from version 0.11 every
   product links it, whether or not it uses the parts. */

/* ---------- 1. Fixes to earlier parts (studio issue 325) ---------- */
/* The dimmed page behind a pop-up window covers the screen, not only the box it sits in. A window taller than the
   screen (a short screen, or the browser zoomed in) scrolls inside itself, so its buttons can always be reached. */
.sx-scrim { position: fixed; }
.sx-scrim > .sx-dialog { max-height: calc(100dvh - 32px - 2 * var(--sx-space-6)); overflow-y: auto; }
/* A row of buttons wraps onto a second line rather than running past its box. */
.sx-actions { flex-wrap: wrap; }
/* Below 1024 pixels a side panel sits below the work, full width, never squeezed beside it. This applies to a panel
   in the work's own box (as Content Studio's Studio holds it), never to the frame's body, whose sidebar stays beside. */
@media (max-width: 1023px) {
  :not(.sx-body):has(> .sx-panel:not(.sx-panel--second)) { flex-direction: column; }
  :not(.sx-body) > .sx-panel:not(.sx-panel--second) { width: auto; border-left: 0; border-top: 1px solid var(--sx-line); }
}

/* Version 0.13.3: under 768 pixels a table that becomes cards hides its column heads, so a count carries its unit
   ("12 made"). The product writes the unit on the cell as data-unit. */
@media (max-width: 767px) {
  .sx-table--cards td[data-unit]::after { content: " " attr(data-unit); }
}

/* Version 0.19 (20 November 2026, studio issues 235 and 240): four gaps the products' builds found. Each extends a
   part the system already has; none adds a look. Rules: specs/guided.md, section 1. */

/* (a) A message with a button beside its words. Under 768 pixels the buttons go under the words, starting at their
   left edge and each as wide as its own label, as a message that asks a question already places its row of buttons
   (version 0.14). The mark stays at the top left and the box keeps the mark's column, so a second button, or a
   second line of them, lines up under the words too. A label longer than the line wraps inside its button; it never
   runs off the screen. The assistant's suggestion is the same kind of block and takes the same rule (its mark is 32
   pixels and its gap 14). */
@media (max-width: 767px) {
  .sx-message:has(> .sx-button, > .sx-actions) { position: relative; flex-wrap: wrap; column-gap: var(--sx-space-2); row-gap: var(--sx-space-3);
    padding-left: calc(var(--sx-space-4) + 24px + var(--sx-space-3)); }
  .sx-message:has(> .sx-button, > .sx-actions) > .sx-message__mark { position: absolute; left: var(--sx-space-4); top: 14px; }
  .sx-message:has(> .sx-button, > .sx-actions) > .sx-message__text { flex-basis: 100%; }
  .sx-suggestion:has(> .sx-button) { position: relative; flex-wrap: wrap; column-gap: var(--sx-space-2); row-gap: var(--sx-space-3);
    padding-left: calc(var(--sx-space-4) + 32px + 14px); }
  .sx-suggestion:has(> .sx-button) > .sx-suggestion__mark { position: absolute; left: var(--sx-space-4); top: 10px; }
  .sx-suggestion:has(> .sx-button) > .sx-suggestion__text { flex-basis: 100%; }
  .sx-message .sx-button, .sx-suggestion .sx-button { max-width: 100%; white-space: normal; text-align: center; padding-top: 7px;
    padding-bottom: 7px; line-height: var(--sx-leading-tight); }
}

/* (b) A stored file in a tile. A picture file fills its box, cropped at the edges, as a photograph should (studio
   OI-179). A logo, a font, a template or anything else that must be seen whole takes --whole: shown entire on the
   well, 12 pixels in from each edge. A tile with no picture (none stored, retired, refused, or the file failed to
   load) takes --none: the well, the picture icon at 24 pixels and the product's short reason under it. The browser's
   broken-picture icon is never shown. */
.sx-asset__pic > img, .sx-thumbs__one > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* A file shown whole sits on the light well in both themes, because most logos, fonts and templates are made for a
   light ground and vanish on a dark one; a file made for a dark ground (a logo reversed out in white) adds --on-dark
   and sits on the dark well in both themes. The two values are the system's own wells. */
.sx-asset__pic--whole, .sx-thumbs__one--whole { background: #FCF9F8; }
.sx-asset__pic--whole.sx-asset__pic--on-dark, .sx-thumbs__one--whole.sx-thumbs__one--on-dark { background: #0A0B22; }
.sx-asset__pic--whole > img, .sx-thumbs__one--whole > img { box-sizing: border-box; padding: var(--sx-space-3); object-fit: contain; }
.sx-thumbs__one--whole > img { padding: var(--sx-space-1); }
.sx-asset__pic--none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sx-space-1);
  padding: var(--sx-space-2); color: var(--sx-muted); font-size: var(--sx-size-label); line-height: var(--sx-leading-tight); text-align: center; }
.sx-asset__pic--none > svg { position: static; flex: none; width: 24px; height: 24px; }

/* (c) A label for every cell when a table becomes cards. Under 768 pixels a cell that carries data-label shows it
   above its value in the small muted label, as a list of facts does on a phone (version 0.6). The row's name, the
   first cell, carries none. The label is for the eye: a screen reader already hears the column's heading. */
@media (max-width: 767px) {
  .sx-table--cards td[data-label] { padding-top: var(--sx-space-1); padding-bottom: var(--sx-space-1); }
  .sx-table--cards td[data-label]::before { content: attr(data-label); content: attr(data-label) / ""; display: block;
    margin-bottom: 2px; font-size: var(--sx-size-label); font-weight: var(--sx-weight-regular); line-height: var(--sx-leading-tight);
    color: var(--sx-muted); }
}

/* (d) A long name in a header switcher. A switcher may give way: when the header runs out of room its words wrap
   onto a second line, at 14 pixels, the chevron staying beside them. The header grows only if a name needs a third
   line. A name is never cut or ended with an ellipsis, so the page never scrolls sideways. The full name stays the
   button's name for a screen reader, and the menu it opens lists names in full. */
.sx-header > .sx-switch { flex: 0 1 auto; min-width: 0; text-align: start; }
.sx-header > .sx-switch, .sx-header > .sx-switch * { white-space: normal; }
.sx-header > .sx-switch { padding-top: 6px; padding-bottom: 6px; overflow-wrap: break-word; }
.sx-header > .sx-switch > svg { align-self: center; }

/* Version 0.19.1 (20 November 2026, the Design Director's check of the 0.19 boards, under the rule "no near misses"
   proposed in studio pull request 424): where a thing has no visible box, the eye reads its words as the edge, so its
   words sit on the text edge, never a few pixels in. Rules: specs/guided.md, section 1. */

/* (e) A quiet button (no fill, no outline) that starts a row under words keeps its label on the words' left edge: its
   box is pulled out by its padding and outline, so the fill it shows on hover and its focus ring stand just outside
   the column. In a row set to the end the pull changes nothing, because the row is placed from its other end. Under
   768 pixels the same holds for the first quiet button under a message's or a suggestion's words (version 0.19 (a)).
   On a phone a row wraps, so there a quiet button that follows another quiet button is pulled too, whichever line
   it lands on (the two labels then stand 21 pixels apart). A row that mixes the two kinds puts its quiet buttons
   first, so a quiet button never starts a line only because the row wrapped. Where a product's own row starts with
   a quiet button under words, it adds .sx-button--flush. */
:is(.sx-actions, .sx-sequence__foot) > .sx-button--quiet:first-child,
.sx-button--quiet.sx-button--flush { margin-inline-start: -15px; }
@media (max-width: 767px) {
  :is(.sx-message__text, .sx-suggestion__text) + .sx-button--quiet,
  .sx-actions > .sx-button--quiet + .sx-button--quiet { margin-inline-start: -15px; }
}

/* (f) A tag that starts a line in a table cell, a picture's caption, a frame's foot or a tile's line of facts, in the
   light theme: there its pill is white on the white of a table or card and cannot be seen, so it is drawn as plain
   words on the line, in the size and colour of the words around it, so a card's or a column's values read as one
   set. In the dark theme the pill shows, with its edge on the line, and stays. Anywhere else a product puts a tag
   first on a line on a ground of its own colour, it adds .sx-tag--plain. A tag among other words keeps its pill. */
html:not([data-theme="dark"]) body:not([data-theme="dark"]) :is(td, .sx-canvas__state, .sx-sequence__foot, .sx-asset__meta) > .sx-tag:first-child,
.sx-tag--plain { padding-inline: 0; background: transparent; box-shadow: none; font-size: inherit; color: inherit; }

/* Words a screen reader reads and the eye does not need. */
.sx-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- 2. The step bar: where a piece of work stands, every step a link ---------- */
/* Built on the stage track (signal-osx-review.css): one row of steps. The node shows how far the work has got; the
   box round a step shows the page the person is on. "Next" sits at the end of the row. */
.sx-stepbar { display: flex; align-items: center; gap: var(--sx-space-4); padding: var(--sx-space-3) var(--sx-space-4);
  border-radius: var(--sx-radius-card); background: var(--sx-raised); box-shadow: var(--sx-shadow-card); }
.sx-stepbar .sx-track { flex: 1; row-gap: 0; --sx-track-steps: var(--sx-stepbar-steps, 6); }
.sx-stepbar .sx-track__step { grid-row: 1; padding-top: var(--sx-space-2); padding-bottom: var(--sx-space-2); border-radius: var(--sx-radius-control); }
.sx-stepbar .sx-track__step::before { top: calc(var(--sx-space-2) + 11px); }
/* Each step's link keeps its own box, so the system's focus ring shows on it. */
.sx-stepbar .sx-track__step a { position: relative; z-index: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center;
  gap: var(--sx-space-2); border-radius: var(--sx-radius-control); color: inherit; text-decoration: none; }
.sx-stepbar .sx-stepbar__here { background: var(--sx-selected); }
.sx-stepbar .sx-stepbar__here .sx-track__name { color: var(--sx-text); font-weight: var(--sx-weight-medium); }
.sx-stepbar .sx-track__step--current .sx-track__node { box-shadow: inset 0 0 0 2px var(--sx-accent); color: var(--sx-text); }
.sx-stepbar__state { font-size: var(--sx-size-label); color: var(--sx-muted); }
.sx-stepbar > .sx-actions { flex: none; }
/* Version 0.14 (Content Studio's change request 370): every step looks like a button, and Back sits beside Next.
   Each step's link carries a control's line, so it reads as something to press; the page's own step keeps its
   selected fill. "Back" is a plain button before the primary "Next"; on the first step it is disabled, not removed. */
.sx-stepbar .sx-track__step a { padding: var(--sx-space-1) var(--sx-space-2); box-shadow: inset 0 0 0 1px var(--sx-line-control); }
.sx-stepbar .sx-track__step a:hover { background: var(--sx-selected); }
.sx-stepbar .sx-track__step { padding-left: var(--sx-space-1); padding-right: var(--sx-space-1); }
.sx-stepbar .sx-stepbar__here a { box-shadow: inset 0 0 0 1px var(--sx-accent); }
.sx-stepbar__state--you { color: var(--sx-attention-text); font-weight: var(--sx-weight-medium); }
/* On a phone every node stays on one line; only the page's own step is named, with its state under its name (version
   0.13.3, Content Studio's change request 364); the other names and states are read by a screen reader.
   "Next" moves below the track, full width. */
@media (max-width: 767px) {
  .sx-stepbar { flex-wrap: wrap; }
  .sx-stepbar .sx-track, .sx-stepbar > .sx-actions { flex: 1 1 100%; }
  .sx-stepbar > .sx-actions > * { flex: 1; justify-content: center; }
  .sx-stepbar .sx-track__step:not(.sx-stepbar__here) .sx-track__name, .sx-stepbar .sx-track__step:not(.sx-stepbar__here) .sx-stepbar__state {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sx-stepbar .sx-stepbar__here .sx-track__name, .sx-stepbar .sx-stepbar__here .sx-stepbar__state { white-space: nowrap; }
  .sx-stepbar .sx-stepbar__here .sx-stepbar__state { margin-top: calc(-1 * var(--sx-space-2)); }
  /* 0.14: on a phone the nodes are the buttons; only the page's own step keeps its box. */
  .sx-stepbar .sx-track__step:not(.sx-stepbar__here) a { box-shadow: none; }
}

/* ---------- 3. A piece of work in flight: a card on a home page ---------- */
.sx-flight { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sx-space-4); margin: 0; padding: 0; list-style: none; }
.sx-flight__card { display: flex; flex-direction: column; gap: var(--sx-space-3); min-width: 0; padding: var(--sx-space-5);
  border-radius: var(--sx-radius-card); background: var(--sx-raised); box-shadow: var(--sx-shadow-card); }
.sx-flight__name { margin: 0; font-size: var(--sx-size-title); font-weight: var(--sx-weight-medium); }
.sx-flight__meta { margin: 0; color: var(--sx-text-2); font-size: var(--sx-size-label); }
.sx-flight__steps { display: grid; grid-template-columns: repeat(var(--sx-flight-steps, 6), 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.sx-flight__steps li { height: 6px; border-radius: 3px; background: var(--sx-line-box); }
.sx-flight__steps .is-done { background: var(--sx-accent); }
.sx-flight__steps .is-now { background: linear-gradient(to right, var(--sx-accent) 50%, var(--sx-line-box) 50%); }
.sx-flight__at { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sx-space-2); font-size: var(--sx-size-label); color: var(--sx-text-2); }
.sx-flight__at strong { color: var(--sx-text); font-weight: var(--sx-weight-medium); }
.sx-flight .sx-thumbs { min-height: 48px; }
.sx-flight__card > .sx-actions { margin-top: auto; }
@media (max-width: 767px) { .sx-flight { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 4. The word grid and the word cell: one audience's words for one channel ---------- */
.sx-words { display: grid; grid-template-columns: 180px repeat(var(--sx-audiences, 2), minmax(0, 1fr)); gap: var(--sx-space-3); align-items: stretch; }
.sx-words__corner, .sx-words__aud, .sx-words__chan { padding: var(--sx-space-2) var(--sx-space-3); }
.sx-words__aud { display: flex; flex-direction: column; gap: 2px; border-bottom: 2px solid var(--sx-accent); }
.sx-words__aud strong, .sx-words__chan strong { font-weight: var(--sx-weight-medium); }
.sx-words__aud span, .sx-words__chan span { font-size: var(--sx-size-label); color: var(--sx-muted); }
.sx-words__chan { display: flex; flex-direction: column; gap: 2px; justify-content: flex-start; }
.sx-words__chan strong { display: flex; align-items: center; gap: var(--sx-space-2); }
.sx-word { display: flex; flex-direction: column; gap: var(--sx-space-2); min-width: 0; padding: var(--sx-space-4); border-radius: var(--sx-radius-box);
  background: var(--sx-surface); border: 1px solid var(--sx-line-box); color: inherit; text-decoration: none; }
.sx-word--held { border-color: var(--sx-attention-mark); }
.sx-word--drafting { justify-content: center; align-items: flex-start; min-height: 160px; border-style: dashed; }
.sx-word__row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: var(--sx-space-2); align-items: baseline; }
.sx-word__label { font-size: var(--sx-size-label); color: var(--sx-muted); }
.sx-word__text { color: var(--sx-text); overflow-wrap: anywhere; }
.sx-word__text--fixed { display: inline-flex; gap: var(--sx-space-1); align-items: baseline; color: var(--sx-text-2); }
.sx-word__count { font-size: var(--sx-size-label); color: var(--sx-muted); font-variant-numeric: tabular-nums; }
.sx-word__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sx-space-2);
  padding-top: var(--sx-space-2); border-top: 1px solid var(--sx-line); }
.sx-word__why { margin: 0; font-size: var(--sx-size-label); color: var(--sx-text-2); }
.sx-word__why--held { color: var(--sx-attention-text); }
.sx-word__wait { display: inline-flex; align-items: center; gap: var(--sx-space-2); color: var(--sx-text-2); }
.sx-word .sx-tag { display: inline-flex; align-items: center; gap: var(--sx-space-1); }
/* The audience tabs above the grid show only below 1024 pixels. */
.sx-words__switch { display: none; }
/* Below 1024 pixels: one audience at a time. The audiences' names become sx-tabs above the grid; the grid's
   data-sx-show names the audience shown (1 to 6), and each audience head and cell carries its data-sx-audience. Each
   channel then sits straight above its own cell for that audience. */
@media (max-width: 1023px) {
  .sx-words__switch { display: flex; }
  .sx-words { grid-template-columns: minmax(0, 1fr); }
  .sx-words__corner, .sx-words[data-sx-show] .sx-words__aud,
  .sx-words[data-sx-show="1"] [data-sx-audience]:not([data-sx-audience="1"]),
  .sx-words[data-sx-show="2"] [data-sx-audience]:not([data-sx-audience="2"]),
  .sx-words[data-sx-show="3"] [data-sx-audience]:not([data-sx-audience="3"]),
  .sx-words[data-sx-show="4"] [data-sx-audience]:not([data-sx-audience="4"]),
  .sx-words[data-sx-show="5"] [data-sx-audience]:not([data-sx-audience="5"]),
  .sx-words[data-sx-show="6"] [data-sx-audience]:not([data-sx-audience="6"]) { display: none; }
}

/* A flag under a size: what was changed to make it fit, in words, with its icon. */
.sx-flag { display: inline-flex; align-items: flex-start; gap: var(--sx-space-1); font-size: var(--sx-size-label); line-height: 1.35; color: var(--sx-attention-text); }
.sx-flag .sx-icon { flex: none; width: 12px; height: 12px; margin-top: 2px; }

/* ---------- 5. The resize board: the master large, then every size made from it, one row per audience ---------- */
.sx-resize { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: var(--sx-space-5); align-items: start; }
.sx-resize__master, .sx-resize__row { display: flex; flex-direction: column; gap: var(--sx-space-3); padding: var(--sx-space-4);
  border-radius: var(--sx-radius-card); background: var(--sx-raised); box-shadow: var(--sx-shadow-card); }
.sx-resize__master { position: sticky; top: 0; }
.sx-resize__rows { display: flex; flex-direction: column; gap: var(--sx-space-5); min-width: 0; }
.sx-resize__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sx-space-3); }
.sx-resize__head h2 { margin: 0; font-size: var(--sx-size-ui); font-weight: var(--sx-weight-medium); }
.sx-resize__sizes { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sx-space-4) var(--sx-space-3); }
.sx-resize__sizes .sx-canvas__cap { max-width: 140px; }
/* Below 1360 pixels the master sits above the rows, its picture beside its words. */
@media (max-width: 1359px) {
  .sx-resize { grid-template-columns: minmax(0, 1fr); }
  .sx-resize__master { position: static; display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: start; column-gap: var(--sx-space-5); }
  .sx-resize__master > :first-child { grid-column: 1 / -1; }
  /* The master's canvas is drawn 200 pixels wide; its height follows its shape, 4 to 5 unless --sx-master-ratio says. */
  .sx-resize__master > .sx-canvas { grid-row: span 2; width: 200px !important; }
  .sx-resize__master > .sx-canvas .sx-canvas__art { width: 200px !important; height: auto !important; aspect-ratio: var(--sx-master-ratio, 4 / 5); }
}

/* ---------- 6. A drawn thing that opens a page is a link ---------- */
a.sx-canvas__art { color: inherit; }
a.sx-canvas__art:hover { box-shadow: 0 0 0 2px var(--sx-accent); }
.sx-opens { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sx-space-4) var(--sx-space-3); padding: var(--sx-space-2);
  margin: calc(-1 * var(--sx-space-2)); border-radius: var(--sx-radius-control); color: inherit; text-decoration: none; }
.sx-opens:hover { background: var(--sx-surface); }
.sx-opens .sx-canvas__art { cursor: pointer; }

/* ---------- 7. Device frames and look-alikes: an ad seen where it runs ---------- */
/* A phone, a small phone, a tablet (0.12) and a laptop, each holding a plain look-alike of the place the ad runs. Grey bars stand for
   other people's posts; no platform's own look, logo or wording is drawn. */
.sx-adframe { position: relative; flex: none; background: var(--sx-raised); box-shadow: var(--sx-shadow-card), inset 0 0 0 1px var(--sx-line-box); }
.sx-adframe--phone { width: 300px; padding: 14px 10px 18px; border-radius: 36px; }
.sx-adframe--phone .sx-adframe__screen { height: 600px; border-radius: 26px; }
.sx-adframe--small { width: 210px; padding: 10px 7px 13px; border-radius: 28px; }
.sx-adframe--small .sx-adframe__screen { height: 420px; border-radius: 20px; }
.sx-adframe--tablet { width: 520px; padding: 14px 10px 18px; border-radius: 36px; }
.sx-adframe--tablet .sx-adframe__screen { height: 700px; border-radius: 26px; }
.sx-adframe--laptop { width: 720px; padding: 14px 14px 0; border-radius: 14px 14px 0 0; }
.sx-adframe--laptop .sx-adframe__screen { height: 430px; border-radius: 4px 4px 0 0; }
.sx-adframe--laptop::after { content: ""; position: absolute; left: -40px; right: -40px; bottom: -14px; height: 14px; border-radius: 0 0 14px 14px;
  background: var(--sx-raised); box-shadow: inset 0 0 0 1px var(--sx-line-box); }
.sx-adframe__screen { position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--sx-bg); color: var(--sx-text); font-size: 12px; }
.sx-adframe__screen > * { flex: none; }
.sx-adframe__screen svg[role="img"] { display: block; width: 100%; height: auto; }
.sx-la-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-size: 13px; font-weight: var(--sx-weight-medium); }
.sx-la-bar .sx-icon { width: 16px; height: 16px; color: var(--sx-text-2); }
.sx-la-who { display: flex; align-items: center; gap: 8px; padding: 6px 12px; }
.sx-la-who__pic { width: 24px; height: 24px; border-radius: 50%; background: var(--sx-selected); }
.sx-la-who__name { display: flex; flex-direction: column; line-height: 1.2; }
.sx-la-who__name small { color: var(--sx-muted); font-size: 10px; }
.sx-la-cta { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--sx-line); font-weight: var(--sx-weight-medium); }
.sx-la-acts { display: flex; gap: 12px; padding: 8px 12px 4px; color: var(--sx-text-2); }
.sx-la-acts .sx-icon { width: 18px; height: 18px; }
.sx-la-text { padding: 2px 12px 10px; line-height: 1.4; color: var(--sx-text-2); }
.sx-la-text strong { color: var(--sx-text); font-weight: var(--sx-weight-medium); }
.sx-la-grey { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; }
.sx-la-grey span { display: block; height: 8px; border-radius: 4px; background: var(--sx-line-box); }
.sx-la-grey span:nth-child(3n) { width: 60%; }
.sx-la-grey--tile span { height: 120px; border-radius: 6px; }
.sx-la-story { position: absolute; inset: 0; }
.sx-la-story__top { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 8px; }
.sx-la-story__top i { display: block; height: 2px; border-radius: 1px; background: var(--sx-text); opacity: 0.85; }
.sx-la-story__bars { display: flex; gap: var(--sx-space-1); }
.sx-la-story__bars i { flex: 1; }
.sx-la-story__top .sx-la-story__bar--next { opacity: 0.35; }
.sx-la-story__who { display: flex; align-items: center; gap: 6px; color: var(--sx-text); font-weight: var(--sx-weight-medium); }
.sx-la-story__cta { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px;
  background: var(--sx-text); color: var(--sx-bg); font-weight: var(--sx-weight-medium); white-space: nowrap; }
.sx-la-site { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; padding: 10px 16px; }
.sx-la-site__lead { display: flex; justify-content: center; padding: 8px 16px 0; }
.sx-la-site__head { margin: 6px 0 2px; font-size: 16px; font-weight: var(--sx-weight-medium); color: var(--sx-text); }
.sx-la-adlabel { display: block; margin-bottom: 2px; font-size: 9px; color: var(--sx-muted); letter-spacing: var(--sx-tracking-caps); text-transform: uppercase; }
/* The page that holds a frame: the frame on a well, the choices beside it. */
.sx-inplace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sx-space-6); align-items: start; }
.sx-inplace__stage { display: flex; justify-content: center; padding: var(--sx-space-6) var(--sx-space-4) var(--sx-space-8); border-radius: var(--sx-radius-card); background: var(--sx-well); }
.sx-inplace__set { display: flex; flex-wrap: wrap; gap: var(--sx-space-4); align-items: flex-start; }
.sx-inplace__set figure { margin: 0; display: flex; flex-direction: column; gap: var(--sx-space-2); }
/* A laptop frame is 720 pixels wide, 800 with its base. Below 1440 pixels its column is narrower than that, so the
   frame is drawn smaller to fit, never wider than its well; below 1024 the choices go under the frame. */
@media (max-width: 1439px) { .sx-inplace__stage .sx-adframe--laptop { zoom: 0.65; } }
@media (max-width: 1023px) {
  .sx-inplace { grid-template-columns: minmax(0, 1fr); }
  .sx-inplace__stage .sx-adframe--laptop { zoom: 0.75; }
}
@media (max-width: 767px) {
  .sx-inplace { grid-template-columns: minmax(0, 1fr); }
  .sx-inplace__stage { padding: var(--sx-space-4) 0; }
  .sx-adframe--phone { width: 280px; }
  .sx-adframe--tablet { width: 100%; max-width: 520px; }
  .sx-adframe--tablet .sx-adframe__screen { height: 560px; }
  /* A laptop frame on a phone is drawn smaller to fit, never cut off. */
  .sx-inplace__stage .sx-adframe--laptop { zoom: 0.44; }
}

/* ---------- 7b. Each platform's look-alike (version 0.13) ---------- */
/* The arrangement, spacing and furniture of the place an ad runs, close enough that a person knows where it is, for See
   it in place. Never the platform's own artwork: the system's icons, type and colours only, and the platform's official
   logo only inside its logo tile (.sx-logo), with its name in plain type. A message on the page always says it is a
   look-alike. Sign-off keeps the plain look-alikes above. Each sits in .sx-adframe__screen. */
.sx-lp { display: flex; flex-direction: column; min-height: 100%; background: var(--sx-bg); color: var(--sx-text); font-size: 12px; line-height: 1.35; }
.sx-lp > * { flex: none; }
.sx-lp .sx-icon { width: 18px; height: 18px; }
.sx-lp-plat { display: flex; align-items: center; gap: var(--sx-space-2); padding: 8px 12px; border-bottom: 1px solid var(--sx-line); font-size: 13px; font-weight: var(--sx-weight-medium); }
.sx-lp-plat .sx-logo { width: 22px; height: 22px; }
.sx-lp-plat__end { margin-left: auto; display: flex; gap: 12px; color: var(--sx-text-2); }
.sx-lp-head { display: flex; align-items: center; gap: var(--sx-space-2); padding: 8px 12px; }
.sx-lp-pic { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sx-selected); }
.sx-lp-pic--ring { box-shadow: 0 0 0 2px var(--sx-bg), 0 0 0 4px var(--sx-text-2); }
.sx-lp-pic--square { border-radius: 4px; }
.sx-lp-pic--small { width: 24px; height: 24px; }
.sx-lp-who { display: flex; flex-direction: column; min-width: 0; }
.sx-lp-who strong { font-weight: var(--sx-weight-medium); }
.sx-lp-who small, .sx-lp-quiet { color: var(--sx-muted); font-size: 10.5px; }
.sx-lp-who small .sx-icon { width: 10px; height: 10px; vertical-align: -1px; }
.sx-lp-head > .sx-icon:last-child { margin-left: auto; color: var(--sx-text-2); }
.sx-lp-text { padding: 0 12px 8px; color: var(--sx-text); }
.sx-lp-text strong { font-weight: var(--sx-weight-medium); }
.sx-lp-ad { display: block; }
.sx-lp-ad--round { margin: 0 12px; overflow: hidden; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--sx-line-box); }
/* The link line under an ad: where it goes, its headline, and its button. */
.sx-lp-link { display: flex; align-items: center; gap: var(--sx-space-3); padding: 8px 12px; background: var(--sx-raised); }
.sx-lp-link__words { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sx-lp-link--plain { background: none; }
.sx-lp-link__words small { color: var(--sx-muted); font-size: 10px; text-transform: uppercase; letter-spacing: var(--sx-tracking-caps); }
.sx-lp-link__words strong { font-weight: var(--sx-weight-medium); }
.sx-lp-btn { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: var(--sx-radius-control); background: var(--sx-selected); color: var(--sx-text); font-weight: var(--sx-weight-medium); white-space: nowrap; }
.sx-lp-btn--line { background: transparent; box-shadow: inset 0 0 0 1px var(--sx-text-2); border-radius: var(--sx-radius-pill); }
.sx-lp-btn--pill { border-radius: var(--sx-radius-pill); }
.sx-lp-btn--wide { display: flex; justify-content: space-between; margin: 0; padding: 9px 12px; border-radius: 0; }
/* A row of actions: spread (a feed's icons), or as equal words (Like, Comment, Share). */
.sx-lp-acts { display: flex; align-items: center; gap: 14px; padding: 8px 12px; color: var(--sx-text-2); }
.sx-lp-acts__end { margin-left: auto; }
.sx-lp-acts--spread { justify-content: space-between; gap: 0; }
.sx-lp-acts--words { gap: 0; border-top: 1px solid var(--sx-line); }
.sx-lp-acts--words > span { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; }
.sx-lp-acts--words .sx-icon { width: 15px; height: 15px; }
.sx-lp-acts small { font-size: 10.5px; color: var(--sx-muted); margin-left: 3px; }
.sx-lp-count { padding: 0 12px 6px; color: var(--sx-muted); font-size: 10.5px; }
.sx-lp-vote { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--sx-radius-pill); background: var(--sx-raised); color: var(--sx-text); font-size: 11px; }
.sx-lp-vote .sx-icon { width: 14px; height: 14px; }
.sx-lp-title { padding: 0 12px 8px; font-size: 14px; font-weight: var(--sx-weight-medium); line-height: 1.3; }
/* A post with the picture of who posted beside it (X). */
.sx-lp-side { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--sx-space-2); padding: 10px 12px; border-bottom: 1px solid var(--sx-line); }
.sx-lp-side .sx-lp-ad--round { margin: 6px 0 4px; }
.sx-lp-side .sx-lp-text { padding: 0; }
.sx-lp-side .sx-lp-acts { padding: 6px 0 0; }
.sx-lp-name { display: flex; align-items: baseline; gap: 4px; }
.sx-lp-name strong { font-weight: var(--sx-weight-medium); }
.sx-lp-name .sx-lp-quiet:last-child { margin-left: auto; }
/* A full-screen ad (Stories, Reels, TikTok, Snapchat): the ad fills the screen; a rail of actions on the right; the
   caption and the button at the foot. Built on the story's bars and who line above. */
.sx-lp-full { position: absolute; inset: 0; }
.sx-lp-full > svg[role="img"] { position: absolute; inset: 0; width: 100%; height: 100%; }
.sx-lp-full__top { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 8px; }
.sx-lp-full__top i { display: block; height: 2px; border-radius: 1px; background: var(--sx-text); opacity: 0.85; }
.sx-lp-full__brand { display: flex; align-items: center; gap: 6px; color: var(--sx-text); font-weight: var(--sx-weight-medium); }
.sx-lp-full__brand--centre { justify-content: center; }
.sx-lp-full__top .sx-la-story__bar--next { opacity: 0.35; }
.sx-lp-rail { position: absolute; right: 8px; bottom: 88px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--sx-text); font-size: 10px; }
.sx-lp-rail > span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sx-lp-rail .sx-icon { width: 22px; height: 22px; }
.sx-lp-foot { position: absolute; left: 10px; right: 52px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; color: var(--sx-text); }
.sx-lp-foot strong { font-weight: var(--sx-weight-medium); }
.sx-lp-foot .sx-lp-btn { align-self: stretch; justify-content: center; background: var(--sx-text); color: var(--sx-bg); }
.sx-lp-swipe { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--sx-text); font-weight: var(--sx-weight-medium); }
.sx-lp-swipe .sx-icon { width: 18px; height: 18px; }
/* Pins in two columns: the ad is one of them, the rest are grey. */
.sx-lp-pins { columns: 2; column-gap: 8px; padding: 8px; }
.sx-lp-pins > * { break-inside: avoid; margin-bottom: 8px; }
.sx-lp-pins i { display: block; height: 120px; border-radius: 14px; background: var(--sx-line-box); }
.sx-lp-pins i:nth-of-type(2n) { height: 170px; }
.sx-lp-pins i:nth-of-type(3n) { height: 95px; }
.sx-lp-pin { overflow: hidden; border-radius: 14px; }
.sx-lp-pin__cap { display: block; padding: 4px 2px 0; font-size: 10.5px; color: var(--sx-muted); }
/* A video player with its ad: the marks on the picture, then the card under it (YouTube). */
.sx-lp-player { position: relative; background: var(--sx-well); }
.sx-lp-player__mark { position: absolute; left: 8px; bottom: 10px; padding: 2px 6px; border-radius: 4px; background: var(--sx-bg); color: var(--sx-text); font-size: 10px; }
.sx-lp-player__skip { position: absolute; right: 0; bottom: 10px; display: inline-flex; align-items: center; gap: 2px; padding: 5px 8px; background: var(--sx-bg); color: var(--sx-text); font-size: 11px; box-shadow: inset 0 0 0 1px var(--sx-line-box); }
.sx-lp-player__skip .sx-icon { width: 14px; height: 14px; }
.sx-lp-player__line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--sx-line-box); }
.sx-lp-player__line i { display: block; width: 30%; height: 100%; background: var(--sx-attention-mark); }
.sx-lp-rows { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; }
.sx-lp-rows > span { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px; }
.sx-lp-rows i { display: block; height: 56px; border-radius: 6px; background: var(--sx-line-box); }
.sx-lp-rows b { display: block; height: 8px; margin-top: 4px; border-radius: 4px; background: var(--sx-line-box); }
.sx-lp-rows b + b { width: 60%; }
/* Thai inside a look-alike (version 0.13.1): never under 14 pixels, Thai line spacing, and a row of worded actions
   wraps rather than run past the screen. The made ad (an svg) is left as it is: its words are the campaign's own. */
:lang(th) :is(.sx-lp, .sx-lp-full) { line-height: var(--sx-leading); }
:lang(th) :is(.sx-lp, .sx-lp-full) :not(svg, svg *) { font-size: var(--sx-size-label); letter-spacing: 0; line-height: var(--sx-leading); }
:lang(th) .sx-lp-acts--words { flex-wrap: wrap; row-gap: var(--sx-space-1); }

/* ---------- 8. The logo tile: a platform's or a service's own mark ---------- */
/* 32 pixels with a 20-pixel mark on a page head; 24 pixels with a 16-pixel mark on a list row. A platform with no usable
   mark shows the system's globe icon, muted; never a letter. */
.sx-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: var(--sx-radius-control); background: var(--sx-raised); border: 1px solid var(--sx-line); }
.sx-logo > img, .sx-logo > svg { max-width: 20px; max-height: 20px; }
.sx-logo--small { width: 24px; height: 24px; }
.sx-logo--small > img, .sx-logo--small > svg { max-width: 16px; max-height: 16px; }
.sx-logo > .sx-icon { width: 16px; height: 16px; color: var(--sx-muted); }
/* Where the official logo file goes, in a drawing that holds no logo file (0.13). Never shipped: the product puts the
   official file there. */
.sx-logo__slot { width: 20px; height: 20px; border-radius: var(--sx-radius-control); outline: 1px dashed var(--sx-line-field); outline-offset: -1px; }
.sx-logo--small .sx-logo__slot { width: 16px; height: 16px; }
.sx-lp-plat .sx-logo__slot { width: 14px; height: 14px; }

/* ---------- 9. The large view, and a version beside the one in use ---------- */
.sx-large { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--sx-space-8); }
.sx-large__facts { flex: 1 1 280px; max-width: 520px; }
.sx-vpair { display: grid; grid-template-columns: auto auto minmax(240px, 1fr); gap: var(--sx-space-6); align-items: start; }
/* 0.11.1: the list of changes drops below the two drawings under 1360 pixels, where a side navigation left too
   little room for three columns. */
@media (max-width: 1359px) {
  .sx-vpair { grid-template-columns: auto auto; }
  .sx-vpair > section { grid-column: 1 / -1; }
}
@media (max-width: 767px) { .sx-vpair { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 10. The folding box, and a section of them ---------- */
/* Built on the browser's own details element, so the keyboard and screen readers work with no script. */
.sx-fold { display: flex; flex-direction: column; gap: var(--sx-space-3); padding: var(--sx-space-5); border-radius: var(--sx-radius-card);
  background: var(--sx-raised); box-shadow: var(--sx-shadow-card); }
.sx-fold:not([open]) { gap: 0; }
.sx-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sx-space-3); min-height: 24px; cursor: pointer; list-style: none; }
.sx-fold > summary::-webkit-details-marker { display: none; }
.sx-fold__head { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sx-space-3); font-size: var(--sx-size-ui); font-weight: var(--sx-weight-medium); letter-spacing: normal; color: var(--sx-text); }
.sx-fold__name { font-weight: var(--sx-weight-medium); }
.sx-fold > summary > .sx-icon { flex: none; }
.sx-fold > p { margin: 0; }
.sx-fold[open] > summary > .sx-icon { transform: rotate(180deg); }
.sx-sec { display: flex; flex-direction: column; gap: var(--sx-space-4); }
.sx-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sx-space-2) var(--sx-space-4);
  padding-bottom: var(--sx-space-2); border-bottom: 1px solid var(--sx-line); }
.sx-sec__head .sx-title { margin: 0; }
/* "Read by": which parts of the product read what is in the box, as words-only tags. */
.sx-readby { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--sx-space-1); margin-left: auto; }
.sx-readby > .sx-caption { margin-right: var(--sx-space-1); }

/* ---------- 11. The audience card, the exact data, a group row, a scene ---------- */
.sx-auds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sx-space-4); margin: 0; padding: 0; list-style: none; }
.sx-aud { gap: var(--sx-space-3); }
.sx-aud .sx-card__title { margin: 0; }
@media (max-width: 767px) { .sx-auds { grid-template-columns: minmax(0, 1fr); } }
/* The exact data a model is given, as it is given: never rewritten as prose. */
.sx-data { margin: 0; padding: var(--sx-space-4); max-height: 420px; overflow: auto; border-radius: var(--sx-radius-control); background: var(--sx-well);
  box-shadow: inset 0 0 0 1px var(--sx-line); color: var(--sx-text); font-family: var(--sx-font); font-size: var(--sx-size-label);
  font-variant-numeric: tabular-nums; line-height: 1.55; white-space: pre; }
/* A group's heading row inside a table, when the table is ordered by groups. */
.sx-grouprow th { padding-top: var(--sx-space-5); text-align: left; font-weight: var(--sx-weight-medium); }
.sx-grouprow th > span { margin-right: var(--sx-space-3); }
/* A scene as one card holding its landscape and portrait plates. */
.sx-scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sx-space-4); margin: 0; padding: 0; list-style: none; }
.sx-scene { gap: var(--sx-space-2); }
.sx-scene__open { display: flex; flex-direction: column; gap: var(--sx-space-2); color: inherit; text-decoration: none; }
.sx-scene__plates { display: flex; align-items: flex-end; gap: var(--sx-space-2); }
.sx-scene__wide { flex: 1 1 auto; min-width: 0; }
.sx-scene__tall { flex: 0 0 28%; }
.sx-scene__plates .sx-asset__pic { display: block; width: 100%; border-radius: var(--sx-radius-control); overflow: hidden; }
.sx-scene__wide .sx-asset__pic { aspect-ratio: 16 / 9; }
.sx-scene__tall .sx-asset__pic { aspect-ratio: 9 / 16; }
/* A plate is a drawing or a real photograph: either fills its 16:9 or 9:16 box, cropped, never at its own size. */
.sx-scene__plates :is(svg, img) { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 14. Going back and forth on guided work (version 0.14, Content Studio's change request 370) ---------- */
/* The "In use" bar: what a piece of work is being made with, on every step after the first, each with Change.
   Four slots and a state at the end; a slot is a button that opens the side panel (or, for words, the words). */
.sx-inuse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: stretch; gap: var(--sx-space-1);
  padding: var(--sx-space-1); border-radius: var(--sx-radius-card); background: var(--sx-raised); box-shadow: var(--sx-shadow-card); }
.sx-inuse__slot { display: flex; align-items: center; gap: var(--sx-space-3); min-width: 0; padding: var(--sx-space-2) var(--sx-space-3);
  border: 0; border-radius: var(--sx-radius-control); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sx-inuse__slot:hover { background: var(--sx-selected); }
.sx-inuse__pic { flex: none; display: block; width: 56px; height: 42px; border-radius: 6px; overflow: hidden; background: var(--sx-well); }
.sx-inuse__pic > :is(svg, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
.sx-inuse__words { display: flex; flex-direction: column; min-width: 0; }
.sx-inuse__label { font-size: var(--sx-size-label); color: var(--sx-muted); }
.sx-inuse__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--sx-size-data); font-weight: var(--sx-weight-medium); }
.sx-inuse__change { font-size: var(--sx-size-label); color: var(--sx-text-2); text-decoration: underline; text-underline-offset: 2px; }
.sx-inuse__state { display: flex; align-items: center; justify-content: flex-end; gap: var(--sx-space-3); min-width: 0;
  padding: var(--sx-space-1) var(--sx-space-2) var(--sx-space-1) var(--sx-space-4); box-shadow: inset 1px 0 0 var(--sx-line); font-size: var(--sx-size-data); }
/* On a phone the bar folds to two rows of two (the pictures, then the words), with its state under them. */
@media (max-width: 767px) {
  .sx-inuse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-inuse__slot { gap: var(--sx-space-2); padding: var(--sx-space-2); }
  .sx-inuse__pic { width: 40px; height: 30px; }
  .sx-inuse__state { grid-column: 1 / -1; justify-content: space-between; padding: var(--sx-space-2); box-shadow: inset 0 1px 0 var(--sx-line); }
}

/* The side panel: a change made from any step, without leaving it. It slides over the page from the right. */
.sx-scrim--side { justify-content: flex-end; align-items: stretch; }
.sx-sidepanel { display: flex; flex-direction: column; gap: var(--sx-space-4); width: 480px; max-width: 100%; padding: var(--sx-space-6);
  background: var(--sx-raised); box-shadow: var(--sx-shadow-menu); overflow: auto; }
.sx-sidepanel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sx-space-4); }
.sx-sidepanel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sx-space-4); }
.sx-sidepanel__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--sx-space-4);
  padding-top: var(--sx-space-4); box-shadow: inset 0 1px 0 var(--sx-line); }
@media (max-width: 767px) { .sx-sidepanel { width: 100%; padding: var(--sx-space-4); } }

/* The ad pop-up: one made ad, opened from any grid of ads, with everything that can be done to it. */
.sx-adpop { display: grid; grid-template-rows: auto 1fr auto; width: 1120px; max-width: calc(100% - 32px); max-height: calc(100% - 48px);
  border-radius: var(--sx-radius-card); background: var(--sx-raised); box-shadow: var(--sx-shadow-menu); overflow: hidden; }
.sx-adpop__head { display: flex; align-items: center; gap: var(--sx-space-3); padding: var(--sx-space-3) var(--sx-space-4); box-shadow: inset 0 -1px 0 var(--sx-line); }
.sx-adpop__title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* The ad's name links to its own full page, which keeps its address for links. */
.sx-adpop__title > :first-child { font-weight: var(--sx-weight-medium); color: var(--sx-text); }
.sx-adpop__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 0; overflow: auto; }
.sx-adpop__view { display: flex; flex-direction: column; align-items: center; gap: var(--sx-space-4); padding: var(--sx-space-5); background: var(--sx-well); }
.sx-adpop__bar .sx-seg button { white-space: nowrap; }
.sx-adpop__bar { align-self: stretch; align-items: center; display: flex; justify-content: space-between; gap: var(--sx-space-3); }
.sx-adpop__frames { align-self: stretch; font-size: var(--sx-size-label); color: var(--sx-muted); text-align: center; }
.sx-adpop__side { display: flex; flex-direction: column; gap: var(--sx-space-5); padding: var(--sx-space-5); }
.sx-adpop__sec { display: flex; flex-direction: column; gap: var(--sx-space-2); }
.sx-adpop__sec > header { display: flex; align-items: center; justify-content: space-between; gap: var(--sx-space-3); }
.sx-adpop__sec h3 { margin: 0; font-size: var(--sx-size-ui); font-weight: var(--sx-weight-medium); }
.sx-adpop__field { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--sx-space-3); padding: var(--sx-space-2) 0; box-shadow: inset 0 -1px 0 var(--sx-line-row); font-size: var(--sx-size-data); }
.sx-adpop__field > span:first-child { color: var(--sx-muted); }
.sx-adpop__pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sx-space-2); }
.sx-adpop__pics .sx-inuse__slot { box-shadow: inset 0 0 0 1px var(--sx-line-control); }
.sx-adpop__advice { margin: 0; padding-left: var(--sx-space-5); font-size: var(--sx-size-data); color: var(--sx-text-2); }
.sx-adpop__advice li + li { margin-top: var(--sx-space-1); }
.sx-adpop__advice .is-applied { text-decoration: line-through; color: var(--sx-muted); }
.sx-adpop__foot { display: flex; align-items: center; gap: var(--sx-space-3); padding: var(--sx-space-3) var(--sx-space-4); box-shadow: inset 0 1px 0 var(--sx-line); }
.sx-adpop__foot > :first-child { flex: 1; }
/* On a phone the pop-up fills the screen; the ad comes first, then what can be done to it. */
@media (max-width: 767px) {
  .sx-adpop { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .sx-adpop__body { grid-template-columns: 1fr; }
  .sx-adpop__view, .sx-adpop__side { padding: var(--sx-space-4); }
  .sx-adpop__foot { flex-wrap: wrap; }
  .sx-adpop__bar { flex-wrap: wrap; }
  .sx-adpop__bar > .sx-select { flex: 1 1 100%; }
  .sx-adpop__foot > :first-child { flex: 1 1 100%; }
  .sx-adpop__foot > .sx-button { flex: 1; justify-content: center; }
}

/* The AI writer: a menu that is a small form (what to write again, a note, whether to make the ads again). */
.sx-menu--form { display: flex; flex-direction: column; gap: var(--sx-space-3); width: 360px; padding: var(--sx-space-4); }
.sx-menu--form .sx-menu__label { margin: 0; }
.sx-anchor { position: relative; display: inline-flex; }
.sx-anchor > .sx-menu { position: absolute; top: calc(100% + var(--sx-space-1)); left: 0; z-index: 5; }
/* A message that asks a question carries its buttons under its words. */
.sx-message__text > .sx-actions { margin-top: var(--sx-space-3); flex-wrap: wrap; }

.sx-inuse > .sx-anchor { display: flex; }
.sx-inuse > .sx-anchor > .sx-inuse__slot { flex: 1; }
.sx-inuse .sx-anchor > .sx-menu { left: auto; right: 0; }
/* A link drawn as a button is not underlined (version 0.14: Back and Next are links to their steps). */
a.sx-button { text-decoration: none; }

/* ---------- 15. A search ad: the look-alike of a sponsored result, its thumbnail, and its lines (version 0.15) ---------- */
/* Content Studio's change request 373. A search ad is words only: no picture, no size, no zones. The look-alike is a
   sponsored result arranged as the partner shows it (Google: "Sponsored" above the site; Microsoft: "Ad" beside the
   address, the headline first), in the system's own type, colours and icons, never a search engine's artwork. It shows
   one of the ways the platform may combine the lines, and a caption under it always says so. */
.sx-lp-search { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--sx-bg); color: var(--sx-text); font-size: 12px; line-height: 1.4; }
.sx-lp-search__label { font-weight: var(--sx-weight-medium); color: var(--sx-text); }
.sx-lp-search__site { display: flex; align-items: center; gap: var(--sx-space-2); min-width: 0; }
.sx-lp-search__mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sx-selected); color: var(--sx-text-2); }
.sx-lp-search__mark .sx-icon { width: 14px; height: 14px; }
.sx-lp-search__who { display: flex; flex-direction: column; min-width: 0; }
.sx-lp-search__brand { font-weight: var(--sx-weight-medium); }
.sx-lp-search__address { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sx-text-2); }
.sx-lp-search__head { margin: 2px 0 0; font-size: 15px; font-weight: var(--sx-weight-medium); line-height: 1.3; color: var(--sx-text); overflow-wrap: anywhere; }
.sx-lp-search__desc { margin: 0; color: var(--sx-text-2); }
/* Microsoft's arrangement: the headline first, then the address with "Ad" beside it as a small boxed word. */
.sx-lp-search--microsoft .sx-lp-search__label { flex: none; padding: 0 4px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--sx-line-control); font-size: 10.5px; }
.sx-lp-search--microsoft .sx-lp-search__site { gap: var(--sx-space-1); }
/* Alone on a page (the sign-off decision): on its own card, the width of a results column. */
.sx-lp-search--alone { max-width: 600px; padding: var(--sx-space-5); border-radius: var(--sx-radius-card); box-shadow: inset 0 0 0 1px var(--sx-line-box); font-size: var(--sx-size-data); }
.sx-lp-search--alone .sx-lp-search__head { font-size: var(--sx-size-title); }
/* The thumbnail (sign-off queue, Send): the same block drawn small. The label, the first headline cut with an ellipsis,
   and two bars that stand in for the words. A thumbnail never shows words too small to read. */
/* It is drawn inline (inline-flex), so a link around it does not underline its words. */
.sx-lp-search--thumb { display: inline-flex; vertical-align: bottom; width: 160px; height: 64px; gap: 3px; padding: 5px 8px; overflow: hidden; border-radius: 0; background: var(--sx-well);
  box-shadow: 0 0 0 1px var(--sx-line-box); font-size: var(--sx-size-label); line-height: 1.25; }
.sx-lp-search--thumb .sx-lp-search__head { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--sx-size-label); }
.sx-lp-search__bars { display: flex; flex-direction: column; gap: 3px; }
.sx-lp-search__bars i { display: block; height: 5px; border-radius: 3px; background: var(--sx-line-box); }
.sx-lp-search__bars i + i { width: 60%; }
/* A results page around it (See it in place): the query in its box, the kinds of result, then grey results. */
.sx-lp-query { display: flex; align-items: center; gap: var(--sx-space-2); margin: 10px 12px 6px; padding: 7px 12px; border-radius: var(--sx-radius-pill);
  box-shadow: inset 0 0 0 1px var(--sx-line-control); }
.sx-lp-query > :last-child { margin-left: auto; color: var(--sx-text-2); }
.sx-lp-kinds { display: flex; gap: 14px; padding: 0 12px 6px; border-bottom: 1px solid var(--sx-line); color: var(--sx-text-2); }
.sx-lp-kinds > :first-child { color: var(--sx-text); font-weight: var(--sx-weight-medium); box-shadow: inset 0 -2px 0 var(--sx-text); padding-bottom: 4px; }
.sx-lp-results { display: flex; flex-direction: column; gap: 14px; padding: 10px 12px; }
.sx-lp-results > span { display: flex; flex-direction: column; gap: 5px; }
.sx-lp-results b { display: block; height: 8px; border-radius: 4px; background: var(--sx-line-box); }
.sx-lp-results b:first-child { width: 40%; }
.sx-lp-results b:nth-child(2) { width: 75%; height: 11px; }
.sx-lp-results b:last-child { width: 90%; }
/* On a laptop the results sit in a column at the left, as a results page sets them. */
.sx-lp--wide .sx-lp-query { max-width: 460px; margin-left: 24px; }
.sx-lp--wide :is(.sx-lp-kinds, .sx-lp-results, .sx-lp-search) { padding-left: 24px; }
.sx-lp--wide :is(.sx-lp-results, .sx-lp-search) { max-width: 520px; }
/* Every line of a search ad, in order, each counted against its limit: what the person approves (P06). */
.sx-searchlines td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--sx-text-2); }
.sx-searchlines td:nth-child(2) { overflow-wrap: anywhere; }
.sx-searchlines .sx-searchlines__none td { color: var(--sx-muted); }
:lang(th) .sx-lp-search :not(svg, svg *) { font-size: var(--sx-size-label); letter-spacing: 0; line-height: var(--sx-leading); }
:lang(th) .sx-lp-search .sx-lp-search__head { font-size: var(--sx-size-ui); }

/* ---------- 15b. A full-screen ad's headline under the brand name (version 0.15.1) ---------- */
/* Content Studio's change request 375: Snapchat shows the ad's headline (up to 34 characters) under
   the brand name at the top of the snap. It sits under the name, past the brand's picture, on one or two lines. */
.sx-lp-full__headline { margin: -6px 0 0 30px; font-size: 11px; line-height: 1.3; color: var(--sx-text); overflow-wrap: anywhere; }
:lang(th) .sx-lp-full__headline { font-size: var(--sx-size-label); line-height: var(--sx-leading); }

/* ---------- 16. Static or animated, and the frames of an animated ad (version 0.17) ---------- */
/* Content Studio's change request 370, its later additions (static or animated through the journey, and the art
   director's picture for each frame). An In use bar with a fifth slot, the ad type: Static, Animated or Both. */
.sx-inuse--five { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; }
@media (max-width: 767px) {
  .sx-inuse--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-inuse--five > :nth-child(5) { grid-column: 1 / -1; }
}
/* The frames of an animated ad, in the order they play (not the review stylesheet's .sx-frame, a film's frames).
   Each holds its picture, its name ("Frame 1 · The car"), who chose it and why, and Change. The offer is always last
   and is not moved. */
.sx-sequence { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sx-space-3); margin: 0; padding: 0; list-style: none; }
.sx-sequence__frame { display: flex; flex-direction: column; gap: var(--sx-space-2); min-width: 0; padding: var(--sx-space-2);
  border-radius: var(--sx-radius-box); background: var(--sx-raised); box-shadow: inset 0 0 0 1px var(--sx-line-box); }
.sx-sequence__pic { display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--sx-well); }
.sx-sequence__pic > :is(svg, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
.sx-sequence__name { display: flex; align-items: center; gap: var(--sx-space-2); font-size: var(--sx-size-data); font-weight: var(--sx-weight-medium); }
.sx-sequence__by { font-size: var(--sx-size-label); color: var(--sx-text-2); }
.sx-sequence__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sx-space-2); margin-top: auto; }
/* The strip under an animated ad as it plays: small frames, the one on screen marked. */
.sx-sequence--strip { align-self: stretch; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--sx-space-2); }
.sx-sequence--strip .sx-sequence__frame { padding: var(--sx-space-1); gap: var(--sx-space-1); }
.sx-sequence--strip .sx-sequence__name { font-size: var(--sx-size-label); }
.sx-sequence__frame[aria-current="true"] { background: var(--sx-selected); box-shadow: inset 0 0 0 2px var(--sx-accent); }
/* A checklist item that holds its own buttons (the art director's suggestions on a piece: Undo, Leave as it is):
   the buttons sit under the words, never in the mark's column. */
.sx-checklist__item > :is(.sx-actions, form) { grid-column: 2; }

/* ---------- 17. A television, and YouTube's pause ad (version 0.18) ---------- */
/* Content Studio's rule R44 (build pack v18): YouTube's pause ads show only on televisions, a still picture beside the
   paused video, 10 seconds after the pause, until the viewer plays again or dismisses it (Google's page on YouTube Pause
   ads, read 20 November 2026). A television frame for See it in place, and the look-alike of that screen. */
.sx-adframe--tv { width: 760px; padding: 10px; border-radius: 10px; margin-bottom: 26px; }
.sx-adframe--tv .sx-adframe__screen { height: 416px; border-radius: 2px; }
.sx-adframe--tv::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 180px; height: 26px; transform: translateX(-50%);
  border-radius: 0 0 8px 8px; background: var(--sx-raised); box-shadow: inset 0 0 0 1px var(--sx-line-box); }
.sx-lp-pause { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 248px; background: var(--sx-bg); color: var(--sx-text); font-size: 12px; line-height: 1.35; }
.sx-lp-pause__video { position: relative; overflow: hidden; }
.sx-lp-pause__video > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The video is dimmed while it is paused, so the ad beside it leads. */
.sx-lp-pause__video::after { content: ""; position: absolute; inset: 0; background: var(--sx-bg); opacity: 0.55; }
.sx-lp-pause__title { position: absolute; z-index: 1; left: 16px; top: 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: var(--sx-weight-medium); }
.sx-lp-pause__bar { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 10px; font-size: 11px; }
.sx-lp-pause__bar .sx-icon { width: 18px; height: 18px; }
.sx-lp-pause__line { flex: 1; height: 3px; border-radius: 2px; background: var(--sx-line-box); }
.sx-lp-pause__line b { display: block; width: 42%; height: 100%; border-radius: 2px; background: var(--sx-text); }
.sx-lp-pause__ad { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 16px; background: var(--sx-raised); box-shadow: inset 1px 0 0 var(--sx-line-box); }
/* The picture keeps its own shape (Google takes 1080 to 1350 pixels each way), never cropped to fit. */
.sx-lp-pause__pic { display: block; border-radius: 6px; overflow: hidden; background: var(--sx-well); }
.sx-lp-pause__pic > :is(svg, img) { display: block; width: 100%; height: auto; }
.sx-lp-pause__words { display: flex; flex-direction: column; gap: 2px; }
.sx-lp-pause__words small { font-size: 10px; color: var(--sx-muted); }
.sx-lp-pause__words strong { font-weight: var(--sx-weight-medium); }
.sx-lp-pause__ad > .sx-lp-btn { align-self: flex-start; }
/* Thai: every word on the pause screen at the system's Thai minimum (14 pixels), as in the other look-alikes (0.13.1). */
:lang(th) .sx-lp-pause { line-height: var(--sx-leading); }
:lang(th) .sx-lp-pause :not(svg, svg *) { font-size: var(--sx-size-label); letter-spacing: 0; line-height: var(--sx-leading); }
/* The television is 760 pixels wide: drawn smaller to fit its well, as the laptop is, never cut off. */
@media (max-width: 1439px) { .sx-inplace__stage .sx-adframe--tv { zoom: 0.65; } }
@media (max-width: 1023px) { .sx-inplace__stage .sx-adframe--tv { zoom: 0.75; } }
@media (max-width: 767px) { .sx-inplace__stage .sx-adframe--tv { zoom: 0.42; } }

/* ---------- 18. Making with rented machines: takes side by side, a run, a budget, the line to say (version 0.20) ----------
   From the Film Platform's Production Studio, set 1 (DWO-20261120-081), approved as pictures by Tim on 20 November 2026
   (DEC-FILM-20261120-04 and -05), drawn first in that set's proposed-production-parts.css (OI-292, OI-297) and moved
   here unchanged as parts every product takes. Rules: specs/guided.md section 18. Line widths (1 to 2 pixels) and the
   layout sizes of these parts are numbers; every colour, type size and space is a system value. */
/* ---------- 18.1. Takes side by side: two, three or four of one shot, playing in step ----------
   Extends the compare (signal-osx-review.css), which holds two. The well that holds the takes is a size container
   (sx-takes-well), so each column is exactly as wide as its picture can be at 16:9 in its share of the well, never
   cut: the take's name above and its three lines below share the picture's edges (rule 4.1). Four sit two by two;
   three sit in a row while the well is at least 900 wide, otherwise two and one; two sit side by side.
   --sx-take-chrome is the height above and below a picture: the name row (36), two gaps (8 each) and two short lines that always fit whole. */
.sx-takes-well { container: sx-takes-well / size; }
.sx-takes { --sx-take-chrome: calc(36px + 2 * var(--sx-space-2) + 2 * var(--sx-size-ui) * var(--sx-leading) + 2px);
  display: grid; gap: var(--sx-space-4); justify-content: center; align-content: center; width: 100%; height: 100%;
  grid-template-columns: repeat(2, min((100cqw - var(--sx-space-4)) / 2, (100cqh - var(--sx-take-chrome)) * 16 / 9)); }
.sx-takes--1 { grid-template-columns: min(100cqw, (100cqh - var(--sx-take-chrome)) * 16 / 9); }
.sx-takes--3 { grid-template-columns: repeat(3, min((100cqw - 2 * var(--sx-space-4)) / 3, (100cqh - var(--sx-take-chrome)) * 16 / 9)); }
.sx-takes--4 { grid-template-columns: repeat(2, min((100cqw - var(--sx-space-4)) / 2, ((100cqh - var(--sx-space-4)) / 2 - var(--sx-take-chrome)) * 16 / 9)); }
@container sx-takes-well (max-width: 899px) {
  .sx-takes--3 { grid-template-columns: repeat(2, min((100cqw - var(--sx-space-4)) / 2, ((100cqh - var(--sx-space-4)) / 2 - var(--sx-take-chrome)) * 16 / 9)); }
}

.sx-take { container: sx-take / inline-size; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: var(--sx-space-2); }
.sx-take__head { flex: none; display: flex; align-items: center; gap: var(--sx-space-2); height: 36px; min-width: 0; font-size: var(--sx-size-ui); color: var(--sx-text-2); }
.sx-take__name { font-weight: var(--sx-weight-medium); color: var(--sx-text); white-space: nowrap; }
.sx-take__end { margin-left: auto; display: inline-flex; align-items: center; gap: var(--sx-space-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sx-take__pic { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--sx-radius-control); overflow: hidden;
  background: var(--sx-raised); box-shadow: 0 0 0 var(--sx-hairline, 1px) var(--sx-line-box); }
.sx-take__meta { flex: none; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: var(--sx-size-ui); color: var(--sx-text-2); }
.sx-take__meta li { display: flex; line-height: var(--sx-leading); align-items: flex-start; gap: var(--sx-space-2); min-width: 0; }
.sx-take__meta li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-take__meta svg { flex: none; margin-top: 3px; color: var(--sx-accent); }
.sx-take__meta .sx-take__look { color: var(--sx-text); }
.sx-take__meta .sx-take__warn { color: var(--sx-attention-text); }
.sx-take__meta .sx-take__warn svg { color: var(--sx-attention-mark); }
.sx-take__meta .sx-take__fail { color: var(--sx-danger); }
.sx-take__meta .sx-take__fail svg { color: var(--sx-danger); }
/* The take the eye is on (its notes and its line to say follow it): an outline in the accent, one pixel. */
.sx-take[aria-current="true"] .sx-take__pic, .sx-take__pic--focus { box-shadow: 0 0 0 1.5px var(--sx-accent); }
.sx-take--failed[aria-current="true"] .sx-take__pic { box-shadow: 0 0 0 2px var(--sx-danger); }
/* Chosen, only once Claude has recorded the person's words: two pixels and the stamp (kind 6, a chosen thing is
   unmistakable). */
.sx-take--chosen .sx-take__pic, .sx-take__pic--chosen { box-shadow: 0 0 0 2px var(--sx-accent); }
.sx-chosen { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: var(--sx-radius-pill);
  border: 1.5px solid var(--sx-accent); font-size: var(--sx-size-label); font-weight: var(--sx-weight-medium); color: var(--sx-text); white-space: nowrap; }
.sx-chosen svg { color: var(--sx-accent); }
.sx-chosen--before { border-width: var(--sx-hairline, 1px); border-color: var(--sx-line-control); font-weight: var(--sx-weight-regular); color: var(--sx-text-2); }
.sx-chosen--before svg { color: var(--sx-muted); }
/* A narrow take (four on a tablet) keeps the stamp's mark and puts its words in the name read aloud: it never wraps. */
@container sx-take (max-width: 259px) {
  .sx-chosen { padding: 0 6px; }
  .sx-chosen__words { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* Not made yet: the picture's place, with what is happening in words. */
.sx-take--making .sx-take__pic, .sx-take--queued .sx-take__pic, .sx-take--failed .sx-take__pic, .sx-take--stopped .sx-take__pic {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sx-space-2); padding: var(--sx-space-4); text-align: center;
  font-size: var(--sx-size-ui); color: var(--sx-text-2); }
.sx-take--making .sx-take__pic { background: repeating-linear-gradient(135deg, var(--sx-well) 0 10px, var(--sx-panel) 10px 20px); }
.sx-take--making .sx-progress { width: min(240px, 80%); }
.sx-take--queued .sx-take__pic { background: var(--sx-well); box-shadow: inset 0 0 0 var(--sx-hairline, 1px) var(--sx-line-box); border: 1px dashed var(--sx-line-control); }
.sx-take--failed .sx-take__pic { background: var(--sx-well); box-shadow: 0 0 0 1.5px var(--sx-danger); color: var(--sx-text); }
.sx-take--failed .sx-take__pic > svg { color: var(--sx-danger); }
.sx-take--stopped .sx-take__pic { background: var(--sx-well); box-shadow: 0 0 0 var(--sx-hairline, 1px) var(--sx-line-control); }
/* Marked (consent withdrawn, or made from something changed after lock): the picture stays, under a band that says so.
   The band is the dark well's own surface, its icon the attention mark: orange is never a fill. */
.sx-take--marked .sx-take__pic > .fr-art { opacity: 0.45; }
.sx-take__band { position: absolute; left: var(--sx-space-2); right: var(--sx-space-2); bottom: var(--sx-space-2); display: flex; align-items: flex-start; gap: var(--sx-space-2);
  padding: var(--sx-space-2) var(--sx-space-3); border-radius: var(--sx-radius-control); background: var(--sx-surface); color: var(--sx-text); font-size: var(--sx-size-ui); }
.sx-take__band svg { flex: none; margin-top: 2px; color: var(--sx-attention-mark); }
/* A time on a take: the playhead's place over the picture's foot, and a note's mark there. */
.sx-take__pic .sx-mark { position: absolute; z-index: 2; transform: translate(-50%, -50%); }

/* ---------- 18.2. The takes not chosen, folded away and never gone ---------- */
.sx-folded { flex: none; display: flex; flex-direction: column; gap: var(--sx-space-3); }
.sx-folded__head { display: flex; align-items: center; gap: var(--sx-space-2); min-height: var(--sx-control-height); padding: 0 var(--sx-space-3);
  border: var(--sx-hairline, 1px) solid var(--sx-line-box); border-radius: var(--sx-radius-control); background: transparent; color: var(--sx-text-2);
  font: inherit; font-size: var(--sx-size-ui); text-align: left; }
.sx-folded__head strong { color: var(--sx-text); font-weight: var(--sx-weight-medium); }
.sx-folded__head > :last-child { margin-left: auto; }
.sx-folded__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sx-space-3); }
.sx-folded__item { display: flex; flex-direction: column; gap: var(--sx-space-1); min-width: 0; font-size: var(--sx-size-label); color: var(--sx-text-2); }
.sx-folded__item .sx-take__pic > .fr-art { opacity: 0.7; }

/* ---------- 18.3. A run's state, in one line ----------
   What the run is doing, in words, with a dot or mark: running (accent dot), done (tick), part done and cancelled
   and expired (hollow), failed (red cross). Never coloured as a fill. */
.sx-run { display: inline-flex; align-items: center; gap: var(--sx-space-2); min-width: 0; font-size: var(--sx-size-ui); color: var(--sx-text); white-space: nowrap; }
.sx-run::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--sx-line-field); }
.sx-run--running::before { background: var(--sx-accent); box-shadow: none; }
.sx-run--done::before, .sx-run--failed::before { display: none; }
.sx-run--done svg { color: var(--sx-accent); }
.sx-run--failed { color: var(--sx-danger); }
.sx-run--failed svg { color: var(--sx-danger); }
.sx-run--part::before, .sx-run--cancelled::before, .sx-run--expired::before { box-shadow: inset 0 0 0 1.5px var(--sx-accent); }
.sx-run__more { color: var(--sx-text-2); }

/* ---------- 18.4. "Updated a moment ago" ----------
   Shown only while something runs: the page refreshes itself and changes in place, never moving under the person. */
.sx-fresh { display: inline-flex; align-items: center; gap: 6px; font-size: var(--sx-size-label); color: var(--sx-text-2); white-space: nowrap; }
.sx-fresh svg { color: var(--sx-accent); }

/* ---------- 18.5. A budget, with its 80 and 100 per cent marks ----------
   Used so far in the product colour; this run's most, hatched beside it; a tick at 80 per cent (past it, every run
   asks for a yes) and the end at 100 (past it, a run is refused). The words carry the figures; the bar never does
   alone. */
.sx-budget { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sx-budget__words { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px var(--sx-space-3); font-size: var(--sx-size-ui); color: var(--sx-text-2); }
.sx-budget__words strong { color: var(--sx-text); font-weight: var(--sx-weight-medium); }
.sx-budget__bar { position: relative; height: 8px; border-radius: 4px; background: var(--sx-line-box); }
.sx-budget__used { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px 0 0 4px; background: var(--sx-accent); }
.sx-budget__run { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--sx-accent) 0 3px, transparent 3px 6px);
  box-shadow: inset 0 0 0 1px var(--sx-accent); }
.sx-budget__mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--sx-text-2); }
.sx-budget__scale { position: relative; height: 18px; font-size: var(--sx-size-label); color: var(--sx-muted); font-variant-numeric: tabular-nums; }
.sx-budget__scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.sx-budget__scale span:last-child { transform: translateX(-100%); }
/* Past 80 per cent: the 80 mark and the words take the attention mark. Past 100: the run's part beyond the end is cut
   and the end mark takes it too. */
.sx-budget--ask .sx-budget__mark--80, .sx-budget--refused .sx-budget__mark { background: var(--sx-attention-mark); }
.sx-budget--refused .sx-budget__run { border-radius: 0 4px 4px 0; }
.sx-budget__why { display: flex; align-items: flex-start; gap: var(--sx-space-2); font-size: var(--sx-size-ui); color: var(--sx-attention-text); }
.sx-budget__why svg { flex: none; margin-top: 2px; color: var(--sx-attention-mark); }

/* ---------- 18.6. The line to say to Claude, with Copy ----------
   A page never records a choice (a pick, a gate, spend or a release). Where a choice belongs to the person, the page
   shows the words to say to Claude, and copies them. */
.sx-say { display: flex; flex-direction: column; gap: var(--sx-space-2); min-width: 0; }
.sx-say__label { margin: 0; font-size: var(--sx-size-label); color: var(--sx-text-2); }
.sx-say__row { display: flex; align-items: center; gap: var(--sx-space-2); min-width: 0; padding: var(--sx-space-1) var(--sx-space-1) var(--sx-space-1) var(--sx-space-3);
  border-radius: var(--sx-radius-control); background: var(--sx-selected); box-shadow: inset 2px 0 0 var(--sx-accent); }
.sx-say__words { flex: 1; min-width: 0; margin: 0; font-size: var(--sx-size-body); color: var(--sx-text); }
.sx-say__row .sx-button { flex: none; }

/* ---------- 18.7. Takes in a card in an assistant ----------
   The card's one body thing is the takes: up to four small pictures playing in step, each with its number and its
   checks in one line. Two by two; one column of two in a card under 360 wide never happens, because two fit at 320. */
.sx-assist__takes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sx-space-3); }
.sx-assist__takes--1 { grid-template-columns: minmax(0, 1fr); }
.sx-assist__take { display: flex; flex-direction: column; gap: var(--sx-space-1); min-width: 0; font-size: var(--sx-size-label); color: var(--sx-text-2); }
.sx-assist__take-line { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.sx-assist__take-line strong { color: var(--sx-text); font-weight: var(--sx-weight-medium); font-size: var(--sx-size-ui); }
.sx-assist__take-line svg { flex: none; color: var(--sx-accent); }
.sx-assist__take-line .sx-take__warn { display: inline-flex; align-items: center; gap: var(--sx-space-1); color: var(--sx-attention-text); }
.sx-assist__take-line .sx-take__warn svg { color: var(--sx-attention-mark); }
.sx-assist__take-line .sx-take__fail { display: inline-flex; align-items: center; gap: var(--sx-space-1); color: var(--sx-danger); }
.sx-assist__take-line .sx-take__fail svg { color: var(--sx-danger); }
.sx-assist__take-line > :last-child:not(:first-child) { margin-left: auto; }
.sx-assist__playline { display: flex; align-items: center; gap: var(--sx-space-3); font-size: var(--sx-size-ui); color: var(--sx-text-2); font-variant-numeric: tabular-nums; }
.sx-assist__actions > .sx-assist__playline { margin-right: auto; }
.sx-assist__take-line .sx-take__pass { display: inline-flex; align-items: center; gap: var(--sx-space-1); }
.sx-take__pic--none { display: flex; align-items: center; justify-content: center; gap: var(--sx-space-2); color: var(--sx-text-2); background: var(--sx-well); border: var(--sx-hairline, 1px) dashed var(--sx-line-control); }
.sx-assist__playline .sx-play { width: var(--sx-target, 36px); height: var(--sx-target, 36px); }
.sx-assist__why { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: var(--sx-size-ui); color: var(--sx-text); }
.sx-assist__why li { display: flex; align-items: flex-start; gap: var(--sx-space-2); }
.sx-assist__why svg { flex: none; margin-top: 3px; color: var(--sx-accent); }
