/* 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; gap: var(--sx-space-4); margin: 0; padding: 0; list-style: none;
  /* 0.24.2: as many across as fit while each card is at least 280 pixels wide, never more than three (Content Studio
     build pack v24, rule R74; studio issue 611). Three at 1280 and wider, two at 820, one on a phone. */
  grid-template-columns: repeat(auto-fill, minmax(max(280px, calc((100% - 2 * var(--sx-space-4)) / 3)), 1fr)); }
.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; }
/* 0.24.2: a card's button wraps inside the card rather than running past its edge. */
.sx-flight__card .sx-actions { min-width: 0; }
.sx-flight__card .sx-actions .sx-button { max-width: 100%; white-space: normal; text-align: start; padding-block: var(--sx-space-2); }
@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); }

/* ---------- 19. A frame fits whatever holds it (version 0.21) ----------
   Studio request 468, from Content Studio's build of pack v18 (rule R40): the ad pop-up's "In place" pane held a laptop
   frame at its full 720 pixels (800 with its base), so it crossed into the words beside it, and on a phone it pushed
   the pane past the screen. Until 0.21 only Look's own stage (.sx-inplace__stage, section 7) drew a frame smaller.
   Now any box that holds a frame can be made a frame box: .sx-adfit, and the ad pop-up's picture pane, which is one
   already. Its own width never grows with what it holds, and each frame takes the largest step that fits that width:
   the laptop's 800 pixels with its base, the television's 760, the tablet's 520 and the phone's 300. The steps are the
   ones Content Studio tried on staging (21 November 2026). Never put a frame box inside .sx-inplace__stage, which keeps
   its own steps, so its approved pictures draw as they did. */
.sx-adfit { display: flex; flex-direction: column; align-items: center; }
.sx-adfit, .sx-adpop__view { container: sx-adfit / inline-size; min-width: 0; }
@container sx-adfit (max-width: 799px) { .sx-adframe--laptop { zoom: 0.9; } }
@container sx-adfit (max-width: 719px) { .sx-adframe--laptop { zoom: 0.8; } }
@container sx-adfit (max-width: 639px) { .sx-adframe--laptop { zoom: 0.7; } }
@container sx-adfit (max-width: 559px) { .sx-adframe--laptop { zoom: 0.6; } }
@container sx-adfit (max-width: 479px) { .sx-adframe--laptop { zoom: 0.5; } }
@container sx-adfit (max-width: 399px) { .sx-adframe--laptop { zoom: 0.44; } }
@container sx-adfit (max-width: 351px) { .sx-adframe--laptop { zoom: 0.4; } }
@container sx-adfit (max-width: 319px) { .sx-adframe--laptop { zoom: 0.34; } }
@container sx-adfit (max-width: 271px) { .sx-adframe--laptop { zoom: 0.3; } }
@container sx-adfit (max-width: 759px) { .sx-adframe--tv { zoom: 0.9; } }
@container sx-adfit (max-width: 683px) { .sx-adframe--tv { zoom: 0.8; } }
@container sx-adfit (max-width: 607px) { .sx-adframe--tv { zoom: 0.7; } }
@container sx-adfit (max-width: 531px) { .sx-adframe--tv { zoom: 0.6; } }
@container sx-adfit (max-width: 455px) { .sx-adframe--tv { zoom: 0.5; } }
@container sx-adfit (max-width: 379px) { .sx-adframe--tv { zoom: 0.44; } }
@container sx-adfit (max-width: 334px) { .sx-adframe--tv { zoom: 0.4; } }
@container sx-adfit (max-width: 303px) { .sx-adframe--tv { zoom: 0.34; } }
@container sx-adfit (max-width: 519px) { .sx-adframe--tablet { zoom: 0.9; } }
@container sx-adfit (max-width: 467px) { .sx-adframe--tablet { zoom: 0.8; } }
@container sx-adfit (max-width: 415px) { .sx-adframe--tablet { zoom: 0.7; } }
@container sx-adfit (max-width: 363px) { .sx-adframe--tablet { zoom: 0.6; } }
@container sx-adfit (max-width: 311px) { .sx-adframe--tablet { zoom: 0.5; } }
@container sx-adfit (max-width: 299px) { .sx-adframe--phone { zoom: 0.9; } }
@container sx-adfit (max-width: 269px) { .sx-adframe--phone { zoom: 0.8; } }

/* ---------- 20. The header and the In use bar at tablet width (version 0.22) ----------
   Content Studio's change request, studio issue 465 (24 November 2026, Jason's standing permission,
   DEC-SYS-20261116-02). From 768 to 1279 pixels the left menu is already a strip of icons; the header kept the whole
   lockup and every word, and at 820 pixels it needed about 970. What gives way, in this order: */

/* (a) The lockup is its tile alone, as on a phone. The words stay the lockup's name for a screen reader. */
@media (max-width: 1279px) {
  .sx-header .sx-lockup__word { display: none; }
}

/* (b) A count in the header, such as Content Studio's "Nothing waiting" or "3 waiting for you", is its icon and its
   number below 1280 pixels: the words are hidden from the eye and stay its name for a screen reader, and the product
   puts them in the button's title so they show on hover. At 1280 and wider the words show and the number does not,
   because the words carry it. The markup:
   <button class="sx-button sx-button--quiet sx-header__count" title="3 waiting for you">
     <svg …></svg><span class="sx-header__count-words">3 waiting for you</span>
     <span class="sx-header__count-n" aria-hidden="true">3</span></button> */
