/* =====================================================================
   Help: styles for the public help pages for /help/ and /support/.
   Only the theme's own tokens and patterns: the quiet page head, the
   reading layout (.article, .prose), prose rows, email contact and the
   setup-steps illustration, plus what an article's corpus can ask for: On
   this page, callouts, prompts to try, tables, diagrams and drawn screens
   (docs/design/2026-10-24-help-center-visuals/). Nothing here is
   mockup-only (see mock.css).
   ===================================================================== */

/* ----- Help home: the head, its search and where to start ----- */

.help-head .lead { margin-top: 28px; }

.help-search { position: relative; max-width: 640px; margin-top: 40px; }

.help-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  translate: 0 -50%;
  color: var(--ink-muted);
  pointer-events: none;
}

.help-search input {
  display: block;
  width: 100%;
  min-height: 60px;
  padding: 14px 18px 14px 50px;
  /* The edge meets 3:1 against the page in both themes. */
  border: 1px solid color-mix(in srgb, var(--ink-muted) 80%, transparent);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink-strong);
  font-size: 18px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}

.help-search input::placeholder { color: var(--ink-muted); opacity: 1; }
.help-search input:hover { border-color: var(--ink); }
.help-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.help-search input::-webkit-search-cancel-button { display: none; }

/* Start here: six tasks, each with the articles that answer it. A task is a
   disclosure: always open on a computer, where its summary can't be
   clicked, and a row to tap open on a phone (help.js). Without the script
   every task stays open. */
.help-tasks-wrap { margin-top: 48px; }
.help-tasks-wrap > .mono { margin-bottom: 16px; }

.help-tasks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.help-task { border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.help-task details { height: 100%; padding: 24px 24px 14px; }

.help-task summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 16px;
  list-style: none;
}

.help-task summary::-webkit-details-marker { display: none; }

.help-task-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent);
}

.help-task-icon svg { width: 22px; height: 22px; }

.help-task h3 { padding-top: 2px; font: 420 23px/1.2 var(--font-serif); letter-spacing: -0.01em; }
.help-task-sub { display: block; margin-top: 6px; color: var(--ink-muted); font-size: 15.5px; line-height: 1.5; }

.help-task ul { margin-top: 16px; list-style: none; }
.help-task li { border-top: 1px solid var(--edge); }

.help-task li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 8px 0;
  color: var(--ink-strong);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.help-task li a::after { content: '\2192'; flex: none; color: var(--ink-muted); transition: transform .2s, color .2s; }
.help-task li a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.help-task li a:hover::after { color: var(--accent); transform: translateX(2px); }

@media (min-width: 641px) {
  .help-task summary { pointer-events: none; }
}

@media (max-width: 1040px) {
  .help-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .help-tasks-wrap { margin-top: 36px; }
  .help-tasks { grid-template-columns: 1fr; gap: 10px; }
  .help-task { border-radius: 18px; }
  .help-task details { padding: 0 16px; }
  /* The row keeps its height when it opens, so the icon and title stay put
     and the line under them takes a row of its own. */
  .help-task summary { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: minmax(68px, auto); align-items: center; cursor: pointer; }

  /* The chevron: down when closed, up when open. */
  .help-task summary::after {
    content: '';
    grid-column: 3;
    grid-row: 1;
    width: 8px;
    height: 8px;
    margin: 0 4px 4px 0;
    border-right: 2px solid var(--ink-muted);
    border-bottom: 2px solid var(--ink-muted);
    transform: rotate(45deg);
    transition: transform .2s;
  }

  .help-task details[open] summary::after { margin-bottom: -4px; transform: rotate(-135deg); }
  .help-task-icon { grid-row: 1; width: 40px; height: 40px; border-radius: 12px; }
  .help-task h3 { padding-top: 0; font-size: 20px; }
  .help-task-sub { display: none; grid-column: 1 / -1; margin: 0 0 2px; }
  .help-task details[open] .help-task-sub { display: block; }
  .help-task ul { margin-top: 8px; padding-bottom: 6px; }
}

/* ----- Help home: the sections, as prose rows ----- */

.help-index { padding-top: 0; }

