/* SARMIS components (contracts/design.md sections 1 to 7). Built only on tokens.css.
   A screen links tokens.css, then this file. Every class starts with `s-`.
   Square corners, 1px lines, no shadow, no gradient. Only the orb moves on its own. */

/* --- base ------------------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }

html {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 100%;
  font-weight: var(--body-weight);
  line-height: var(--body-line);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body { margin: 0; font-size: var(--body-size); }

::selection { background: var(--ink); color: var(--ground); }

:focus-visible, .is-focus { outline: var(--focus) solid var(--ink); outline-offset: 2px; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: var(--line);
    text-underline-offset: 3px; }
a:hover { text-decoration-thickness: var(--focus); }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, pre { margin: 0; padding: 0; }

/* A date or time never breaks across lines ("dum 22" / "nov" reads as two things). */
time { white-space: nowrap; }
ul, ol { list-style: none; }

/* --- type roles ------------------------------------------------------------------------- */

.s-title { font: var(--title-weight) var(--title-size)/var(--title-line) var(--title-face);
           letter-spacing: var(--title-tracking); }
.s-name { font: var(--name-weight) var(--name-size)/var(--name-line) var(--name-face);
          letter-spacing: var(--name-tracking); }
.s-body { font: var(--body-weight) var(--body-size)/var(--body-line) var(--body-face); }
.s-data { font: var(--data-weight) var(--data-size)/var(--data-line) var(--data-face);
          font-variant-numeric: var(--data-numeric); }
.s-label { font: var(--label-weight) var(--label-size)/var(--label-line) var(--label-face);
           font-variant-numeric: var(--label-numeric); }
.s-num { font-variant-numeric: tabular-nums; }
/* .s-dim, .s-faint, .s-signal are at the end of this file, so they win over a component's colour. */

/* --- the line language: a 16px key at the start of a row ------------------------------ */

.s-key {
  display: inline-block;
  flex: none;
  width: 16px;
  height: var(--line);
  background: var(--line-solid);
  vertical-align: middle;
}
.s-key--dotted, .s-leader {
  background: var(--line-dotted);
  -webkit-mask: url("dot.svg") repeat-x left center / 4px 1px;
  mask: url("dot.svg") repeat-x left center / 4px 1px;
}
.s-key--faint { background: var(--line-faint); }
.s-key--signal { background: var(--line-signal); }

/* A row that carries a line state: key, then content; the key sits on the first line. */
.s-row { display: grid; grid-template-columns: 16px 1fr; column-gap: var(--s3); }
.s-row > .s-key { margin-top: calc(var(--body-line) / 2); }
.s-row--unconfirmed .s-row__text { color: var(--dim); }
.s-row--past .s-row__text { color: var(--dim); }
.s-row__meta { font: var(--label-weight) var(--label-size)/var(--label-line) var(--label-face); font-variant-numeric: var(--label-numeric);
               color: var(--dim); }

/* --- buttons: words in the data style; ink block, hairline outline, signal ------------- */