.sx-header__count-n { display: none; }
@media (max-width: 1279px) {
  .sx-header__count { gap: 6px; padding-left: var(--sx-space-2); padding-right: var(--sx-space-2); }
  .sx-header__count-words { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sx-header__count-n { display: inline; font-variant-numeric: tabular-nums; }
}

/* (c) A switcher's name gives way last, and it gives way as 0.19 says, by wrapping onto a second line, never by
   ending in "…" (section 1 (d)). Its badge ("Unconfirmed") is never wrapped or shortened. "Example content" keeps its
   words at every width: it is a warning. With (a) and (b), Content Studio's three switchers fit whole at 820. */
.sx-header > .sx-switch > .sx-tag { flex: none; white-space: nowrap; }

/* (d) The In use bar folds to two rows of two below 1280 pixels, where the left menu is a strip of icons, not only on
   a phone: the pictures first, its state under them across the bar. The change request asked for 1024; the studio's
   pictures at 1024 showed the names still cut to a few letters there, so the fold starts with the folded menu. From 768
   to 1279 the slots keep their desktop size; a phone also makes them smaller (section 14). The bar with a fifth slot
   (section 16) folds to three and two at this width, and to two, two and one on a phone, as before. */
@media (max-width: 1279px) {
  .sx-inuse, .sx-inuse--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .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); }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .sx-inuse--five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sx-inuse--five > :nth-child(-n+3) { grid-column: span 2; }
  .sx-inuse--five > :nth-child(4), .sx-inuse--five > :nth-child(5) { grid-column: span 3; }
  .sx-inuse--five > .sx-inuse__state { grid-column: 1 / -1; }
}

/* ---------- 21. Searching a store: the search row, a picture in the box, the filters, "More like" (version 0.23) ----------
   From Content Studio's request 530, items 8 to 10 (24 November 2026, Jason's standing permission, DEC-SYS-20261116-02).
   The AI Asset Manager drew these in its build pack v6 as page layout of its own (as-searchrow, as-qimg, as-likehead,
   as-crumb), and Content Studio built the same jobs with parts of its own (cs-crumb, rows of chips). Two products
   searching one store with two looks is the drift a design review must not leave (DEC-SYS-20261115-02), so the parts
   come into the system, with the AI Asset Manager's form. */

/* (a) The search row: the box takes the room, then "Search with a picture" as an icon button, then Search. On a phone
   it wraps when Search does not fit. */
.sx-searchrow { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--sx-space-2); min-width: 0; }
.sx-searchrow > .sx-input { flex: 1 1 320px; min-width: 0; width: auto; }
.sx-searchrow > .sx-input input { width: 100%; min-width: 0; }
@media (max-width: 767px) { .sx-searchrow { flex-wrap: wrap; } }

/* (b) A picture in the box: small, with its file name and a way to clear it. While it is there the box searches with
   the picture alone. */
.sx-qimg { display: inline-flex; align-items: center; gap: var(--sx-space-2); flex: none; min-width: 0; max-width: 60%; padding: var(--sx-space-1);
  border-radius: var(--sx-radius-control); background: var(--sx-selected); font-size: var(--sx-size-label); color: var(--sx-text); }
.sx-qimg__pic { position: relative; flex: none; width: 40px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--sx-radius-control); background: var(--sx-well); }
.sx-qimg__pic > svg, .sx-qimg__pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-qimg__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-qimg__clear { flex: none; width: 24px; height: 24px; min-height: 24px; }
@media (max-width: 767px) { .sx-qimg { max-width: 70%; } }

/* (c) The filters: one row of the system's selects, each reading "<what>: <value>", as the AI Asset Manager's Library
   draws them. Never a row of chips per filter: chips are for one choice among few, such as the kind of asset. */
.sx-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sx-space-2); }
.sx-filters > .sx-select { width: auto; }

/* (d) "More like <name>": the picture it started from, small, beside the heading; the way back above it. */
.sx-crumb { display: inline-flex; align-items: center; gap: var(--sx-space-2); min-height: 24px; font-size: var(--sx-size-ui); color: var(--sx-text-2); text-decoration: none; }
.sx-crumb:hover { color: var(--sx-text); text-decoration: underline; }
.sx-likehead { display: flex; align-items: center; gap: var(--sx-space-3); min-width: 0; }
.sx-likehead__pic { flex: 0 0 96px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--sx-radius-box); background: var(--sx-well); }
.sx-likehead__pic > svg, .sx-likehead__pic > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sx-likehead__words { display: flex; flex-direction: column; gap: var(--sx-space-1); min-width: 0; }
.sx-likehead__words > * { margin: 0; }

/* (e) "More like this" under a tile in a grid, where the tile itself is a button that chooses or opens: a link under
   it, never inside it, on the tile's own text edge. */
.sx-assetcell { display: flex; flex-direction: column; gap: var(--sx-space-1); min-width: 0; }
.sx-assetcell > .sx-asset { width: 100%; }
.sx-assetcell__more { align-self: flex-start; padding-inline: var(--sx-space-2); font-size: var(--sx-size-label); }

/* ---------- 22. S42 staff in a client's workspace (version 0.24) ----------
   Jason's choice of 25 November 2026, "Same as AI Enablement": S42's staff stay in S42's organisation and enter a
   client's workspace inside the product, only while the client lets S42 in, each entry recorded in the client's own
   activity (AI Asset Manager request 143, AAM-046; Content Studio CONTENT-133). One part for every product, under
   Jason's standing permission (DEC-SYS-20261116-02; DEC-SYS-20261125-01). Rules: specs/guided.md, section 22. */

/* (a) The staff band: above the header, on every page, for as long as the entry lasts. It says who is here, in whose
   workspace, until when, and that it is recorded; then Switch workspace and Leave. Never shown to the client's own
   people, and never hidden or folded away by the person in it. */
.sx-staffbar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sx-space-2) var(--sx-space-4);
  min-height: 44px; padding: var(--sx-space-1) var(--sx-space-4); background: var(--sx-raised);
  border-bottom: 2px solid var(--sx-attention-mark); font-size: var(--sx-size-ui); line-height: var(--sx-leading-tight); color: var(--sx-text-2); }