/* The jump list: every section, one tap away. */
.help-jump { margin-bottom: 40px; }
.help-jump > .mono { margin-bottom: 6px; }
.help-jump ul { display: flex; flex-wrap: wrap; gap: 0 26px; list-style: none; }
.help-jump a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 15.5px; text-decoration: none; }
.help-jump a:hover { color: var(--ink-strong); text-decoration: underline; text-decoration-color: var(--accent); }

.help-sections { border-bottom: 1px solid var(--edge); }

.help-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 8px 72px;
  padding: 40px 0;
  border-top: 1px solid var(--edge);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.help-section h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.help-section-head .mono { margin-top: 12px; }

/* An article: its title, then its one-line summary, the whole row a link. */
.help-list { list-style: none; }
.help-list li + li { border-top: 1px solid var(--edge); }

.help-list a { display: block; padding: 16px 0; text-decoration: none; }
.help-list li:first-child a { padding-top: 4px; }
.help-list li:last-child a { padding-bottom: 0; }

.help-list b { color: var(--ink-strong); font-size: 17px; font-weight: 600; line-height: 1.4; }
.help-list a:hover b { text-decoration: underline; text-decoration-color: var(--accent); }
.help-list span:not(.tag) { display: block; max-width: 40em; margin-top: 4px; color: var(--ink-muted); font-size: 15.5px; line-height: 1.55; }
/* On the Help home a summary shows at most three lines. All of it stays in
   the page, so search (help.js reads the row's text) and screen readers
   still get it. */
.help-section .help-list span:not(.tag) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.help-list .tag { vertical-align: 2px; }

/* Search: no match. */
.help-none { padding: 40px 0; border-top: 1px solid var(--edge); color: var(--ink-muted); font-size: 17px; }
.help-none a { color: var(--ink-strong); text-decoration: underline; }

@media (max-width: 860px) {
  .help-search { margin-top: 32px; }
  .help-jump ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .help-section { grid-template-columns: 1fr; padding: 32px 0; }
  .help-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .help-section-head .mono { flex: none; margin-top: 0; }
  .help-list li:first-child a { padding-top: 10px; }
}

/* ----- An article: the post layout, with the way back to Help ----- */

/* Help / Section, above the title (a post's kicker). */
.help-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.help-crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: none; }
.help-crumb a:hover { text-decoration: underline; }
.article-head .help-crumb + h1 { margin-top: 8px; }

/* Which editions and computers a page covers: quiet, in the meta line. */
/* The dot trails an item, so a wrapped line never starts with one. */
.help-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.help-meta span:not(:last-child)::after { content: '·'; margin-left: 14px; color: var(--ink-muted); }

/* Related pages, then the way to a person. */
.help-related { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--edge); }
.help-related h2 { margin-bottom: 18px; font-size: clamp(26px, 2.6vw, 30px); line-height: 1.2; }

.help-stuck { margin-top: 48px; }
.help-stuck a { color: var(--ink-strong); text-decoration: underline; }

/* The setup steps rail, inside an article. */
.prose .illus-steps { padding-left: 28px; }
.prose .illus-steps li::marker { content: none; }
.prose .illus-steps li > strong { font-size: 17.5px; }
.prose .illus-steps span strong { display: inline; padding: 0; color: inherit; font-size: inherit; line-height: inherit; }

@media (max-width: 560px) {
  .prose .illus-steps { padding-left: 20px; }
}

/* An article opens on its first heading, straight under the meta line. */
.help-article .prose > h2:first-child { margin-top: 0; }

/* Its headings are anchors, for On this page and for links. */
.help-article .prose h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.help-article .prose > h2 .tag { vertical-align: 6px; }

/* ----- An article: On this page -----
   For articles with four or more sections. One list, two looks: at 1180px
   and wider it sits in the right margin beside the text and stays in view,
   and the text column doesn't move. Narrower, it's a card under the meta
   line that opens and closes. help.js keeps it open on wide screens, folds
   it after a tap on a phone, and marks the section you're reading. */

.help-toc { margin-top: 32px; }
.help-toc details { border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge-2); }

.help-toc summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.help-toc summary::-webkit-details-marker { display: none; }
.help-toc summary .mono { margin-left: auto; }

/* The chevron: down when closed, up when open. */
.help-toc summary::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin: 0 4px 4px 0;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg);
  transition: transform .2s;
}