.s-button {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: var(--touch);
  padding: 0 var(--s4);
  border: var(--line) solid var(--dim);
  background: transparent;
  color: var(--ink);
  font: var(--button-weight) var(--data-size)/var(--data-line) var(--data-face); font-variant-numeric: var(--data-numeric);
  cursor: pointer;
  transition: opacity var(--t-state) var(--ease), background-color var(--t-state) var(--ease);
  max-width: 100%;
  text-align: left; /* wraps only when it cannot fit (large text, a narrow phone) */
}
.s-button--primary { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.s-button--urgent { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.s-button:hover, .s-button.is-hover { text-decoration: underline; text-underline-offset: 3px; }
.s-button:not(.s-button--primary):not(.s-button--urgent):hover,
.s-button:not(.s-button--primary):not(.s-button--urgent).is-hover { border-color: var(--ink); }
.s-button:active, .s-button.is-active { opacity: 0.72; }
.s-button:disabled, .s-button.is-disabled {
  background: transparent; border-color: var(--faint); color: var(--faint);
  cursor: not-allowed; text-decoration: none; opacity: 1;
}
@media (pointer: coarse) { .s-button { min-height: var(--touch-coarse); } }

.s-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* A choice of one: the chosen word is inverted. */
.s-choice { display: inline-flex; border: var(--line) solid var(--dim); }
.s-choice > button {
  border: 0; border-right: var(--line) solid var(--dim); background: transparent;
  color: var(--ink); font: var(--label-weight) var(--label-size)/var(--label-line) var(--label-face); font-variant-numeric: var(--label-numeric);
  padding: var(--s1) var(--s3); min-height: 28px; cursor: pointer;
}
.s-choice > button:last-child { border-right: 0; }
.s-choice > button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }

/* --- input ------------------------------------------------------------------------------ */

.s-field { display: grid; gap: var(--s1); }
.s-field__label { font: var(--label-weight) var(--label-size)/var(--label-line) var(--label-face); font-variant-numeric: var(--label-numeric);
                  color: var(--dim); }
.s-input {
  width: 100%;
  min-height: 40px;
  padding: var(--s2) var(--s3);
  border: var(--line) solid var(--dim);
  background: var(--sheet);
  color: var(--ink);
  font: var(--body-weight) var(--body-size)/var(--body-line) var(--sans);
}
.s-input::placeholder { color: var(--dim); opacity: 1; }
.s-input:focus-visible, .s-input.is-focus { outline: var(--focus) solid var(--ink); outline-offset: 0; }
.s-input[aria-invalid="true"] { border-color: var(--signal); }
.s-input:disabled { border-color: var(--faint); color: var(--faint); cursor: not-allowed; }
.s-field__note { font: var(--label-weight) var(--label-size)/var(--label-line) var(--label-face); font-variant-numeric: var(--label-numeric);
                 color: var(--dim); }
.s-field__note--signal { color: var(--signal); }

/* --- sheet: a separate object ---------------------------------------------------------- */

.s-sheet { background: var(--sheet); border: var(--line) solid var(--rule); padding: var(--s4); }

/* --- facts with dotted leaders: label ....... value (values on one left edge) ---------- */

.s-facts { display: grid; grid-template-columns: minmax(0, 168px) minmax(0, 1fr); column-gap: var(--s2);
           row-gap: var(--s1); }
.s-facts > dt { display: flex; align-items: baseline; gap: var(--s2); min-width: 0;
                font: var(--label-weight) var(--label-size)/var(--body-line) var(--label-face); font-variant-numeric: var(--label-numeric); color: var(--dim); }
.s-facts > dt > span { flex: none; max-width: 100%; overflow-wrap: anywhere; }
.s-leader { flex: 1 1 auto; min-width: var(--s4); height: var(--line); margin-bottom: 4px;
            align-self: baseline; }
.s-facts > dd { min-width: 0; overflow-wrap: anywhere; }
.s-facts > dd.is-unconfirmed { color: var(--dim); }
.s-facts > dd.is-past { color: var(--dim); }
.s-facts .s-key { margin-right: var(--s2); }
.s-facts__state { font: var(--label-weight) var(--label-size)/var(--label-line) var(--label-face); font-variant-numeric: var(--label-numeric);
                  color: var(--dim); }

/* --- quote: a solid line at its left, the words, then who, to whom, when, where --------- */

.s-quote { background: var(--sheet); border-left: var(--quote) solid var(--ink);
           padding: var(--s3) var(--s4); display: grid; gap: var(--s2); }
.s-quote__words { font: var(--body-weight) var(--body-size)/var(--body-line) var(--sans); }
.s-quote__who { font: var(--label-weight) var(--label-size)/var(--label-line) var(--label-face); font-variant-numeric: var(--label-numeric);
                color: var(--dim); }

/* --- the date column -------------------------------------------------------------------- */

/* The date column holds the widest date with room ("dum 18 mar" is 5.7 em in the data style,
   design/fonts/metrics.json), never less than 112px, and grows with large text. The time column
   holds "14:00" (2.7 em). A narrow screen may set --date-col to
   max(88px, calc(var(--data-size) * 6.6)). */
:root { --date-col: max(var(--date-col-min), calc(var(--data-size) * 7.2));
        --time-col: max(48px, calc(var(--data-size) * 3.6)); }
.s-dated { display: grid; grid-template-columns: var(--date-col) minmax(0, 1fr); column-gap: var(--s4); }
.s-dated > .s-date { font: var(--data-weight) var(--data-size)/var(--body-line) var(--data-face); font-variant-numeric: var(--data-numeric);
                     font-variant-numeric: tabular-nums; }
.s-dated + .s-dated { border-top: var(--line) solid var(--rule); }
.s-dated { padding: var(--s3) 0; }
.s-date--signal { color: var(--signal); }
.s-date__second { display: block; color: var(--dim); }

.s-timeline__day { display: grid; grid-template-columns: var(--date-col) minmax(0, 1fr); column-gap: var(--s4);
                   padding: var(--s3) 0; border-top: var(--line) solid var(--rule); }
.s-timeline__day:first-child { border-top: 0; }
.s-timeline__items { display: grid; gap: var(--s2); }
.s-timeline__item { display: grid; grid-template-columns: var(--time-col) minmax(0, 1fr); column-gap: var(--s3); }
.s-time { font: var(--data-weight) var(--data-size)/var(--body-line) var(--data-face); font-variant-numeric: var(--data-numeric); color: var(--dim);
          font-variant-numeric: tabular-nums; }

/* --- the live line: orb 20, then the words of the newest step --------------------------- */

.s-live { display: flex; align-items: center; gap: var(--s2); min-height: 20px;
          font: var(--data-weight) var(--data-size)/var(--data-line) var(--data-face); font-variant-numeric: var(--data-numeric); }
.s-live > sarmis-orb { flex: none; }
.s-live__words { min-width: 0; overflow-wrap: anywhere; }
.s-live__mark { color: var(--dim); }
.s-live__mark--signal { color: var(--signal); }
.s-chat { background: var(--sheet); border: var(--line) solid var(--rule); padding: var(--s2) var(--s3);
          font: var(--data-weight) var(--data-size)/var(--data-line) var(--data-face); font-variant-numeric: var(--data-numeric);
          white-space: pre-wrap; overflow-wrap: anywhere; }

/* --- messages in a conversation, an answer, its sources --------------------------------- */

.s-message { display: grid; gap: var(--s1); }
.s-message__who { font: var(--label-weight) var(--label-size)/var(--label-line) var(--label-face); font-variant-numeric: var(--label-numeric);
                  color: var(--dim); }
.s-cite { font: var(--label-weight) var(--label-size)/1 var(--label-face); font-variant-numeric: var(--label-numeric); color: var(--dim);
          vertical-align: 1px; }
.s-sources { display: grid; gap: var(--s1); }
.s-sources > li { display: grid; grid-template-columns: 24px minmax(0, 1fr);
                  font: var(--label-weight) var(--label-size)/var(--body-line) var(--label-face); font-variant-numeric: var(--label-numeric); }
.s-sources > li > span:first-child { color: var(--dim); }
.s-footer-line { font: var(--label-weight) var(--label-size)/var(--label-line) var(--label-face); font-variant-numeric: var(--label-numeric);
                 color: var(--dim); }

/* --- approval ----------------------------------------------------------------------------- */

.s-approval { display: grid; gap: var(--s4); }
.s-approval__head { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3);
                    font: var(--label-weight) var(--label-size)/var(--label-line) var(--label-face); font-variant-numeric: var(--label-numeric); }