.sx-staffbar__mark { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: var(--sx-weight-medium); color: var(--sx-attention-text); white-space: nowrap; }
.sx-staffbar__mark > svg { flex: none; width: 16px; height: 16px; color: var(--sx-attention-mark); }
.sx-staffbar__text { flex: 1 1 18em; min-width: 0; margin: 0; overflow-wrap: break-word; }
.sx-staffbar__text strong { font-weight: var(--sx-weight-medium); color: var(--sx-text); }
.sx-staffbar__end { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sx-space-2); margin-left: auto; }
.sx-staffbar__end > .sx-button { min-height: 32px; }
/* Version 0.24.1: the band carries both sentences, the full one and the phone's shorter one
   (.sx-staffbar__text--phone), and the width chooses: at 767 pixels and narrower only the phone's shows, wider only the
   full one. A band with one sentence shows it at every width. */
.sx-staffbar__text--phone { display: none; }
@media (max-width: 767px) {
  .sx-staffbar { padding: var(--sx-space-2) var(--sx-space-3); gap: var(--sx-space-1) var(--sx-space-2); }
  .sx-staffbar__text { flex-basis: 100%; order: 1; }
  .sx-staffbar__end { order: 2; margin-left: 0; }
  .sx-staffbar:has(.sx-staffbar__text--phone) .sx-staffbar__text:not(.sx-staffbar__text--phone) { display: none; }
  .sx-staffbar__text--phone { display: block; }
}

/* (b) The workspaces an S42 platform admin may enter, after sign-in: one row each, the name and how it lets S42 in,
   one action, Enter. Those that do not let S42 in now are listed after, quieter, with no action. */
