/* The Help Center (help.html and help/*.html, built by scripts/build-help-pages.mjs), on top of model-page.css: a
   documentation layout with a side menu of every guide, the article, "On this page" on the right, and a search
   dialog. Under 1024 px the side menu becomes a drawer opened from the bar under the nav. */
:root { --hi: #03d3c7; --hi-soft: rgba(3, 211, 199, .1); --ink-2: #c3cad3; --nav-h: 72px; --mono: ui-monospace, 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace; }
:root[data-theme="light"] { --hi: #00726f; --hi-soft: rgba(0, 114, 111, .08); --ink-2: #39414c; }
@media (max-width: 820px) { :root { --nav-h: 64px; } }
@media (max-width: 560px) { :root { --nav-h: 62px; } }

body.docs-body { background: var(--bg); }
.docs-body nav { background: rgba(7, 9, 13, .86); backdrop-filter: blur(14px); border-bottom-color: var(--border-soft); }
:root[data-theme="light"] .docs-body nav { background: rgba(246, 247, 249, .9); }
.docs-body .wrap.nav-inner { max-width: 1440px; }

.docs {
  max-width: 1440px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 248px minmax(0, 1fr) 208px; gap: 56px;
}

/* ---------- Side menu ---------- */
.docs-side {
  position: sticky; top: var(--nav-h); align-self: start; height: calc(100vh - var(--nav-h)); overflow-y: auto;
  padding: 28px 8px 48px 0; scrollbar-width: thin; scrollbar-color: transparent transparent;
}
.docs-side:hover, .docs-toc:hover { scrollbar-color: var(--border) transparent; }
.docs-toc { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.dn-home, .dn-group a {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px; margin: 1px 0; border-radius: 8px;
  font-size: 14px; color: var(--muted); transition: background .12s, color .12s;
}
.dn-home { margin-top: 0; }
.dn-home svg { width: 16px; height: 16px; }
.dn-home:hover, .dn-group a:hover { color: var(--text); background: var(--card); }
.dn-home[aria-current], .dn-group a[aria-current] { color: var(--hi); background: var(--hi-soft); font-weight: 600; }
.dn-group { margin-top: 26px; }
.dn-label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 0 12px 8px; }

/* ---------- Article ---------- */
.docs-main { min-width: 0; padding: 44px 0 96px; }
.doc { max-width: 740px; }
.doc-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hi); margin-bottom: 12px; }
.doc h1 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; margin-bottom: 14px; }
.doc-lede { font-size: 18px; line-height: 1.6; color: var(--muted); margin-bottom: 28px; }
.doc h2 { font-size: 24px; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; margin: 56px 0 14px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc h3 { font-size: 16px; font-weight: 700; line-height: 1.4; }
.doc p, .doc li { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.doc p + p { margin-top: 14px; }
.doc > p, .doc > ul { margin-bottom: 16px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--faint); }
.doc a:not(.doc-card):not(.pn) { color: var(--text); text-decoration: underline; text-decoration-color: var(--hi); text-underline-offset: 3px; }
.doc a:not(.doc-card):not(.pn):hover { color: var(--hi); }
.doc b { color: var(--text); font-weight: 650; }

/* Screenshots sit in a raised frame, like the app around them. */
.doc-shot { margin: 22px 0 26px; padding: 8px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.doc-shot img { display: block; width: 100%; height: auto; border-radius: 9px; cursor: zoom-in; }
/* A screenshot opened full size. */
.zoom { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 24px; background: rgba(3, 5, 8, .86); backdrop-filter: blur(4px); cursor: zoom-out; }
.zoom img { max-width: min(1600px, 100%); max-height: 100%; width: auto; height: auto; border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 30px 90px rgba(0, 0, 0, .5); }
.doc-shot figcaption { font-size: 14px; line-height: 1.55; color: var(--muted); padding: 10px 6px 4px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.cap-name { display: block; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.doc-shot-sm { max-width: 400px; }
.doc-shot-md { max-width: 560px; }
.doc-shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 26px; }
.doc-shot-grid .doc-shot { margin: 0; }

/* Numbered steps on a rail. */
.steps { list-style: none; padding: 0 !important; margin: 20px 0 24px; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 26px 48px; counter-increment: step; margin: 0 !important; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13.5px; font-weight: 700; color: var(--text);
  background: var(--raised); border: 1px solid var(--border);
}
.steps > li::after { content: ''; position: absolute; left: 15px; top: 36px; bottom: 6px; width: 1px; background: var(--border); }
.steps > li:last-child { padding-bottom: 4px; }
.steps > li:last-child::after { display: none; }
.steps > li > h3 { margin-bottom: 6px; padding-top: 2px; }
.steps .doc-shot { margin: 14px 0 6px; }

/* Call-outs. */
.callout { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 24px; padding: 14px 16px; border-radius: 12px; border: 1px solid; }
.callout svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.callout p { font-size: 15px !important; line-height: 1.65 !important; margin: 0 !important; }
.callout.tip { background: rgba(95, 179, 122, .08); border-color: rgba(95, 179, 122, .3); }
.callout.tip svg { color: #7dd39a; }
.callout.note { background: rgba(96, 165, 250, .07); border-color: rgba(96, 165, 250, .28); }
.callout.note svg { color: #8ab8f5; }
.callout.warn { background: rgba(245, 180, 70, .08); border-color: rgba(245, 180, 70, .3); }
.callout.warn svg { color: #f2c063; }
:root[data-theme="light"] .callout.tip svg { color: #2e8b57; }
:root[data-theme="light"] .callout.note svg { color: #2f6fca; }
:root[data-theme="light"] .callout.warn svg { color: #a86a00; }

/* Link cards. */
.doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 26px; }
.doc-card {
  display: block; padding: 18px 18px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--card);
  transition: border-color .15s, background .15s;
}
.doc-card:hover { border-color: var(--hi); background: var(--card-hover); }
.doc-card svg { width: 22px; height: 22px; color: var(--hi); margin-bottom: 12px; }
.doc-card h3 { font-size: 15.5px; margin-bottom: 4px; color: var(--text); }
.doc-card p { font-size: 14px !important; line-height: 1.55 !important; color: var(--muted) !important; margin: 0 !important; }

/* Tables. */
.doc-table { margin: 20px 0 26px; border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc-table th { text-align: left; font-size: 12.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); background: var(--card); padding: 11px 16px; white-space: nowrap; }
.doc-table td { padding: 12px 16px; border-top: 1px solid var(--border-soft); color: var(--ink-2); line-height: 1.5; vertical-align: top; }
.doc-table td:first-child { color: var(--text); font-weight: 600; }

/* Sample pictures and clips. */
.help-samples { display: grid; gap: 10px; margin: 18px 0 22px; }
.help-samples.pics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.help-samples.clips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.help-samples figure { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--card); }
.help-samples img, .help-samples video { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.help-samples.clips video { aspect-ratio: 16 / 10; }
.help-samples figcaption { font-size: 12.5px; color: var(--muted); padding: 7px 9px 8px; }

/* Common questions. */
.faq-list { border-top: 1px solid var(--border-soft); margin-top: 6px; }
.qa { border-bottom: 1px solid var(--border-soft); scroll-margin-top: calc(var(--nav-h) + 24px); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 16px 0; font-size: 16px; font-weight: 600; color: var(--text);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--faint); transition: transform .2s; line-height: 1; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa-a { padding: 0 0 18px; }
.qa-a p, .qa-a li { font-size: 15.5px; }
.qa-a ul, .qa-a ol { margin: 10px 0; }
.qa:target summary { color: var(--hi); }

/* Previous / next, and the date. */
.pn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 64px; }
.pn { display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; transition: border-color .15s; }
.pn:hover { border-color: var(--hi); }
.pn.next { text-align: right; }
.pn-dir { display: block; font-size: 12.5px; color: var(--faint); margin-bottom: 2px; }
.pn-title { font-size: 15px; font-weight: 650; color: var(--text); }
.doc-updated { margin-top: 28px; font-size: 13.5px !important; color: var(--faint) !important; }

/* ---------- On this page ---------- */
.docs-toc { position: sticky; top: var(--nav-h); align-self: start; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; padding: 48px 0 32px; }
.toc-label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.docs-toc ul { list-style: none; border-left: 1px solid var(--border); }
.docs-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.docs-toc a:hover { color: var(--text); }
.docs-toc a.active { color: var(--hi); border-left-color: var(--hi); }

/* ---------- Home ---------- */
.docs-home { grid-column: 2 / 4; padding-top: 56px; }
.docs-home > * { max-width: 1040px; }
.help-hero { text-align: center; margin: 0 auto 64px; max-width: 720px !important; }
.help-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin-bottom: 16px; }
.help-hero .doc-lede { margin-bottom: 30px; }
.docs-home h2 { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 16px; font-family: var(--mono); }
.hq { margin-bottom: 56px; }
.hq-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hq-step { display: block; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); transition: border-color .15s; }
.hq-step:hover { border-color: var(--hi); }
.hq-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--hi-soft); color: var(--hi); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.hq-step h3 { font-size: 16px; margin-bottom: 6px; }
.hq-step p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.hq-more { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hq-more a { color: var(--hi); font-weight: 600; }
.hg-group { margin-bottom: 44px; }
.docs-home .doc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.docs-home .doc-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.help-contact { padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); }
.help-contact h2 { margin-bottom: 8px !important; }
.help-contact p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.help-contact a { color: var(--text); text-decoration: underline; text-decoration-color: var(--hi); text-underline-offset: 3px; }

/* ---------- Search boxes: the field, and right under it the list of results ---------- */
.help-find { position: relative; }
.hf-field {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); background: var(--card);
  border-radius: 10px; padding: 0 12px; height: 40px; transition: border-color .15s, box-shadow .15s; cursor: text;
}
.hf-field:hover { border-color: var(--faint); }
.help-find:focus-within .hf-field { border-color: var(--hi); box-shadow: 0 0 0 3px var(--hi-soft); }
.hf-field svg { width: 16px; height: 16px; flex: none; color: var(--faint); }
.hf-input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 14.5px; }
.hf-input::placeholder { color: var(--faint); }
.hf-input::-webkit-search-cancel-button { display: none; }
.hf-results {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; max-height: min(70vh, 520px); overflow-y: auto;
  padding: 6px; background: var(--raised); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.hf-results[hidden] { display: none; }
:root[data-theme="light"] .hf-results { box-shadow: 0 16px 48px rgba(20, 23, 28, .14); }
/* In the header, beside FAQ: the list is wider than the field. */
.help-find-nav { flex: 0 1 340px; margin-left: 8px; }
.help-find-nav .hf-results { right: auto; width: min(520px, calc(100vw - 32px)); }
/* On the Help home, under the title. */
.help-find-hero { max-width: 600px; margin: 0 auto; text-align: left; }
.help-find-hero .hf-field { height: 54px; padding: 0 18px; border-radius: 14px; }
.help-find-hero .hf-field svg { width: 19px; height: 19px; }
.help-find-hero .hf-input { font-size: 16px; }
/* On phones, a row under the bar (opened with the bar's search button). */
.help-find-bar { flex-basis: 100%; padding-bottom: 4px; }
.help-find-bar[hidden] { display: none; }

.sr { display: block; padding: 10px 12px; border-radius: 10px; }
.sr[aria-selected="true"], .sr:hover { background: var(--hi-soft); }
.sr-path { font-size: 12px; color: var(--faint); margin-bottom: 2px; }
.sr-title { font-size: 15px; font-weight: 650; color: var(--text); }
.sr-text { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr mark { background: rgba(3, 211, 199, .22); color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-empty { padding: 18px 12px; font-size: 14.5px; color: var(--muted); }
.sr-empty a { color: var(--text); text-decoration: underline; }

/* ---------- Bar and drawer on narrow screens ---------- */
.docs-bar { display: none; }
.docs-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .5); }
.docs-scrim[hidden] { display: none; }

@media (max-width: 1200px) {
  .docs { grid-template-columns: 232px minmax(0, 1fr); gap: 48px; }
  .docs-toc { display: none; }
  .docs-home { grid-column: 2; }
}
@media (max-width: 1024px) {
  .docs { grid-template-columns: minmax(0, 1fr); padding: 0 16px; }
  .docs-home { grid-column: 1; }
  .help-find-nav { display: none; }
  .docs-bar {
    flex-wrap: wrap;
    display: flex; position: sticky; top: var(--nav-h); z-index: 40; gap: 8px; align-items: center;
    padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--border-soft);
  }
  .docs-menu-btn, .docs-bar-search { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; padding: 6px 4px; }
  .docs-menu-btn { flex: 1; min-width: 0; }
  .docs-menu-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .docs-menu-btn svg, .docs-bar-search svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
  .docs-side {
    position: fixed; z-index: 80; top: 0; left: 0; height: 100%; width: min(300px, 86vw); padding: 20px 16px 40px;
    background: var(--bg); border-right: 1px solid var(--border); transform: translateX(-102%); transition: transform .22s ease;
    visibility: hidden;
  }
  .docs-side.open { transform: none; visibility: visible; }
  .docs-main { padding-top: 28px; }
}
@media (max-width: 720px) {
  .doc-cards, .docs-home .doc-cards, .doc-shot-grid, .pn-row { grid-template-columns: minmax(0, 1fr); }
  .hq-steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .help-samples.pics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .help-samples.clips { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .help-samples.clips figure { scroll-snap-align: start; }
  .doc-shot { padding: 5px; border-radius: 12px; }
  .doc-shot img { border-radius: 7px; }
  .doc h2 { font-size: 21px; margin-top: 44px; }
  .doc-lede { font-size: 16.5px; }
  .steps > li { padding-left: 42px; }
  .help-hero { margin-bottom: 44px; }
  .docs-home { padding-top: 32px; }
  .pn.next { text-align: left; }
}
@media (max-width: 460px) {
  .hq-steps { grid-template-columns: minmax(0, 1fr); }
  .doc-table th, .doc-table td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .docs-side { transition: none; } }

/* ---------- Use cases: an example prompt with a Copy button (.copy-prompt, from useCase() in the builder) ---------- */
.copy-prompt { margin: 18px 0 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); overflow: hidden; }
.cp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--border-soft); }
.cp-label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hi); }
.cp-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border); background: var(--raised); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600;
  transition: border-color .12s, color .12s, background .12s;
}
.cp-btn:hover { border-color: var(--hi); color: var(--hi); }
.cp-btn:focus-visible { outline: 2px solid var(--hi); outline-offset: 2px; }
.cp-btn svg { width: 16px; height: 16px; flex: none; }
.cp-btn svg + svg, .cp-ok, .cp-btn.copied svg:first-child, .cp-btn.copied .cp-idle { display: none; }
.cp-btn.copied svg + svg, .cp-btn.copied .cp-ok { display: inline; }
.cp-btn.copied { border-color: var(--hi); color: var(--hi); background: var(--hi-soft); }
.doc .cp-text { margin: 0; padding: 14px 16px 16px; font-size: 15.5px; line-height: 1.7; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.cp-meta { margin: 0; padding: 12px 16px 14px; border-top: 1px solid var(--border-soft); display: grid; gap: 6px; font-size: 14px; line-height: 1.55; }
.cp-meta div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
.cp-meta dt { color: var(--faint); font-weight: 600; }
.cp-meta dd { margin: 0; color: var(--ink-2); }
@media (max-width: 460px) {
  .cp-meta div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cp-meta div + div { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { .cp-btn { transition: none; } }
/* ---------- "Was this helpful?" at the end of a guide (public/js/help-page.js sends it to /api/help/feedback) ---------- */
.help-vote { margin-top: 56px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.help-vote [hidden] { display: none !important; }
.help-vote + .pn-row { margin-top: 20px; }
.hv-ask { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.doc .hv-q, .doc .hv-thanks { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.hv-q { margin-right: auto !important; }
.hv-btn {
  min-width: 52px; height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg);
  font-size: 18px; line-height: 1; cursor: pointer; transition: border-color .15s, background .15s;
}
.hv-btn:hover { border-color: var(--hi); background: var(--hi-soft); }
.hv-btn:focus-visible, .hv-more textarea:focus-visible, .hv-send:focus-visible { outline: 2px solid var(--hi); outline-offset: 2px; }
.hv-more { margin-top: 14px; display: grid; gap: 8px; }
.hv-more label { font-size: 14px; color: var(--muted); }
.hv-more textarea {
  width: 100%; resize: vertical; min-height: 76px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 15px; line-height: 1.5;
}
.hv-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hv-hint { flex: 1; min-width: 0; font-size: 12.5px; color: var(--faint); }
.hv-count { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.hv-send {
  height: 38px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--hi); color: #04201f;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
:root[data-theme="light"] .hv-send { color: #fff; }
.hv-send:disabled { opacity: .6; cursor: default; }
@media (max-width: 460px) { .help-vote { padding: 16px; } .hv-q { flex-basis: 100%; } }
/* Flow clips (.doc-clip): the same frame as a screenshot; a play badge while paused (a tap plays it). */
.doc-clip { position: relative; cursor: pointer; }
.doc-clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 9px; background: #0b0b0c; }
.doc-clip::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: rgba(0, 0, 0, .62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l10.5-6.5z' fill='%23fff'/%3E%3C/svg%3E") 55% 50% / 26px no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); pointer-events: none; transition: opacity .2s;
}
.doc-clip.playing::after { opacity: 0; }
@media (max-width: 720px) { .doc-clip video { border-radius: 7px; } }

/* The workspaces' own marks on cards (brandIcon in the builder): their colours, not the accent. */
.doc-card .brand-ico { width: 24px; height: 24px; margin-bottom: 12px; display: block; }
.doc-card svg.brand-claude { fill: #d97757; }
.doc-card svg.brand-chatgpt { fill: var(--text); }