.help-toc details[open] summary::after { margin-bottom: -4px; transform: rotate(-135deg); }
.help-toc ol { padding: 0 8px 8px; list-style: none; }
.help-toc li + li { border-top: 1px solid var(--edge); }

.help-toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.35;
  text-decoration: none;
}

.help-toc a:hover { color: var(--ink-strong); background: var(--accent-soft); }
.help-toc a .tag { margin-left: 8px; }

@media (min-width: 1180px) {
  .article > .help-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr);
    align-items: start;
    width: min(var(--wrap), 100% - 2 * var(--gutter));
  }

  .help-body > .prose { grid-column: 2; grid-row: 1; }

  .help-toc {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    grid-column: 3;
    grid-row: 1;
    max-height: calc(100vh - var(--header-h) - 80px);
    overflow-y: auto;
    margin: 44px 0 0 48px;
    padding-bottom: 8px;
  }

  .help-toc details { border-radius: 0; background: none; box-shadow: none; }
  .help-toc summary { min-height: 0; margin-bottom: 14px; padding: 0; pointer-events: none; }
  .help-toc summary::after, .help-toc summary .mono { display: none; }
  .help-toc-title { color: var(--ink-muted); font: 500 12.5px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
  .help-toc ol { padding: 0; border-left: 1px solid var(--edge-2); }
  .help-toc li + li { border-top: 0; }
  .help-toc a { min-height: 34px; margin-left: -1px; padding: 5px 0 5px 16px; border-left: 2px solid transparent; border-radius: 0; color: var(--ink-muted); font-size: 14.5px; }
  .help-toc a:hover { background: none; }
  .help-toc a[aria-current="location"] { border-left-color: var(--accent); color: var(--ink-strong); }
}

/* ----- An article: Tip, Important and Beta -----
   From a corpus paragraph that starts **Tip:**, **Important:** or **Beta:**.
   The build drops the prefix and sets the label; in the app's Help it stays
   a bold word. Tip takes the accent, Important the caution amber, and Beta
   is a dashed neutral panel. */

.prose .callout { padding: 18px 22px 20px; border-radius: 16px; font-size: 17px; line-height: 1.6; }
.prose .callout > * + * { margin-top: .5em; }
.callout-label { display: flex; align-items: center; gap: 8px; font: 500 12.5px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.callout-label svg { flex: none; width: 17px; height: 17px; }
.callout--tip { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent); }
.callout--tip .callout-label { color: color-mix(in srgb, var(--accent) 82%, var(--ink-strong)); }
.callout--important { background: var(--caution-soft); box-shadow: inset 0 0 0 1px var(--caution-edge); }
.callout--important .callout-label { color: var(--caution); }
.callout--beta { background: var(--surface-2); outline: 1px dashed var(--edge-2); outline-offset: -1px; }
.callout--beta .callout-label { color: var(--ink-strong); }

/* ----- An article: Try asking your assistant -----
   From a "## Try asking" section in the corpus: two or three prompts, set as
   the things you'd say in chat, each with Copy. Copy needs the script and a
   clipboard, so without either it isn't shown. */

.prose .help-ask { margin-top: 2.1em; padding: 24px 24px 22px; border-radius: 22px; background: var(--surface-2); box-shadow: var(--window-shadow); }
.help-ask-head { display: flex; align-items: center; gap: 14px; }
.help-ask-head .orb { --d: 34px; }
.prose .help-ask h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.help-ask-list { display: grid; gap: 10px; margin-top: 18px; list-style: none; }
.help-ask-list li { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

/* A prompt: your own chat bubble. */
.help-ask-list q {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: 16px 16px 6px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--ink-strong);
  font-size: 16px;
  line-height: 1.45;
  quotes: none;
}

.help-ask-copy {
  /* Shown once help.js has wired it to a working clipboard. */
  display: none;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink-muted);
}

.help-ask-copy:hover { background: var(--accent-soft); color: var(--ink-strong); }
.help-ask-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.help-ask-copy svg { width: 18px; height: 18px; }
.help-ask-copy[data-copied] { color: var(--accent); }
.help-ask-copy[data-ready] { display: grid; }
.prose .help-ask-note { margin-top: 14px; color: var(--ink-muted); font-size: 15px; line-height: 1.5; }