.sx-wslist { list-style: none; margin: 0; padding: 0; border-radius: var(--sx-radius-card); background: var(--sx-raised); box-shadow: var(--sx-shadow-card); }
.sx-wslist__row { display: flex; align-items: center; gap: var(--sx-space-4); padding: var(--sx-space-3) var(--sx-space-4); border-top: 1px solid var(--sx-line-row); }
.sx-wslist__row:first-child { border-top: 0; }
.sx-wslist__words { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sx-wslist__name { font-size: var(--sx-size-data); font-weight: var(--sx-weight-medium); color: var(--sx-text); overflow-wrap: anywhere; }
.sx-wslist__how { display: flex; align-items: flex-start; gap: 6px; font-size: var(--sx-size-label); color: var(--sx-text-2); }
.sx-wslist__how > svg { flex: none; width: 14px; height: 14px; margin-top: 0.15em; color: var(--sx-muted); }
.sx-wslist__row > .sx-button { flex: none; }
.sx-wslist--closed { background: transparent; box-shadow: none; border: 1px solid var(--sx-line); }
.sx-wslist--closed .sx-wslist__name { color: var(--sx-text-2); }
@media (max-width: 767px) {
  .sx-wslist__row { flex-wrap: wrap; gap: var(--sx-space-2); }
  .sx-wslist__row > .sx-button { width: 100%; justify-content: center; }
}
/* Version 0.24.1: the header of a page with no frame (the workspace list, sx-solo) ends with who is signed in
   (.sx-header__who) and Sign out, a quiet button with the log-out icon. At 767 pixels and narrower the name is left out
   and Sign out folds to its icon (.sx-button--fold): the same button, the size of an icon button, its words kept as its
   name for a screen reader. */
@media (max-width: 767px) {
  .sx-header__who { display: none; }
  .sx-button--fold { width: var(--sx-control-height); padding: 0; gap: 0; }
  .sx-button--fold > .sx-button__words { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* (c) "(S42)" after a staff record's name wherever a person is listed (People, Activity, the account box), with the tag
   "S42 staff" where a row has room: the system's sx-tag in the attention colour, with the shield icon. A staff
   record has no actions where the client's own people have them. */
.sx-tag--staff { display: inline-flex; align-items: center; gap: var(--sx-space-1); width: max-content; max-width: 100%; white-space: nowrap; color: var(--sx-attention-text);
  box-shadow: inset 0 0 0 1px var(--sx-attention-mark); background: transparent; }
.sx-tag--staff > svg { flex: none; width: 14px; height: 14px; color: var(--sx-attention-mark); }

/* ---------- 23. The frame holds while the page scrolls (version 0.24.3) ----------
   Tim on production, 25 November 2026 (Media Intelligence MIP-133, issue 546): on a long page the left menu grew with
   the page, so the account box at its foot, and Sign out behind it, sat at the page's very end. The Design Director's
   ruling that day makes it the system's rule (OI-324): from 768 pixels up the header and the left menu stay on the
   screen, the account box stays at the menu's foot, and only the page scrolls; a menu taller than the screen scrolls
   inside itself, to its foot. Phones keep the drawer. Taken from Media Intelligence's own sheet (its PR 545), which it
   drops for this. The window stays the page's scroller, so the keyboard, the browser's find and a link to a place on
   the page behave as before. A device frame drawn on a board (.sx-device) is not the window, so it is left alone.
   Rules: specs/guided.md, section 23; specs/frame.md, "Three widths". */
@media (min-width: 768px) {
  /* A control the keyboard reaches is never left under the header (WCAG 2.2, 2.4.11 Focus Not Obscured). */
  html:has(.sx-app:not(.sx-device)) { scroll-padding-top: var(--sx-header-height); }

  /* Above the page and the left menu, so the header's own menus open over both. A dialog's dimmed page (10) and the
     menus over it (12) stay above all three. */
  .sx-app:not(.sx-device) > .sx-header { position: sticky; top: 0; z-index: 3; }

  /* The left menu fills the screen under the header; above the page, so the account menu opens over it from the rail. */
  .sx-app:not(.sx-device) > .sx-body > .sx-sidebar:not(.sx-drawer) {
    position: sticky; top: var(--sx-header-height); z-index: 2; align-self: flex-start;
    height: calc(100vh - var(--sx-header-height)); height: calc(100dvh - var(--sx-header-height));
    overflow-y: auto; overscroll-behavior: contain;
    /* A page the keyboard reaches in the menu is never left under the account box (2.4.11). */
    scroll-padding-bottom: calc(var(--sx-space-10) * 2 + var(--sx-space-3));
    scroll-timeline: --sx-menu block;
  }

  /* The account box keeps the menu's foot. A band in the menu's own colour round it keeps a page scrolled under it
     clear of its edge, and a hairline at the band's top shows only while the menu can scroll. */
  .sx-app:not(.sx-device) > .sx-body > .sx-sidebar:not(.sx-drawer) > .sx-account-anchor {
    position: sticky; bottom: 0; z-index: 1;
    box-shadow: 0 0 0 var(--sx-space-3) var(--sx-surface);
    animation: sx-menu-edge linear both; animation-timeline: --sx-menu;
  }
  .sx-app:not(.sx-device) > .sx-body > .sx-sidebar:not(.sx-drawer):has(.sx-menu--account) > .sx-account-anchor { animation: none; }
  /* Room for that band under the menu's last page, so at the menu's foot the band covers nothing. */
  .sx-app:not(.sx-device) > .sx-body > .sx-sidebar:not(.sx-drawer) > :has(+ .sx-account-anchor) { margin-bottom: var(--sx-space-3); }

  /* The menu's column, in its own colour and with its edge, runs the page's whole length behind the held menu, so a
     picture of the whole page, or a page pulled past its end, still shows one column. */
  .sx-app:not(.sx-device) > .sx-body:has(> .sx-sidebar:not(.sx-drawer)) {
    background: linear-gradient(to right, var(--sx-surface) calc(var(--sx-sidebar-width) - 1px),
      var(--sx-line) 0 var(--sx-sidebar-width), transparent 0);
  }
}
/* From 768 to 1279 pixels the menu is a rail of icons and the account menu opens wider than it, over the page. A
   scrolling rail would cut that menu at its edge, so while it is open the rail does not scroll; the rail's icons fit
   any computer or tablet screen, so nothing is hidden. The column behind is the rail's own 64 pixels. */
@media (min-width: 768px) and (max-width: 1279px) {
  .sx-app:not(.sx-device) > .sx-body > .sx-sidebar:not(.sx-drawer):has(.sx-menu--account) { overflow: visible; }
  .sx-app:not(.sx-device) > .sx-body:has(> .sx-sidebar:not(.sx-drawer)) {
    background: linear-gradient(to right, var(--sx-surface) 63px, var(--sx-line) 0 64px, transparent 0);
  }
}
/* A product that sets the rail by hand (.sx-sidebar--icons) at a wider window gets the rail's column too. */
@media (min-width: 768px) {
  .sx-app:not(.sx-device) > .sx-body:has(> .sx-sidebar--icons:not(.sx-drawer)) {
    background: linear-gradient(to right, var(--sx-surface) 63px, var(--sx-line) 0 64px, transparent 0);
  }
}
@keyframes sx-menu-edge {
  from, to { box-shadow: 0 0 0 var(--sx-space-3) var(--sx-surface), 0 0 0 calc(var(--sx-space-3) + 1px) var(--sx-line); }
}

/* ---------------------------------------------------------------------------------------------------------------
   24. A document to finish and send (version 0.26, drawn first for Briefing and approved by Jason with its pages,
   DEC-BRIEF-20261130-02). For any page that is one long record a person completes, has checked and sends on: a brief,
   a plan, a sign-off pack. Rules: specs/guided.md, section 24.
   .sx-record          the page's three columns: the sections (.sx-record__outline), the document (.sx-record__body) and
                    what stands between it and the next step (.sx-record__aside). From 768 to 1279 pixels the sections
                    go under the aside; under 768 the aside comes first and the sections list is left out, as every
                    item in the aside links to its section.
   .sx-outline      the sections, one row each, with the section's state as a mark and words for a screen reader.
   .sx-docsec       one section: its head (name, who wrote it, Edit), its words, and where they came from.
   .sx-ready        "Before it can go": the score, then everything to clear in one list, each item a link to its
                    section, grouped by what it does to the next step, then the next step itself.
   --------------------------------------------------------------------------------------------------------------- */
.sx-record { display: grid; grid-template-columns: 200px minmax(0, 1fr) 328px; grid-template-areas: "outline body aside";
  gap: var(--sx-space-6); align-items: start; }
.sx-record__outline { grid-area: outline; position: sticky; top: calc(var(--sx-header-height) + var(--sx-space-6)); min-width: 0; }
.sx-record__body { grid-area: body; min-width: 0; display: flex; flex-direction: column; gap: var(--sx-space-4); }
.sx-record__aside { grid-area: aside; position: sticky; top: calc(var(--sx-header-height) + var(--sx-space-6)); min-width: 0;
  display: flex; flex-direction: column; gap: var(--sx-space-4); }
@media (max-width: 1279px) {
  .sx-record { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "body aside" "body outline"; grid-template-rows: auto 1fr; }
  .sx-record__outline, .sx-record__aside { position: static; }
}
@media (max-width: 767px) {
  .sx-record { grid-template-columns: minmax(0, 1fr); grid-template-areas: "aside" "body"; grid-template-rows: none; }
  .sx-record__outline { display: none; }
}

/* The sections list */
.sx-outline { display: flex; flex-direction: column; gap: var(--sx-space-1); }
.sx-outline__label { margin: 0 0 var(--sx-space-1); padding-inline: var(--sx-space-2); font-size: var(--sx-size-label); color: var(--sx-muted); }
.sx-outline__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sx-outline__item { display: flex; align-items: center; gap: var(--sx-space-2); min-height: 32px; padding: 0 var(--sx-space-2);
  border-radius: var(--sx-radius-control); color: var(--sx-text-2); text-decoration: none; font-size: var(--sx-size-ui); }
.sx-outline__item:hover { background: var(--sx-selected); color: var(--sx-text); }
.sx-outline__item:focus-visible { outline: 2px solid var(--sx-focus); outline-offset: 1px; }
.sx-outline__item[aria-current="true"] { background: var(--sx-selected); color: var(--sx-text); font-weight: var(--sx-weight-medium); }
.sx-outline__name { flex: 1; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.sx-outline__key { list-style: none; margin: var(--sx-space-3) 0 0; padding: var(--sx-space-3) var(--sx-space-2) 0; border-top: 1px solid var(--sx-line);
  display: flex; flex-direction: column; gap: var(--sx-space-1); font-size: var(--sx-size-label); color: var(--sx-muted); }
.sx-outline__key li { display: flex; align-items: center; gap: var(--sx-space-2); }

/* A section's state, as a mark: written by a person, drafted by the assistant, a question for this person, a check
   that blocks the next step (red, a cross), empty */
.sx-secmark { flex: none; width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.sx-secmark svg { width: 10px; height: 10px; stroke-width: 2.5; }
.sx-secmark--written { color: var(--sx-primary-text); background: var(--sx-accent); }
.sx-secmark--drafted { color: var(--sx-accent); box-shadow: inset 0 0 0 1.5px var(--sx-accent); }
.sx-secmark--drafted svg { width: 9px; height: 9px; stroke-width: 2; }
.sx-secmark--block { color: var(--sx-danger-on); background: var(--sx-danger); }
.sx-secmark--ask { color: var(--sx-primary-text); background: var(--sx-p-accent, var(--sx-accent)); }
.sx-secmark--empty { box-shadow: inset 0 0 0 1.5px var(--sx-line-field); }

/* One section of the document */
.sx-docsec { scroll-margin-top: calc(var(--sx-header-height) + var(--sx-space-4)); padding: var(--sx-space-5) var(--sx-space-6);
  border-radius: var(--sx-radius-card); background: var(--sx-raised); box-shadow: var(--sx-shadow-card);
  display: flex; flex-direction: column; gap: var(--sx-space-3); }
.sx-docsec__head { display: flex; align-items: center; gap: var(--sx-space-3); flex-wrap: wrap; min-height: var(--sx-control-height); }
.sx-docsec__name { margin: 0; font-size: var(--sx-size-title); font-weight: var(--sx-weight-medium); }
.sx-docsec__who { display: inline-flex; align-items: center; gap: var(--sx-space-1); font-size: var(--sx-size-label); color: var(--sx-muted); }
.sx-docsec__who svg { width: 14px; height: 14px; }
.sx-docsec__head > .sx-button { margin-left: auto; }
.sx-docsec__text { margin: 0; font-size: var(--sx-size-body); line-height: var(--sx-leading); color: var(--sx-text); max-width: 68ch; }
.sx-docsec__text--empty { color: var(--sx-muted); }
.sx-docsec__facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--sx-space-2) var(--sx-space-6); font-size: var(--sx-size-body); }
.sx-docsec__facts dt { color: var(--sx-text-2); font-size: var(--sx-size-ui); padding-top: 2px; }
.sx-docsec__facts dd { margin: 0; color: var(--sx-text); }
.sx-docsec__facts ul { margin: 0; padding-left: var(--sx-space-5); display: flex; flex-direction: column; gap: var(--sx-space-1); }
.sx-docsec__from { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sx-space-2); padding-top: var(--sx-space-3); border-top: 1px solid var(--sx-line);
  font-size: var(--sx-size-label); color: var(--sx-muted); }
.sx-docsec__src { display: inline-flex; align-items: center; gap: var(--sx-space-1); padding: 2px var(--sx-space-2); border-radius: var(--sx-radius-pill);
  background: var(--sx-selected); color: var(--sx-text-2); }
.sx-docsec__src svg { width: 12px; height: 12px; color: var(--sx-accent); }
.sx-docsec--you { box-shadow: 0 0 0 2px var(--sx-accent), var(--sx-shadow-card); }
.sx-docsec--open { box-shadow: 0 0 0 2px var(--sx-accent), var(--sx-shadow-card); }
.sx-docsec__ask { display: flex; gap: var(--sx-space-3); align-items: flex-start; padding: var(--sx-space-3) var(--sx-space-4);
  border-radius: var(--sx-radius-control); background: var(--sx-selected); font-size: var(--sx-size-ui); color: var(--sx-text); }
.sx-docsec__ask svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--sx-accent); }
/* A question worth confirming: outlined, not filled, so it never reads as one that must be answered */
.sx-docsec__ask--confirm { display: grid; grid-template-columns: 16px minmax(0, 1fr); row-gap: var(--sx-space-1);
  background: none; box-shadow: inset 0 0 0 1px var(--sx-line-box); color: var(--sx-text-2); }