.s-approval__body { border-top: var(--line) solid var(--rule); padding-top: var(--s4);
                    white-space: pre-wrap; overflow-wrap: anywhere; }

/* --- states: empty, loading, error, offline, stale --------------------------------------- */

.s-state { display: grid; gap: var(--s2); align-content: start; }
.s-state__line { display: flex; align-items: baseline; gap: var(--s2);
                 font: var(--data-weight) var(--data-size)/var(--data-line) var(--data-face); font-variant-numeric: var(--data-numeric); }
.s-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3);
            padding: var(--s2) 0; border-top: var(--line) solid var(--rule);
            border-bottom: var(--line) solid var(--rule);
            font: var(--label-weight) var(--label-size)/var(--label-line) var(--label-face); font-variant-numeric: var(--label-numeric); }

/* --- long content ------------------------------------------------------------------------- */

.s-wrap { overflow-wrap: anywhere; }
.s-more { font: var(--label-weight) var(--label-size)/var(--label-line) var(--label-face); font-variant-numeric: var(--label-numeric); }

/* --- graph: shapes in ink, lines in the four styles --------------------------------------- */

.s-graph { display: block; width: 100%; height: auto; }
.s-graph .g-node { fill: var(--ink); }
.s-graph .g-node--hollow { fill: var(--ground); stroke: var(--ink); }   /* its width: the <marks> block */
.s-graph .g-ring { fill: none; stroke: var(--ink); stroke-width: 1; }
.s-graph .g-line { stroke-width: 1; fill: none; }
.s-graph .g-line--solid { stroke: var(--line-solid); }
.s-graph .g-line--dotted { stroke: var(--line-dotted); stroke-dasharray: var(--dash); }
.s-graph .g-line--faint { stroke: var(--line-faint); }
.s-graph .g-line--signal { stroke: var(--line-signal); }
.s-graph text { font: var(--label-weight) 12px var(--label-face); font-variant-numeric: var(--label-numeric); fill: var(--ink);
                paint-order: stroke; stroke: var(--ground); stroke-width: 4px; stroke-linejoin: miter; }