/* ----- An article: tables -----
   From GitHub-style tables in the corpus: rows with a heading cell. The
   paragraph straight after a table is its note. On a phone each row becomes
   a small block with its cells labelled, so nothing scrolls sideways. */

.prose .help-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.help-table th, .help-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--edge); text-align: left; vertical-align: top; }
.help-table thead th { padding-top: 0; border-bottom-color: var(--edge-2); color: var(--ink-muted); font: 500 12.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.help-table tbody th { color: var(--ink-strong); font-weight: 600; white-space: nowrap; }
.help-table td { color: var(--ink); }
.help-table td:last-child { width: 32%; }
.prose :is(.help-table-note, .help-table + p) { margin-top: .8em; color: var(--ink-muted); font-size: 16px; }

@media (max-width: 560px) {
  .help-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .help-table, .help-table tbody, .help-table tr, .help-table th, .help-table td { display: block; }
  .help-table tr { padding: 14px 0; border-bottom: 1px solid var(--edge); }
  .help-table th, .help-table td { padding: 0; border: 0; }
  .help-table tbody th { margin-bottom: 6px; font-size: 17px; }
  .help-table td + td { margin-top: 6px; }
  .help-table td:last-child { width: auto; }
  .help-table td::before { content: attr(data-label); display: block; color: var(--ink-muted); font: 500 11.5px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
}

/* ----- An article: diagrams -----
   help/figures/*.html, placed by <!-- figure: name --> in the corpus. Each
   is inline SVG drawn twice: a 680-unit drawing for the text column and a
   342-unit one for a phone. The figure picks by its own width, so text in
   the drawing stays between 12 and 17px at every size; the hidden one is
   display:none, so screen readers get one copy. Every colour is a theme
   token set through these classes, so the drawings follow Symphony and
   Daylight with the page. The article's text says the same in words. */

.help-figure { container-type: inline-size; }
.prose > .help-figure { margin-top: 1.6em; margin-bottom: 1.8em; }
.help-figure svg { display: block; width: 100%; height: auto; overflow: visible; }
.help-figure .dg-narrow { display: none; max-width: 440px; margin: 0 auto; }

@container (max-width: 639px) {
  .help-figure .dg-wide { display: none; }
  .help-figure .dg-narrow { display: block; }
}

.prose .help-figure figcaption { margin-top: 18px; color: var(--ink-muted); font-size: 15px; line-height: 1.5; text-align: center; text-wrap: balance; }
.help-figure figcaption a { color: var(--ink-strong); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 75%, transparent); }
.prose .help-figure .fan-key { justify-content: center; margin-top: 22px; text-align: left; }

/* Shapes */
.dg-box { fill: var(--surface); stroke: var(--edge-2); }
.dg-box--home { stroke: color-mix(in srgb, var(--accent) 50%, transparent); stroke-width: 1.5; }
.dg-box--sunk { fill: var(--surface-2); stroke: var(--edge); }
.dg-box--maybe { fill: none; stroke: var(--edge-2); stroke-dasharray: 5 5; }
.dg-box--ask { fill: var(--surface); stroke: var(--edge-2); }
.dg-box--fix { fill: var(--accent-soft); stroke: color-mix(in srgb, var(--accent) 35%, transparent); }
.dg-box--caution { fill: var(--caution-soft); stroke: var(--caution-edge); }
.dg-box--end { fill: var(--surface-2); stroke: var(--edge-2); }
.dg-rule { stroke: var(--edge); }
.dg-col { fill: var(--accent-soft); }
.dg-col-edge { fill: none; stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 1.5; }

/* Lines: solid accent for the usual way, quiet grey for less, dashed for
   only when you choose. */
.dg-link { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dg-link--quiet { stroke: var(--ink-muted); stroke-width: 1.5; }
.dg-link--maybe { stroke-dasharray: 2 6; }
.dg-link--alt { stroke: var(--ink-muted); stroke-width: 1.5; stroke-dasharray: 2 6; }
.dg-flow { fill: none; stroke: var(--edge-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Icons: the site's 24-unit line icons, at 1.8 stroke. */
.dg-icon { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dg-icon--ink { stroke: var(--ink-strong); }
.dg-icon--muted { stroke: var(--ink-muted); }
.dg-icon--caution { stroke: var(--caution); }
.dg-fill-accent { fill: var(--accent); }
.dg-fill-page { fill: var(--page); }
.dg-fill-muted { fill: var(--ink-muted); }

/* Type: the site's own three faces and sizes. */
.dg-label { font: 500 11.5px var(--font-mono); letter-spacing: .08em; fill: var(--ink-muted); }
.dg-label--accent { fill: color-mix(in srgb, var(--accent) 85%, var(--ink-strong)); }
.dg-label--caution { fill: var(--caution); }
.dg-title { font: 420 24px var(--font-serif); letter-spacing: -.01em; fill: var(--ink-strong); }
.dg-title--s { font-size: 20px; }
.dg-name { font: 600 15px var(--font-sans); fill: var(--ink-strong); }
.dg-text { font: 400 14px var(--font-sans); fill: var(--ink); }
.dg-text--s { font-size: 13.5px; }
.dg-muted { fill: var(--ink-muted); }
.dg-strong { fill: var(--ink-strong); font-weight: 600; }
/* A branch label takes its line's colour: accent on the way to a fix, grey on the way on. */
.dg-branch { font: 600 12.5px var(--font-sans); fill: var(--accent); }
.dg-branch--quiet { fill: var(--ink-muted); }
.dg-dot { fill: var(--accent); }

/* Marks: on its own, asks first, won't. */
.dg-mark-on { fill: var(--accent); }
.dg-mark-on-tick { fill: none; stroke: var(--accent-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dg-mark-ask { fill: var(--caution-soft); stroke: var(--caution); stroke-width: 1.5; }
.dg-mark-ask-q { font: 700 13px var(--font-sans); fill: var(--caution); }
.dg-mark-off { fill: none; stroke: var(--ink-muted); stroke-width: 1.5; }
.dg-mark-off-bar { stroke: var(--ink-muted); stroke-width: 1.8; stroke-linecap: round; }
.dg-cell { font: 500 12.5px var(--font-sans); fill: var(--ink); }
.dg-cell--off { fill: var(--ink-muted); }
.dg-meter { fill: var(--edge-2); }
.dg-meter--on { fill: var(--accent); }
.dg-band { fill: var(--surface-2); stroke: var(--edge); }

/* ----- An article: a drawn screen -----
   One of Symphony's own screens drawn in HTML in the theme's tokens, with
   demo data and numbered pins, beside its legend when the column is wide
   enough and under it otherwise. It follows both themes, reflows on a
   phone, and holds no personal data. The drawing is aria-hidden: the
   numbered legend is its text, and its numbers match the pins. */

.help-shot { container-type: inline-size; }
.prose > .help-shot { margin-top: 1.6em; margin-bottom: 1.8em; }
.help-shot-grid { display: grid; gap: 28px; }

@container (min-width: 640px) {
  .help-shot-grid { grid-template-columns: minmax(0, 392px) minmax(0, 1fr); align-items: center; gap: 36px; }
}

/* The stage: a quiet panel, like the chat it comes from, with room on the
   right for the pins. */
.shm { position: relative; padding: 20px 44px 22px 18px; border-radius: 22px; background: var(--surface-2); box-shadow: var(--window-shadow); color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.shm-who { color: var(--ink-muted); font-size: 13px; }
.shm-who b { margin-right: 6px; color: var(--accent); font-weight: 600; }
.shm-msg { margin-top: 4px; color: var(--ink-strong); }
.shm-waiting { display: flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--caution); font-size: 13.5px; font-weight: 600; }
.shm-waiting svg { width: 15px; height: 15px; }

/* The card, drawn after the app's purchase card. */
.shm-card { position: relative; margin-top: 8px; padding: 14px 14px 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge-2); }
.shm-head { position: relative; display: flex; gap: 10px; }
.shm-head h4 { flex: 1; color: var(--ink-strong); font-size: 15.5px; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.shm-head h4 span { color: var(--ink-muted); font-weight: 500; }
.shm-more { color: var(--ink-muted); font-weight: 700; letter-spacing: .1em; line-height: 1; }
.shm-summary { position: relative; margin-top: 4px; }

.shm-order { position: relative; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--page); box-shadow: inset 0 0 0 1px var(--edge); font-size: 12.5px; line-height: 1.5; }
.shm-order > p:first-child { margin-bottom: 4px; color: var(--ink-muted); font-weight: 600; letter-spacing: .02em; }
.shm-order p { display: flex; justify-content: space-between; gap: 12px; }
.shm-order p span:last-child { font-variant-numeric: tabular-nums; }
.shm-order .shm-total { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--edge); color: var(--ink-strong); font-weight: 600; }

.shm-rows { margin: 10px -14px 0; border-top: 1px solid var(--edge); list-style: none; }
.shm-rows li { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--edge); }
.shm-rows b { display: block; color: var(--ink-strong); font-weight: 600; }
.shm-rows b em { color: var(--ink-muted); font-style: normal; font-weight: 500; }
.shm-rows small { display: block; color: var(--ink-muted); font-size: 12px; line-height: 1.35; }
.shm-rows .shm-txt { flex: 1; min-width: 0; }
.shm-ico { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); color: var(--ink-muted); }
.shm-ico svg { width: 15px; height: 15px; }
/* A card's face: the accent darkened, with white type in both themes. */
.shm-face { display: grid; flex: none; place-items: end; width: 28px; height: 20px; padding: 0 3px 2px; border-radius: 4px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #000), color-mix(in srgb, var(--accent) 40%, #000)); color: #FFFFFF; font-size: 7px; font-weight: 700; letter-spacing: .04em; }
.shm-chg { color: var(--accent); font-size: 13px; font-weight: 600; }

.shm-actions { position: relative; display: flex; gap: 8px; margin-top: 12px; }
.shm-btn { display: grid; flex: 1; place-items: center; min-height: 38px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--edge-2); color: var(--ink-strong); font-size: 14px; font-weight: 600; }
.shm-btn--primary { flex: 1.4; background: var(--accent); box-shadow: none; color: var(--accent-ink); }
.shm-note { position: relative; margin-top: 10px; color: var(--ink-muted); font-size: 12.5px; line-height: 1.45; }

/* The pins, hung just outside the card's right edge. */
.shm-pin {
  position: absolute;
  right: -48px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--surface-2);
  color: var(--accent-ink);
  font: 600 12px/1 var(--font-mono);
}

.shm-head .shm-pin { top: 10px; }
.shm-rows .shm-pin { right: -34px; }

/* The legend: the same numbers, in words. */
.prose .shm-legend { padding: 0; font-size: 16px; line-height: 1.5; list-style: none; counter-reset: pin; }
.prose .shm-legend li { position: relative; padding-left: 38px; counter-increment: pin; }
.prose .shm-legend li + li { margin-top: 12px; }

.shm-legend li::before {
  content: counter(pin);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 12px/1 var(--font-mono);
}

.prose .help-shot figcaption { margin-top: 18px; color: var(--ink-muted); font-size: 15px; text-align: center; }

/* ----- Contact support: email and help ----- */

/* Email follows the head straight away, as the Help home's list does. */
.help-contact-part { padding: 0 0 var(--band); }

/* On a computer: email with the common fixes under it, and "ask your
   assistant" beside them. On a phone: the assistant first, then email, then
   the fixes. */
.help-contact {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(320px, 1fr);
  grid-template-rows: auto 1fr;
  gap: 44px 56px;
  align-items: start;
}

.help-contact-ask { grid-column: 2; grid-row: 1 / span 2; }
.help-contact-main { grid-column: 1; grid-row: 1; }
.help-contact-fixes { grid-column: 1; grid-row: 2; padding-top: 32px; border-top: 1px solid var(--edge); }

.help-contact-side h2 { font-size: clamp(24px, 2.2vw, 28px); line-height: 1.2; }
.help-contact-side p { margin-top: 12px; font-size: 16.5px; }
.help-contact-side .illus-chat { margin-top: 22px; }
.help-contact-side .chat { padding: 18px 18px 20px; }
.help-contact-side .msg { max-width: 92%; font-size: 15px; }
.help-contact-side h2 + .help-list { margin-top: 14px; }
.help-contact-side .help-list b { font-size: 16px; }

@media (max-width: 860px) {
  .help-contact { grid-template-columns: 1fr; grid-template-rows: none; gap: 40px; }
  .help-contact > * { grid-column: auto; grid-row: auto; }
  /* A crumb in a centred page head centres with it. */
  .page-head:not(.page-head--list) .help-crumb { justify-content: center; }
}

/* Keep linked headings clear of the sticky header. */
.help-contact [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