.sx-docsec__ask--confirm > svg { color: var(--sx-text-2); }
/* Its action sits under the question's words, lined up with them */
.sx-docsec__ask--confirm > .sx-button { grid-column: 2; justify-self: start; }
@media (max-width: 767px) {
  .sx-docsec { padding: var(--sx-space-4); }
  .sx-docsec__facts { grid-template-columns: minmax(0, 1fr); gap: var(--sx-space-1); }
  .sx-docsec__facts dd + dt { margin-top: var(--sx-space-2); }
}

/* Before it can go */
.sx-ready { border-radius: var(--sx-radius-card); background: var(--sx-raised); box-shadow: var(--sx-shadow-card); display: flex; flex-direction: column; }
.sx-ready__head { padding: var(--sx-space-5) var(--sx-space-5) var(--sx-space-4); display: flex; flex-direction: column; gap: var(--sx-space-3); }
.sx-ready__title { margin: 0; font-size: var(--sx-size-title); font-weight: var(--sx-weight-medium); }
.sx-ready__score { display: flex; align-items: baseline; gap: var(--sx-space-2); }
.sx-ready__figure { font-size: var(--sx-size-display); line-height: var(--sx-leading-tight); font-weight: var(--sx-weight-light); color: var(--sx-text); font-variant-numeric: tabular-nums; }
.sx-ready__out { font-size: var(--sx-size-ui); color: var(--sx-text-2); }
.sx-ready__bar { height: 6px; border-radius: var(--sx-radius-pill); background: var(--sx-line); overflow: hidden; }
.sx-ready__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--sx-accent); }
.sx-ready__sum { margin: 0; font-size: var(--sx-size-ui); color: var(--sx-text); }
.sx-ready__group { border-top: 1px solid var(--sx-line); }
.sx-ready__group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--sx-space-2);
  min-height: 40px; padding: 0 var(--sx-space-5); font-size: var(--sx-size-ui); font-weight: var(--sx-weight-medium); color: var(--sx-text); }