.s-graph text.g-dim { fill: var(--dim); }
.s-graph text.g-signal { fill: var(--signal); }
.s-graph .g-name { font: 500 13px var(--sans); }

/* --- marks (section 10): generated ------------------------------------------------------ */

/* <marks> Generated by design/tools/generate.mjs from design/marks.json (contracts/design.md section 10). Do not edit between this line and </marks>. */
/* A mark is an empty element beside its word, aria-hidden. Its shape is a same-origin mask and
   its colour a role, so the theme changes it with no code. 16 px beside label text, --20 for 20 px. */
.s-mark, .s-ic { position: relative; display: inline-block; flex: none; width: 16px; height: 16px; vertical-align: middle; margin-right: var(--s1); }
.s-mark--20, .s-ic--20 { width: 20px; height: 20px; }
.s-mark::before, .s-mark::after, .s-ic::before { content: ""; position: absolute; inset: 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.s-mark::after { content: none; }
/* inline, before its word: on the middle of the x-height, then 4 px. At the start of a row (a flex or grid item):
   .s-lead puts it on the middle of the row's first line instead. */
.s-lead { align-self: flex-start; margin-top: calc((1lh - 16px) / 2); margin-right: 0; }
.s-mark--20.s-lead, .s-ic--20.s-lead { margin-top: calc((1lh - 20px) / 2); }
.s-mark--done::before { background: var(--ink); -webkit-mask-image: url("marks/done-16.svg"); mask-image: url("marks/done-16.svg"); }
.s-mark--20.s-mark--done::before { -webkit-mask-image: url("marks/done-20.svg"); mask-image: url("marks/done-20.svg"); }
.s-mark--empty::before { background: var(--dim); -webkit-mask-image: url("marks/empty-16.svg"); mask-image: url("marks/empty-16.svg"); }
.s-mark--20.s-mark--empty::before { -webkit-mask-image: url("marks/empty-20.svg"); mask-image: url("marks/empty-20.svg"); }
.s-step--empty .s-step__state { color: var(--dim); }
.s-mark--failed::before { background: var(--signal); -webkit-mask-image: url("marks/failed-16.svg"); mask-image: url("marks/failed-16.svg"); }
.s-mark--20.s-mark--failed::before { -webkit-mask-image: url("marks/failed-20.svg"); mask-image: url("marks/failed-20.svg"); }
.s-step--failed .s-step__state { color: var(--signal); }
.s-mark--refused::before { background: var(--signal); -webkit-mask-image: url("marks/refused-16.svg"); mask-image: url("marks/refused-16.svg"); }
.s-mark--20.s-mark--refused::before { -webkit-mask-image: url("marks/refused-20.svg"); mask-image: url("marks/refused-20.svg"); }
.s-step--refused .s-step__state { color: var(--signal); }
.s-mark--waiting::before { background: var(--dim); -webkit-mask-image: url("marks/waiting-16.svg"); mask-image: url("marks/waiting-16.svg"); }
.s-mark--20.s-mark--waiting::before { -webkit-mask-image: url("marks/waiting-20.svg"); mask-image: url("marks/waiting-20.svg"); }
.s-step--waiting .s-step__state { color: var(--dim); }
.s-mark--approval::before { background: var(--signal); -webkit-mask-image: url("marks/approval-16.svg"); mask-image: url("marks/approval-16.svg"); }
.s-mark--20.s-mark--approval::before { -webkit-mask-image: url("marks/approval-20.svg"); mask-image: url("marks/approval-20.svg"); }
.s-step--approval .s-step__state { color: var(--signal); }
.s-mark--running::before { background: var(--ink); -webkit-mask-image: url("marks/running-16.svg"); mask-image: url("marks/running-16.svg"); }
.s-mark--running::after { content: ""; background: var(--faint); -webkit-mask-image: url("marks/running-16-ghost.svg"); mask-image: url("marks/running-16-ghost.svg"); }
.s-mark--20.s-mark--running::before { -webkit-mask-image: url("marks/running-20.svg"); mask-image: url("marks/running-20.svg"); }
.s-mark--20.s-mark--running::after { -webkit-mask-image: url("marks/running-20-ghost.svg"); mask-image: url("marks/running-20-ghost.svg"); }
.s-mark--planned::before { background: var(--faint); -webkit-mask-image: url("marks/planned-16-ghost.svg"); mask-image: url("marks/planned-16-ghost.svg"); }
.s-mark--20.s-mark--planned::before { -webkit-mask-image: url("marks/planned-20-ghost.svg"); mask-image: url("marks/planned-20-ghost.svg"); }
.s-step--planned .s-step__words { color: var(--dim); }
/* the record of a run: one step per line, its mark on the middle of the label line */
.s-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.s-step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s2); align-items: start;
  font: var(--label-weight) var(--label-size)/var(--label-line) var(--label-face); font-variant-numeric: var(--label-numeric); }