.sx-ready__group > summary::-webkit-details-marker { display: none; }
.sx-ready__group > summary:focus-visible { outline: 2px solid var(--sx-focus); outline-offset: -2px; }
.sx-ready__group > summary .sx-caption { font-weight: var(--sx-weight-regular); }
.sx-ready__group > summary > svg { margin-left: auto; width: 16px; height: 16px; color: var(--sx-muted); transition: transform var(--sx-motion-fast) var(--sx-ease); }
.sx-ready__group[open] > summary > svg { transform: rotate(180deg); }
.sx-ready__list { list-style: none; margin: 0; padding: 0 var(--sx-space-3) var(--sx-space-3); display: flex; flex-direction: column; }
.sx-ready__item { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 2px var(--sx-space-3); padding: var(--sx-space-2);
  border-radius: var(--sx-radius-control); color: var(--sx-text); text-decoration: none; }
.sx-ready__item:hover { background: var(--sx-selected); }
.sx-ready__item:focus-visible { outline: 2px solid var(--sx-focus); outline-offset: -2px; }
.sx-ready__item .sx-secmark { margin-top: 2px; }
.sx-ready__sec { font-size: var(--sx-size-label); color: var(--sx-text-2); }
.sx-ready__what { grid-column: 2; font-size: var(--sx-size-ui); line-height: var(--sx-leading); }
.sx-ready__item--block .sx-ready__sec { color: var(--sx-danger); font-weight: var(--sx-weight-medium); }
.sx-ready__foot { border-top: 1px solid var(--sx-line); padding: var(--sx-space-4) var(--sx-space-5) var(--sx-space-5); display: flex; flex-direction: column; gap: var(--sx-space-3); }
.sx-ready__foot .sx-button--primary { justify-content: center; }
.sx-ready__why { margin: 0; font-size: var(--sx-size-label); color: var(--sx-text-2); }
.sx-ready--clear .sx-ready__head { background: var(--sx-selected); border-radius: var(--sx-radius-card) var(--sx-radius-card) 0 0; }

/* The record's head: title, what it is, its stage, and the stages it goes through */
.sx-dochead { padding: var(--sx-space-6); border-radius: var(--sx-radius-card); background: var(--sx-raised); box-shadow: var(--sx-shadow-card);
  display: flex; flex-direction: column; gap: var(--sx-space-5); }
.sx-dochead__top { display: flex; align-items: flex-start; gap: var(--sx-space-4); flex-wrap: wrap; }
.sx-dochead__words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--sx-space-2); }
.sx-dochead__meta { margin: 0; font-size: var(--sx-size-ui); color: var(--sx-text-2); }
.sx-dochead .sx-track { --sx-track-steps: 5; row-gap: 0; }
.sx-dochead .sx-track__step { grid-row: 1; }
@media (max-width: 767px) {
  .sx-dochead { padding: var(--sx-space-4); }
  .sx-dochead .sx-track__name { font-size: var(--sx-size-label); text-align: center; }
}
.sx-dochead__words > .sx-button { align-self: flex-start; }
.sx-docsec__need { display: inline-flex; align-items: center; gap: var(--sx-space-1); color: var(--sx-danger); font-size: var(--sx-size-ui); font-weight: var(--sx-weight-medium); }
.sx-docsec__need svg { width: 14px; height: 14px; }
@media (max-width: 767px) {
  .sx-dochead .sx-track__step:not(.sx-track__step--current) .sx-track__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sx-dochead .sx-track__step--current .sx-track__name { white-space: nowrap; }
}
/* The stages a record has passed take the product's colour, as progress does (specs/depth.md, kind 10). */
.sx-dochead .sx-track__step--done .sx-track__node { background: var(--sx-accent); color: var(--sx-primary-text); }
/* In the narrow column, options that mean different things stack, each whole. */
.sx-ready .sx-decide__options { grid-template-columns: minmax(0, 1fr); }
/* A choice made inside a section, set into it */
.sx-docsec__choose { display: flex; flex-direction: column; gap: var(--sx-space-3); padding: var(--sx-space-5); border-radius: var(--sx-radius-card); }
.sx-docsec__choose .sx-docsec__facts > span:nth-child(even) { display: flex; flex-direction: column; gap: var(--sx-space-2); }
/* While the aside is held on the screen, the panel fits the screen: its list scrolls inside it and the next step stays
   in view at its foot. */
@media (min-width: 1280px) {
  .sx-record__aside > .sx-ready { max-height: calc(100vh - var(--sx-header-height) - var(--sx-space-6) * 2); }
  .sx-record__aside > .sx-ready > .sx-ready__groups { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--sx-line); }
  .sx-record__aside > .sx-ready > .sx-ready__groups > .sx-ready__group:first-child { border-top: 0; }
  /* A list that runs on shows that it does (version 0.26.2, DEC-SYS-20261130-04): a soft shadow at an edge with more
     beyond it, gone once the list is scrolled to that edge. The two covers move with the list; the two shadows stay. */
  .sx-record__aside > .sx-ready > .sx-ready__groups {
    background:
      linear-gradient(var(--sx-raised) 50%, transparent) center top / 100% 40px no-repeat local,
      linear-gradient(transparent, var(--sx-raised) 50%) center bottom / 100% 40px no-repeat local,
      radial-gradient(farthest-side at 50% 0, var(--sx-scrim), transparent) center top / 100% 16px no-repeat scroll,
      radial-gradient(farthest-side at 50% 100%, var(--sx-scrim), transparent) center bottom / 100% 16px no-repeat scroll;
    background-color: var(--sx-raised);
  }
}
/* A list of records under the page's start box: its head, its filters, the table, the pages */
.sx-records { display: flex; flex-direction: column; gap: var(--sx-space-3); min-width: 0; }
.sx-records__head { display: flex; align-items: baseline; gap: var(--sx-space-3); flex-wrap: wrap; }

/* ---------------------------------------------------------------------------------------------------------------
   25. A page met before sign-in, and its short messages (version 0.26, with Briefing, DEC-BRIEF-20261130-02).
   The approved sign-in layout of round 4 (system/signal-osx/mockups/sign-in-r4-2026-11-20/; Tim, 19 and 20 November
   2026; specs/rulings.md, 7.1 and 7.2) as a part, so a product's own pages before sign-in (sign in, signed out, no
   access, unavailable) and the short pages a partner meets while connecting an assistant are drawn the same way:
   the product's panel on the left with its line and the brand's block artwork, never a product screen; the
   message on the right, with the lockup at the brand's smallest size. Under 768 pixels the panel is left out.
   --------------------------------------------------------------------------------------------------------------- */
.sx-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; background: var(--sx-bg); }
.sx-entry__panel { position: relative; overflow: hidden; color: #FFFFFF; padding: 64px 64px 0; display: flex; flex-direction: column;
  background: radial-gradient(900px 600px at 100% 0, color-mix(in srgb, var(--sx-p-deep-2) 85%, transparent), transparent 70%),
    linear-gradient(160deg, var(--sx-p-deep) 0, color-mix(in srgb, var(--sx-p-deep) 70%, #000000) 100%); }
.sx-entry__eyebrow { display: flex; align-items: center; gap: 10px; font-size: var(--sx-size-body); font-weight: 600; letter-spacing: .01em; color: var(--sx-pd-ink); }
.sx-entry__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--sx-pd-accent); }
.sx-entry__line { margin: 20px 0 0; font-size: 48px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; max-width: 512px; text-wrap: balance; }
.sx-entry__line:lang(th) { font-size: 44px; line-height: 1.35; letter-spacing: 0; font-weight: 600; }
/* The brand's block artwork: tiles that grow toward the Signal OSX tile at the panel's foot, in the product's colour */
.sx-entry__art { position: absolute; right: 64px; bottom: 72px; display: grid; grid-template-columns: repeat(6, 72px); grid-auto-rows: 72px; gap: 22px; align-items: end; justify-items: end; }
.sx-entry__art i { display: block; border-radius: 22%; background: color-mix(in srgb, var(--sx-pd-accent) var(--a, 20%), transparent); width: var(--s, 40%); height: var(--s, 40%); }
.sx-entry__art i.sx-entry__x { --s: 100%; grid-column: span 2; grid-row: span 2; width: 100%; height: 100%; background: #FFFFFF; border-radius: 18%;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; }
.sx-entry__x svg { width: 62%; height: auto; }
.sx-entry__side { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.sx-entry__box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: var(--sx-space-5); color: var(--sx-text); }
.sx-entry__box > .sx-lockup { --sx-logo-size: 32px; align-self: center; margin-bottom: var(--sx-space-3); }
.sx-entry__title { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; text-align: center; text-wrap: balance; }
.sx-entry__text { margin: 0; font-size: var(--sx-size-body); color: var(--sx-text-2); text-align: center; text-wrap: pretty; }
.sx-entry__box > .sx-button { height: 40px; justify-content: center; font-size: var(--sx-size-body); }
.sx-entry__mark { align-self: center; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--sx-p-tint-2); color: var(--sx-p-ink); }
.sx-entry__mark svg { width: 22px; height: 22px; }
.sx-entry__mark--problem { background: var(--sx-problem-tint); color: var(--sx-danger); }
.sx-entry__foot { margin: 0; font-size: var(--sx-size-label); color: var(--sx-muted); text-align: center; }
@media (max-width: 767px) { .sx-entry { grid-template-columns: minmax(0, 1fr); } .sx-entry__panel { display: none; } .sx-entry__side { padding: 48px 16px; } }
@media (min-width: 768px) and (max-width: 1279px) { .sx-entry__panel { padding: 48px 40px 0; } .sx-entry__line { font-size: 40px; } .sx-entry__art { right: 40px; bottom: 48px; grid-template-columns: repeat(6, 44px); grid-auto-rows: 44px; gap: 14px; } }
.sx-entry__x .sx-ink { fill: #12143A; }
.sx-entry__x .sx-lockup__accent { fill: #5A81FA; }
/* The lockup on a page met before sign-in keeps its words at every width (the header's phone rule is for the header) */
.sx-entry__box > .sx-lockup .sx-lockup__word { display: inline; }
/* A numbered step whose words run to two lines keeps its number beside them */
.sx-docsec__head--step { flex-wrap: nowrap; align-items: flex-start; min-height: 0; }
.sx-docsec__head--step > .sx-secmark { margin-top: 4px; }
.sx-docsec__head--step > .sx-docsec__name { min-width: 0; }
ol.sx-record__body, ul.sx-record__body { list-style: none; margin: 0; padding: 0; }
.sx-docsec .sx-say__words { min-width: 0; overflow-wrap: anywhere; }

/* ---------- 26. A page's own edge (version 0.26) ----------
   A page that sets its body as .sx starts at the window's edge, as every product's own pages do; the browser's
   own 8-pixel margin otherwise leaves a strip round the frame and makes a short page scroll by 16 pixels. */
html:has(> body.sx), body.sx { margin: 0; }

/* ---------- 27. A long list as compact cards on a phone (version 0.26) ----------
   A table of many records (.sx-table--cards.sx-table--compact) becomes short cards under 768 pixels: the row's name
   on its own line, its stage under it, then the other facts on one line that wraps, each with its label inline in the
   muted colour ("Version 2", "Updated 28 Nov, 10:13"). Twenty records then fit in about three phone screens, not eight.
   A cell marked .sx-td--line takes its own line (a stage); a cell marked .sx-td--wide-only is left out on a phone
   because another cell already says it (an "Acknowledged: Not issued" beside "Not issued"). */
@media (max-width: 767px) {
  .sx-table--compact tr { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--sx-space-4); row-gap: var(--sx-space-1); }
  .sx-table--compact td { padding: 0; }
  .sx-table--compact td:first-child, .sx-table--compact td.sx-td--line { flex-basis: 100%; }
  .sx-table--compact td.sx-td--wide-only { display: none; }
  .sx-table--compact td[data-label] { padding: 0; font-size: var(--sx-size-label); color: var(--sx-text); white-space: nowrap; }
  .sx-table--compact td[data-label]::before { content: attr(data-label) " "; content: attr(data-label) " " / ""; display: inline;
    margin: 0; color: var(--sx-muted); }
  .sx-table--compact td.sx-td--line[data-label]::before, .sx-table--compact td.sx-td--bare[data-label]::before { content: none; }
  /* The waiting row is marked as a whole card, not cell by cell, so no gap between its facts shows through. */
  body[data-sx-look] .sx-table--compact tr.sx-k-wait { background: var(--k-t1); box-shadow: inset 3px 0 0 var(--k-mark); }
  body[data-sx-look] .sx-table--compact tr.sx-k-wait > td { background: transparent; box-shadow: none; }
}

/* ---------- 28. An ad that plays: playing, paused and ended (version 0.25) ---------- */
/* Content Studio's change request 652, items A and E (30 November 2026), under Jason's standing permission. An animated
   ad or a video ad stops on its last frame, as it runs. Until 0.25 the only sign it had stopped was a button turning from
   Pause to Play, and a person could think it had frozen. One row under the ad says what it is doing, in words and in a
   bar per frame, and its one button reads Pause, Play or Play again. Nothing is drawn over the ad itself: the ad is the
   made file, checked and approved, and its last frame is the offer a person checks last.
   <div class="sx-adplay" data-state="playing | paused | ended | still">
     <button class="sx-button sx-button--quiet sx-adplay__press">(pause | play | rotate-cw icon)Pause | Play | Play again</button>
     <span class="sx-adplay__bars" aria-hidden="true"><i class="sx-adplay__bar--done"></i><i class="sx-adplay__bar--now"></i><i></i></span>
     <span class="sx-adplay__state" role="status">Playing · frame 2 of 3 | Paused · frame 2 of 3 | Ended on the offer · 7.5 s</span>
   </div> */
.sx-adplay { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sx-space-2) var(--sx-space-3); width: 100%; min-width: 0; }
.sx-adplay__press { flex: none; }
.sx-adplay__bars { flex: 1 1 96px; display: flex; gap: var(--sx-space-1); min-width: 96px; }
.sx-adplay__bars i { flex: 1; height: 4px; border-radius: 2px; background: var(--sx-line-box); overflow: hidden; }
.sx-adplay__bars i.sx-adplay__bar--done { background: var(--sx-accent); }
.sx-adplay__bars i.sx-adplay__bar--now { background: linear-gradient(to right, var(--sx-accent) var(--sx-adplay-part, 50%), var(--sx-line-box) 0); }
.sx-adplay__state { flex: 0 1 auto; font-size: var(--sx-size-label); color: var(--sx-text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sx-adplay[data-state="ended"] .sx-adplay__state { color: var(--sx-text); font-weight: var(--sx-weight-medium); }
/* On a phone the words take their own line under the button and the bars, so nothing is cut. */
@media (max-width: 767px) { .sx-adplay__state { flex-basis: 100%; white-space: normal; } }

/* ---------- 29. The step bar on a phone: the page's own step on a line of its own (version 0.25) ---------- */
/* Content Studio's change request 637 (and 652, item L). At 390 pixels a sixth of the track is about 46 pixels, and
   0.13.3 kept the page's own step name and state on one line inside it, so "Resize and make" and "In progress" ran over
   the steps beside them. From 0.25 every step's name and state inside the track is read by a screen reader only, and
   the page's own step is named on one line under the track, full width:
   <p class="sx-stepbar__now" aria-hidden="true"><span class="sx-stepbar__now-name">Resize and make</span>
     <span class="sx-stepbar__state">In progress</span></p>
   placed after the ol.sx-track. It is hidden from a screen reader, which reads the step's own link. From 768 pixels up
   it is not shown. */
.sx-stepbar__now { display: none; }
@media (max-width: 767px) {
  .sx-stepbar .sx-stepbar__here .sx-track__name, .sx-stepbar .sx-stepbar__here .sx-stepbar__state {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
  .sx-stepbar__now { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: baseline; gap: 0 var(--sx-space-2); margin: 0;
    font-size: var(--sx-size-ui); }
  .sx-stepbar__now-name { color: var(--sx-text); font-weight: var(--sx-weight-medium); }
}

/* ---------- 30. A device's screen that scrolls, and a feed on a laptop (version 0.25) ---------- */
/* Change request 652, items C and N. A device frame's screen has a fixed height and hides what runs past it. Where a
   look-alike is taller than its screen (a caption opened with "… more", a long post), the screen scrolls inside, as a
   feed does: add .sx-adframe__screen--scroll, with tabindex="0", role="region" and an aria-label naming the device, so it
   can be scrolled from the keyboard. On a laptop a feed is a column in the middle of the page: .sx-la-column holds the
   feed look-alike at 232 pixels, so a 4:5 post, the tallest feed ad, shows whole with who posted it and its button. */
.sx-adframe__screen--scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.sx-la-column { width: 232px; max-width: 100%; margin: 0 auto; }