/* icons of objects: in the colour of the word beside them */
.s-ic::before { background: currentColor; }
.s-ic--add::before { -webkit-mask-image: url("icons/add.svg"); mask-image: url("icons/add.svg"); }
.s-ic--archive::before { -webkit-mask-image: url("icons/archive.svg"); mask-image: url("icons/archive.svg"); }
.s-ic--arrow--up::before { -webkit-mask-image: url("icons/arrow--up.svg"); mask-image: url("icons/arrow--up.svg"); }
.s-ic--attachment::before { -webkit-mask-image: url("icons/attachment.svg"); mask-image: url("icons/attachment.svg"); }
.s-ic--building::before { -webkit-mask-image: url("icons/building.svg"); mask-image: url("icons/building.svg"); }
.s-ic--calendar::before { -webkit-mask-image: url("icons/calendar.svg"); mask-image: url("icons/calendar.svg"); }
.s-ic--chat::before { -webkit-mask-image: url("icons/chat.svg"); mask-image: url("icons/chat.svg"); }
.s-ic--checkmark::before { -webkit-mask-image: url("icons/checkmark.svg"); mask-image: url("icons/checkmark.svg"); }
.s-ic--checkmark--outline::before { -webkit-mask-image: url("icons/checkmark--outline.svg"); mask-image: url("icons/checkmark--outline.svg"); }
.s-ic--chevron--down::before { -webkit-mask-image: url("icons/chevron--down.svg"); mask-image: url("icons/chevron--down.svg"); }
.s-ic--circle-dash::before { -webkit-mask-image: url("icons/circle-dash.svg"); mask-image: url("icons/circle-dash.svg"); }
.s-ic--close::before { -webkit-mask-image: url("icons/close.svg"); mask-image: url("icons/close.svg"); }
.s-ic--close--outline::before { -webkit-mask-image: url("icons/close--outline.svg"); mask-image: url("icons/close--outline.svg"); }
.s-ic--cloud--offline::before { -webkit-mask-image: url("icons/cloud--offline.svg"); mask-image: url("icons/cloud--offline.svg"); }
.s-ic--document::before { -webkit-mask-image: url("icons/document.svg"); mask-image: url("icons/document.svg"); }
.s-ic--earth::before { -webkit-mask-image: url("icons/earth.svg"); mask-image: url("icons/earth.svg"); }
.s-ic--edit::before { -webkit-mask-image: url("icons/edit.svg"); mask-image: url("icons/edit.svg"); }
.s-ic--email::before { -webkit-mask-image: url("icons/email.svg"); mask-image: url("icons/email.svg"); }
.s-ic--error--outline::before { -webkit-mask-image: url("icons/error--outline-16.svg"); mask-image: url("icons/error--outline-16.svg"); }
.s-ic--20.s-ic--error--outline::before { -webkit-mask-image: url("icons/error--outline.svg"); mask-image: url("icons/error--outline.svg"); }
.s-ic--events::before { -webkit-mask-image: url("icons/events.svg"); mask-image: url("icons/events.svg"); }
.s-ic--hourglass::before { -webkit-mask-image: url("icons/hourglass.svg"); mask-image: url("icons/hourglass.svg"); }
.s-ic--laptop::before { -webkit-mask-image: url("icons/laptop.svg"); mask-image: url("icons/laptop.svg"); }
.s-ic--launch::before { -webkit-mask-image: url("icons/launch-16.svg"); mask-image: url("icons/launch-16.svg"); }
.s-ic--20.s-ic--launch::before { -webkit-mask-image: url("icons/launch.svg"); mask-image: url("icons/launch.svg"); }
.s-ic--link::before { -webkit-mask-image: url("icons/link.svg"); mask-image: url("icons/link.svg"); }
.s-ic--location::before { -webkit-mask-image: url("icons/location.svg"); mask-image: url("icons/location.svg"); }
.s-ic--locked::before { -webkit-mask-image: url("icons/locked.svg"); mask-image: url("icons/locked.svg"); }
.s-ic--microphone::before { -webkit-mask-image: url("icons/microphone.svg"); mask-image: url("icons/microphone.svg"); }
.s-ic--mobile::before { -webkit-mask-image: url("icons/mobile.svg"); mask-image: url("icons/mobile.svg"); }
.s-ic--notebook::before { -webkit-mask-image: url("icons/notebook.svg"); mask-image: url("icons/notebook.svg"); }
.s-ic--notification::before { -webkit-mask-image: url("icons/notification-16.svg"); mask-image: url("icons/notification-16.svg"); }
.s-ic--20.s-ic--notification::before { -webkit-mask-image: url("icons/notification.svg"); mask-image: url("icons/notification.svg"); }
.s-ic--overflow-menu--horizontal::before { -webkit-mask-image: url("icons/overflow-menu--horizontal.svg"); mask-image: url("icons/overflow-menu--horizontal.svg"); }
.s-ic--phone::before { -webkit-mask-image: url("icons/phone.svg"); mask-image: url("icons/phone.svg"); }
.s-ic--power::before { -webkit-mask-image: url("icons/power.svg"); mask-image: url("icons/power.svg"); }
.s-ic--receipt::before { -webkit-mask-image: url("icons/receipt.svg"); mask-image: url("icons/receipt.svg"); }
.s-ic--renew::before { -webkit-mask-image: url("icons/renew.svg"); mask-image: url("icons/renew.svg"); }
.s-ic--search::before { -webkit-mask-image: url("icons/search-16.svg"); mask-image: url("icons/search-16.svg"); }
.s-ic--20.s-ic--search::before { -webkit-mask-image: url("icons/search.svg"); mask-image: url("icons/search.svg"); }
.s-ic--settings::before { -webkit-mask-image: url("icons/settings-16.svg"); mask-image: url("icons/settings-16.svg"); }
.s-ic--20.s-ic--settings::before { -webkit-mask-image: url("icons/settings.svg"); mask-image: url("icons/settings.svg"); }
.s-ic--stop--filled::before { -webkit-mask-image: url("icons/stop--filled.svg"); mask-image: url("icons/stop--filled.svg"); }
.s-ic--task::before { -webkit-mask-image: url("icons/task.svg"); mask-image: url("icons/task.svg"); }
.s-ic--time::before { -webkit-mask-image: url("icons/time.svg"); mask-image: url("icons/time.svg"); }
.s-ic--trash-can::before { -webkit-mask-image: url("icons/trash-can.svg"); mask-image: url("icons/trash-can.svg"); }
.s-ic--undo::before { -webkit-mask-image: url("icons/undo.svg"); mask-image: url("icons/undo.svg"); }
.s-ic--user::before { -webkit-mask-image: url("icons/user-16.svg"); mask-image: url("icons/user-16.svg"); }
.s-ic--20.s-ic--user::before { -webkit-mask-image: url("icons/user.svg"); mask-image: url("icons/user.svg"); }
.s-ic--view::before { -webkit-mask-image: url("icons/view-16.svg"); mask-image: url("icons/view-16.svg"); }
.s-ic--20.s-ic--view::before { -webkit-mask-image: url("icons/view.svg"); mask-image: url("icons/view.svg"); }
.s-ic--voice-activate::before { -webkit-mask-image: url("icons/voice-activate.svg"); mask-image: url("icons/voice-activate.svg"); }
.s-ic--wallet::before { -webkit-mask-image: url("icons/wallet.svg"); mask-image: url("icons/wallet.svg"); }
.s-ic--warning::before { -webkit-mask-image: url("icons/warning-16.svg"); mask-image: url("icons/warning-16.svg"); }
.s-ic--20.s-ic--warning::before { -webkit-mask-image: url("icons/warning.svg"); mask-image: url("icons/warning.svg"); }
.s-ic--warning--alt::before { -webkit-mask-image: url("icons/warning--alt-16.svg"); mask-image: url("icons/warning--alt-16.svg"); }
.s-ic--20.s-ic--warning--alt::before { -webkit-mask-image: url("icons/warning--alt.svg"); mask-image: url("icons/warning--alt.svg"); }
/* an icon and its word kept on one line: a line never ends with an icon whose word went to the next */
.s-with { white-space: nowrap; }
.s-ic-use { display: inline-block; flex: none; width: 16px; height: 16px; vertical-align: middle; margin-right: var(--s1); fill: currentColor; }
/* the separator: the typed text stays in the page for copying and screen readers, at no size; the box
   draws a 2 px dot in the colour of the text, 6 px of space each side, on the middle of the x-height.
   An inline box that does not wrap inside, so no line starts with a dot; the zero-width space after it, which is not
   copied, lets the line break after it. */
.s-sep { display: inline; font-size: 0; line-height: 0; white-space: nowrap; vertical-align: middle;
  padding: 1px 7px; background: currentColor;
  -webkit-mask: url("marks/sep.svg") no-repeat center / 2px 2px; mask: url("marks/sep.svg") no-repeat center / 2px 2px; }
.s-sep::after { content: "\200B"; }
/* the list marker: a 4 px square on the middle of the x-height of the first line, then 8 px; dim when nested */
.s-list, .s-list ul { list-style: none; margin: 0; padding: 0; }
.s-list { display: grid; gap: var(--s1); }
.s-list ul { display: grid; gap: var(--s1); margin-top: var(--s1); }
.s-list li { padding-left: 12px; text-indent: -12px; }
.s-list li * { text-indent: 0; }
.s-list li li { text-indent: -12px; }
.s-list li::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 8px; vertical-align: middle; background: var(--ink); }
.s-list li li::before { background: var(--dim); }
/* numbered steps: the number in dim, then 8 px, no point */
.s-num-step { color: var(--dim); margin-right: 8px; font-variant-numeric: tabular-nums; }
/* the meters: one cell of the 4 px lattice each, beside the count in words */
.s-cell { display: block; width: 4px; height: 4px; -webkit-mask-image: url("marks/cell-lit.svg"); mask-image: url("marks/cell-lit.svg"); }
.s-dotbar { display: inline-flex; vertical-align: middle; margin-right: var(--s2); }
.s-dotbar > .s-cell { background: var(--faint); }
.s-dotbar > .s-cell--on { background: var(--ink); }
.s-waffle { display: inline-grid; grid-template-columns: repeat(10, 4px); vertical-align: top; flex: none; }
.s-waffle--large { grid-template-columns: repeat(20, 4px); }
.s-waffle > .s-cell--true { background: var(--ink); }
.s-waffle > .s-cell--unconfirmed { background: var(--dim); -webkit-mask-image: url("marks/cell-small.svg"); mask-image: url("marks/cell-small.svg"); }
.s-waffle > .s-cell--past { background: var(--faint); }
/* the graph's two extra nodes (10.4), on circles with pathLength="1": 12 and 12 dots of zero-length dashes */
.s-graph .g-node--hollow { stroke-width: 1; }
.g-chosen { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0 0.083333; }
.g-mention { fill: none; stroke: var(--dim); stroke-width: 1.25; stroke-linecap: round; stroke-dasharray: 0 0.083333; }
/* </marks> */

/* --- screen readers only ------------------------------------------------------------------ */

.s-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
        white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; }
}

/* --- colour of words: last, so it wins ---------------------------------------------------- */

.s-dim { color: var(--dim); }
.s-faint { color: var(--faint); }
.s-signal { color: var(--signal); }
