/* The sign-up (ui/signup/signup.js) and the Docs page (ui/signup/docs.js). Made of the page's own parts (.card.login-card,
   .login-logo, label + input, .btn, .card, .viz-title, .viz-empty, table); colours only through the page's variables, so
   both themes follow. The cards are the sign-in sketch's (sketches/login): the sign-in card stays as it is, the cards
   beside it are 460px so the import's picker fits. New classes start with .su- (the cards) and .dc- (Docs). */

/* ── the sign-in card: a ghost button under Sign in, a quiet link under it ── */
.su-ways[hidden]{display:none}
.su-full{width:100%;justify-content:center}
#su-ways .su-full{margin-top:10px;padding-top:9px;padding-bottom:9px}   /* its 1px border: as tall as Sign in above it */
.su-center{margin-top:16px;text-align:center;font-size:13px;line-height:1.4}
#su-ways .su-center{margin-top:18px}
.su-link{background:none;border:none;padding:0;font:inherit;font-size:13px;font-weight:500;color:var(--muted);cursor:pointer}
.su-link:hover{color:var(--text);text-decoration:underline;text-underline-offset:2px}

/* ── the cards beside it: each in a window-high place of its own, laid out like the sign-in card's ── */
.su-page{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:16px;background:var(--bg)}
.su-page[hidden]{display:none}
/* once the import runs in the card it sits where the import dialog sits, and only grows downward from there */
.su-page.su-top{align-items:flex-start;padding-top:max(32px,10vh)}
.su-page .login-card{width:100%;max-width:460px;padding:40px}
.su-card .btn-primary{border:1px solid transparent}                   /* lines up with a ghost button beside or under it */
.su-text{font-size:14px;line-height:1.55;color:var(--muted);margin:0 0 22px;text-wrap:pretty}
.su-field{margin-bottom:16px}
input.su-mono{font-family:var(--font-mono);font-size:13px}
.su-err{font-size:13px;line-height:1.45;color:var(--red);margin-top:8px;text-wrap:pretty}
.su-err[hidden]{display:none}
.su-page input[aria-invalid="true"]{border-color:var(--red)}
.su-page input[aria-invalid="true"]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--red) 15%,transparent)}
.su-small{font-size:12.5px;line-height:1.5;color:var(--muted);margin-top:12px;text-wrap:pretty}
.su-divider{height:1px;background:var(--border);margin:22px 0}

/* your new key: the key in the mono face, its two buttons, the sentence, the tick and Continue */
/* a text box, not a field: on a phone (16px in every field) the key takes two lines instead of being cut off */
textarea.su-key{display:block;font-family:var(--font-mono);font-size:13px;line-height:1.5;padding:11px 12px;height:auto;min-height:0;
  resize:none;overflow:hidden;word-break:break-all;cursor:text}
.su-keybtns{display:flex;gap:8px;margin:10px 0 12px}
.su-tg{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-top:16px;padding:12px 0;border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);font-size:13.5px;line-height:1.45}
.su-tg-t{flex:1 1 150px;min-width:0}
.su-tg-t b{font-weight:600}
.su-tg-t .su-dim{display:block;font-size:13px;color:var(--muted);margin-top:1px}
.su-tg-t .tag{margin-bottom:3px}
.su-tg[hidden]{display:none}
.su-card .su-go{margin-top:18px}                 /* Continue on the key's card: the space the tick box held */
.su-tg .su-push{display:flex;gap:8px;flex-shrink:0}
.btn.su-strong{color:var(--text)}
.su-tg .su-push{align-items:center}
.su-tg a.btn,.su-howto a.btn{text-decoration:none}
/* Link Telegram as a dialog inside the dashboard, and its row in the sidebar's footer */
.su-tg-dlg{max-width:420px}
.su-tg-dlg .modal-title{margin-bottom:8px}
.su-tg-body{font-size:14px;line-height:1.55;color:var(--muted);margin:0 0 14px}
.su-tg-why{font-size:13px;line-height:1.5;color:var(--muted);text-wrap:pretty}
#su-tg-dlg .su-tg{margin:0 0 14px;border-top:none;padding-top:0}
.su-tg-msg{font-size:14px;line-height:1.5;margin-bottom:14px}
.su-tg-msg .tag{margin-bottom:4px}
.su-tg-msg .su-dim{display:block;font-size:13px;color:var(--muted)}
.su-foot{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:20px}
.su-tg-side[hidden]{display:none}
/* the new key's second way on, and the admin's link for a customer */
.su-card .su-scratch{margin-top:8px}
.su-linkrow{display:flex;gap:8px;align-items:center;margin:0 0 4px}
.su-linkrow input{flex:1 1 auto;min-width:0;font-size:12.5px}
.su-ek{display:block;margin-top:3px;padding:0;font-size:12px;text-align:left}   /* under the customer's key */
.su-ek.su-ek-need{color:var(--accent)}
.su-tg-side .su-tg-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* "Tick the box …": its room is kept, so nothing moves when it shows */

/* lost key: three cases, not steps; hairlines between them */
.su-howto{list-style:none;margin:0;font-size:14px;line-height:1.55;color:var(--muted);border-top:1px solid var(--border)}
.su-howto li{padding:12px 0;border-bottom:1px solid var(--border);text-wrap:pretty}
.su-howto b{color:var(--text);font-weight:600}
.su-howto .btn{margin-top:8px}

/* the import in the card (ui/imports/imports.js): the list takes what the window leaves under the card's wordmark, and
   the result's two buttons stack full width, the primary on top, like the card's own */
.su-card .imp{--imp-pk-max:clamp(180px,calc(100vh - max(32px,10vh) - 392px),460px)}
.su-card .imp:has(.imp-pk-filter){--imp-pk-max:clamp(180px,calc(100vh - max(32px,10vh) - 436px),460px)}
.su-card .imp-foot-ends{flex-direction:column-reverse;align-items:stretch}
.su-card .imp-foot-ends .btn{justify-content:center}

@media(max-width:768px),(pointer:coarse){
  .su-link{display:inline-flex;align-items:center;min-height:44px;padding:0 8px}   /* a thumb target, like the shared controls */
  textarea.su-key{height:calc(3em + 24px)}
  #su-ways .su-center,.su-center{margin-top:8px}
}
@media(max-width:520px){
  .su-page .login-card{padding:28px 22px}
  .su-card .imp{--imp-pk-max:clamp(160px,calc(100vh - 330px),460px)}
  .su-card .imp:has(.imp-pk-filter){--imp-pk-max:clamp(160px,calc(100vh - 374px),460px)}
}

/* ── Docs (ui/signup/docs.js), at the studio's standard (ui/studio/studio.css, docs/studio/REMAKE.md 6.6) ─────────────
   A top bar card with the two choices as the switch (a tint and the accent bar on the one picked, as the studio's open
   row), shown only when there are two. Under it the studio's two columns: the list of the guide's sections at the left
   (it stays in view; below 1100px its rows lie in a grid above the part, on a phone it is one select) and the part: a
   head with its icon, title and actions, then sections with a title and a rule between them. Item boxes (ids, fields,
   steps, code) have the studio's item look: a 1px --border-hover box, radius 10, a --surface2 header strip. Tokens
   only; both themes. */

/* above 768px the page is its own scroller, as a studio page is: #main has no height, so nothing in it could stick */
@media (min-width:769px){
  #page-docs.active:has(> .dc-scroll){display:flex;flex-direction:column;height:100vh;padding:0;overflow:hidden}
  #page-docs > .dc-scroll{flex:1;min-height:0;overflow-y:auto;padding:28px 32px 48px}
}
/* the studio pages keep the base's 24px under the title: the top bar sits at the same height on all three */
#page-docs .page-header{margin-bottom:24px}
.dc{--dc-miss:var(--accent);max-width:1260px;display:flex;flex-direction:column;gap:16px}
html[data-theme="light"] .dc{--dc-miss:#8a5a06}            /* "missing" in words: the accent is too pale on white */
.dc-i{width:18px;height:18px;flex-shrink:0}
.dc-dim{color:var(--muted)}
.dc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.dc code{font-family:var(--font-mono);font-size:12.5px;padding:1px 5px;border-radius:5px;background:rgba(255,255,255,.06);white-space:nowrap}
.dc .btn-primary{border:1px solid transparent}             /* as tall as an outlined button beside it */
.dc a.btn{text-decoration:none}

/* ── the top bar: the switch ── */
.dc-top{background:var(--surface);border:1px solid var(--border);border-radius:12px}
.dc-top-main{padding:8px}
.dc-pick{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dc-opt{position:relative;display:flex;align-items:center;gap:12px;min-width:0;min-height:60px;padding:10px 14px 10px 16px;border:0;
  border-radius:8px;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.dc-opt:hover{background:rgba(255,255,255,.04)}
.dc-opt[aria-selected="true"]{background:rgba(255,255,255,.07)}
.dc-opt[aria-selected="true"]::before{content:'';position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:0 3px 3px 0;background:var(--accent)}
.dc-opt:focus-visible{outline-offset:-2px}
.dc-opt-ico{display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex-shrink:0;border:1px solid var(--border);
  border-radius:9px;background:var(--bg);color:var(--muted2)}
.dc-opt[aria-selected="true"] .dc-opt-ico{color:var(--accent);border-color:var(--border-hover)}
.dc-opt-text{min-width:0}
.dc-opt b{display:block;font-size:15px;font-weight:500;letter-spacing:-.01em;line-height:1.3}
.dc-opt[aria-selected="true"] b{font-weight:600}
.dc-opt-line{display:block;margin-top:1px;font-size:13px;line-height:1.4;color:var(--muted)}
/* a quiet link: muted, underlined under the pointer (the accent is never a link's colour) */
.dc-open{display:inline-flex;align-items:center;gap:4px;min-height:30px;padding:0 8px;border-radius:6px;color:var(--muted);font-size:13px;font-weight:500;
  text-decoration:none}
.dc-open .dc-i{width:14px;height:14px}
.dc-open:hover{color:var(--text);text-decoration:underline;text-underline-offset:2px}
.dc-open.dc-md{font-family:var(--font-mono);font-size:12.5px}
.btn.dc-strong{color:var(--text)}
.btn.dc-copy{justify-content:center}
.dc-copy .dc-i{width:15px;height:15px}
/* a Copy label as wide as the longer of its word and "Copied": the button keeps its width when the word changes */
.dc-lbl{display:inline-flex;flex-direction:column;align-items:center}
.dc-lbl::after{content:attr(data-size);height:0;overflow:hidden;visibility:hidden}

/* ── two columns: the sections of the guide at the left, the part at the right ── */
.dc-shell{display:grid;grid-template-columns:284px minmax(0,1fr);gap:16px;align-items:start}
.dc-shell-side{position:sticky;top:0;min-width:0}
.dc-side{max-height:calc(100vh - 76px);overflow-y:auto;padding:8px;background:var(--surface);border:1px solid var(--border);border-radius:12px}
.dc-side-group{padding:14px 10px 5px;font-size:12px;font-weight:600;color:var(--muted2)}
.dc-side-group:first-child{padding-top:5px}
.dc-side-item{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-height:38px;margin-bottom:1px;padding:7px 9px 7px 12px;
  border:0;border-radius:8px;background:transparent;color:var(--text);font:500 14px/1.3 var(--font-ui);text-align:left;cursor:pointer}
.dc-side-item > .dc-i{color:var(--muted2)}
.dc-side-item:hover{background:rgba(255,255,255,.04)}
.dc-side-item.active{background:rgba(255,255,255,.07);font-weight:600}
.dc-side-item.active::before{content:'';position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--accent)}
.dc-side-item.active > .dc-i{color:var(--accent)}
.dc-side-item:focus-visible{outline-offset:-2px}
.dc-side-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the list on a phone (the studio's select.st-side-pick) */
select.dc-side-pick{display:none;background:var(--surface);border-color:var(--border-hover);font-weight:600}

/* ── the part: a head (its actions at the top right), then sections with a title and a rule between them ── */
.dc-pane{min-width:0;max-width:960px;background:var(--surface);border:1px solid var(--border);border-radius:12px}
.dc-pane-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px 16px;flex-wrap:wrap;padding:20px 24px 18px;
  border-bottom:1px solid var(--border)}
.dc-pane-heading{min-width:0;flex:1 1 320px}
.dc-pane-title{display:flex;align-items:center;gap:10px;margin:0;font-size:20px;font-weight:700;letter-spacing:-.02em;line-height:1.2}
.dc-pane-title > .dc-i{width:20px;height:20px;color:var(--accent)}
.dc-pane-sub{margin:4px 0 0;font-size:13.5px;line-height:1.45;color:var(--muted)}
.dc-pane-actions{display:flex;align-items:center;gap:6px;flex-shrink:0;flex-wrap:wrap}
.dc-sec{padding:20px 24px 24px;border-top:1px solid var(--border);scroll-margin-top:16px}
.dc-pane-head + .dc-sec{border-top:0}
.dc-sec-head{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;min-height:24px;margin-bottom:16px}
.dc-sec-title{margin:0;font-size:16px;font-weight:700;letter-spacing:-.012em;line-height:1.3;color:var(--text)}
.dc-sec-title:focus{outline:none}
.dc-sec-note{font-size:12.5px;line-height:1.45;color:var(--muted2)}
.dc-sec-body{display:flex;flex-direction:column;gap:14px;min-width:0}
.dc-p{margin:0;font-size:14px;line-height:1.55;color:var(--muted);text-wrap:pretty}
/* an endpoint beside a section title: the method in a quiet chip, the path in the mono face */
.dc-ep{display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 10px 0 4px;border:1px solid var(--border-hover);border-radius:7px;
  background:var(--bg);font:500 12.5px var(--font-mono);color:var(--text);white-space:nowrap}
.dc-ep b{padding:2px 6px;border-radius:4px;background:var(--surface2);color:var(--muted);font:600 11px/1.3 var(--font-ui);letter-spacing:.02em}

/* markers, as the studio's: a green tick, an amber word for what is missing, a plain count */
.dc-mark{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:20px;height:20px;border-radius:6px;
  font:600 12px/1 var(--font-ui);font-variant-numeric:tabular-nums;white-space:nowrap}
.dc-mark .dc-i{width:12px;height:12px;stroke-width:1.3125px}
.dc-mark .dc-i path{vector-effect:non-scaling-stroke}
.dc-mark.ok{background:rgba(48,209,88,.14);color:var(--green)}
.dc-mark.miss{padding:0 8px;background:rgba(217,164,65,.2);color:var(--dc-miss)}
.dc-mark.num{min-width:0;font-weight:500;color:var(--muted2)}
.dc-side-item .dc-mark{margin-left:auto}

/* the address and the key: a label, the value (the address as a field would show it), its Copy */
.dc-kv{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:12px}
.dc-k{font-size:13px;font-weight:600;color:var(--text)}
.dc-field{display:flex;align-items:center;min-height:40px;padding:8px 12px;border:1px solid var(--border-hover);border-radius:8px;background:var(--bg);
  font-size:14px;line-height:1.4;color:var(--text);overflow-wrap:anywhere}
.dc-mono{font-family:var(--font-mono);font-size:13px}
.dc-text{font-size:14px;line-height:1.5;color:var(--text)}

/* boxes of rows (ids, when to call, fields, errors): the studio's item box, a --surface2 head strip */
.dc-box{border:1px solid var(--border-hover);border-radius:10px;overflow-x:auto}
.dc-box table{width:100%;border-collapse:collapse}
.dc .dc-box th{height:40px;padding:0 14px;border-bottom:1px solid var(--border);background:var(--surface2);font:600 12.5px var(--font-ui);
  color:var(--muted);text-align:left;white-space:nowrap}
.dc .dc-box th code{padding:0;background:none;font-size:12.5px;font-weight:500;color:var(--muted)}
.dc .dc-box td{padding:11px 14px;border-bottom:1px solid var(--border);font-family:var(--font-ui);font-size:13.5px;line-height:1.5;
  color:var(--muted);vertical-align:top}
.dc .dc-box tr:last-child td{border-bottom:0}
.dc .dc-box tr:hover td{background:transparent}
.dc-ids td{vertical-align:middle!important}
.dc .dc-ids td.dc-name{min-width:120px;color:var(--text);font-weight:500;overflow-wrap:anywhere}
.dc .dc-ids td.dc-mono{font-family:var(--font-mono);font-size:13px;color:var(--text);white-space:nowrap}
.dc .dc-ids td.dc-act{width:1%;padding:6px 10px 6px 0;text-align:right;white-space:nowrap}
.dc-note{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-top:4px;font-size:12.5px;font-weight:400;color:var(--muted)}
.dc .dc-when td:first-child{width:24%;color:var(--text);font-weight:500}
.dc .dc-when td:nth-child(2){width:34%}
.dc .dc-ref td{vertical-align:baseline}
.dc .dc-ref td.dc-f{white-space:nowrap}
.dc-ref td.dc-f code{padding:0;background:none;font-size:13px;font-weight:500;color:var(--text)}
.dc .dc-ref td.dc-t{font-family:var(--font-mono);font-size:12.5px;color:var(--muted2);white-space:nowrap}
.dc .dc-ref td.dc-r{white-space:nowrap}
.dc-yes{font-weight:600;color:var(--text)}
.dc-cond{font-weight:500;color:var(--text)}
.dc-no{color:var(--muted2)}
.dc .dc-ref td.dc-w{min-width:240px;text-wrap:pretty}
/* a field inside the one above it: indented, a hairline down its left */
.dc .dc-ref tr.dc-sub td.dc-f{position:relative;padding-left:34px}
.dc-ref tr.dc-sub td.dc-f::before{content:'';position:absolute;left:19px;top:0;bottom:0;border-left:1px solid var(--border-hover)}
.dc .dc-errs td:first-child{width:1%;white-space:nowrap}
.dc-errs td:first-child code{padding:0;background:none;font-size:13px;font-weight:600;color:var(--text)}
.dc-err-n{display:block;margin-top:1px;font-size:12px;color:var(--muted2)}
.dc .dc-errs td:nth-child(3){color:var(--text)}

/* code: a header strip (its title or the forms of the request, its Copy) over the code on the page's own background.
   The code is selectable text; a long line scrolls inside the block */
.dc-code{border:1px solid var(--border-hover);border-radius:10px;overflow:hidden;background:var(--bg)}
.dc-code-h{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 8px 0 14px;
  border-bottom:1px solid var(--border);background:var(--surface2)}
.dc-code-t{min-width:0;font-size:13px;font-weight:600;color:var(--text)}
.dc-code-t .dc-dim{font-weight:400;color:var(--muted2)}
.dc-code pre{margin:0;padding:14px 16px;overflow-x:auto;font:400 12.5px/1.65 var(--font-mono);color:var(--text);tab-size:2;white-space:pre;
  user-select:text;-webkit-user-select:text}
.dc-code pre[hidden]{display:none}
.dc-code pre .k{color:var(--muted)}
.dc-code pre:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.dc-forms .dc-code-h{padding-left:6px}
.dc-langs{display:flex;align-self:stretch;min-width:0;overflow-x:auto}
/* the studio's underline tabs: the picked one in the accent, its 2px line on the strip's rule */
.dc-lang{display:inline-flex;align-items:center;flex-shrink:0;margin-bottom:-1px;padding:0 10px;border:0;border-bottom:2px solid transparent;
  border-radius:0;background:none;color:var(--muted);font:600 13px var(--font-ui);cursor:pointer}
.dc-lang:hover{color:var(--text)}
.dc-lang[aria-selected="true"]{color:var(--accent);border-bottom-color:var(--accent)}
.dc-lang:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}

/* the extension: the download, rows (what is needed, what is not set, why she is quiet), numbered items, the sites */
.dc-dl{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 14px 14px 16px;border:1px solid var(--border-hover);border-radius:10px}
.dc-dl-ico{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border:1px solid var(--border);
  border-radius:10px;background:var(--bg);color:var(--text)}
.dc-dl-ico .dc-i{width:22px;height:22px}
.dc-dl-main{flex:1 1 200px;min-width:0}
.dc-dl-name{font-size:16px;font-weight:600;letter-spacing:-.01em;line-height:1.3;overflow-wrap:anywhere}
.dc-dl-facts{margin-top:2px;font-size:12.5px;color:var(--muted2)}
.dc-dl .btn .dc-i{width:16px;height:16px}
.dc-rows{list-style:none;margin:0;padding:0;border:1px solid var(--border-hover);border-radius:10px;overflow:hidden}
.dc-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--border)}
.dc-row:last-child{border-bottom:0}
.dc-row-ico{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;border-radius:8px;background:var(--surface2);
  color:var(--muted2)}
.dc-row-main{flex:1;min-width:0}
.dc-row-t{font-size:14px;font-weight:600;line-height:1.4;color:var(--text)}
.dc-row-d{margin-top:1px;font-size:13px;line-height:1.45;color:var(--muted);text-wrap:pretty}
.dc-row-end{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;flex-shrink:0}
.dc-steps{list-style:none;margin:0;padding:0;border:1px solid var(--border-hover);border-radius:10px;overflow:hidden}
.dc-step{display:flex;gap:14px;padding:14px 16px;border-bottom:1px solid var(--border)}
.dc-step:last-child{border-bottom:0}
.dc-num{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:24px;height:24px;border:1px solid var(--border-hover);
  border-radius:6px;background:var(--surface2);font:600 12.5px/1 var(--font-ui);font-variant-numeric:tabular-nums;color:var(--text)}
.dc-step-main{min-width:0;padding-top:2px}
.dc-step-t{font-size:14px;font-weight:600;line-height:1.4;color:var(--text);overflow-wrap:anywhere}
.dc-step-t code{font-weight:500}
.dc-step-d{margin-top:3px;font-size:13.5px;line-height:1.55;color:var(--muted);overflow-wrap:anywhere;text-wrap:pretty}
.dc-sites{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dc-site{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border:1px solid var(--border-hover);border-radius:10px}
.dc-site-n{font-size:14px;font-weight:600;color:var(--text)}
.dc-site-w{font-family:var(--font-mono);font-size:12.5px;color:var(--muted2)}

/* nothing imported yet, loading, could not load: the studio's empty state */
.dc-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:40px 20px;border:1px dashed var(--border-hover);border-radius:12px;
  text-align:center}
.dc-empty.quiet{border:0;color:var(--muted);font-size:13.5px}
.dc-empty-title{font-size:16px;font-weight:600;color:var(--text)}
.dc-empty-text{max-width:440px;font-size:13.5px;line-height:1.5;color:var(--muted)}
.dc-empty-acts{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:12px}

/* ── 1100px and narrower: one column; the list lies above the part, its rows in columns of equal width (the studio's) ── */
@media (max-width:1100px){
  .dc-shell{grid-template-columns:minmax(0,1fr)}
  .dc-shell-side{position:static}
  .dc-side{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:2px 10px;max-height:none}
  .dc-side-group{display:none}
  .dc-side-item{margin:0}
  .dc-pane{max-width:none}
}
/* ── a phone: the list is one select ── */
@media (max-width:768px){
  .dc-side{display:none}
  select.dc-side-pick{display:block}
  .dc-pane-head{padding:16px 16px 14px}
  .dc-pane-title{font-size:18px}
  .dc-pane-actions{flex:1 1 100%}
  .dc-pane-actions .btn{flex:1 1 auto}
  .dc-open.dc-md{padding:0 4px 0 0}
  .dc-sec{padding:16px 16px 20px}
  .dc-code pre{padding:12px 14px}
  .dc-lang{padding:0 6px;font-size:12.5px}
  .dc-code-h{gap:8px}
  .dc-code-h .btn{padding:6px 10px}
  .dc-sites{grid-template-columns:minmax(0,1fr)}
  .dc-site{flex-direction:row;align-items:baseline;justify-content:space-between;gap:12px}
}
@media (max-width:600px){
  .dc-pick{grid-template-columns:minmax(0,1fr);gap:4px}
  .dc-opt{min-height:56px}
  .dc-kv{grid-template-columns:minmax(0,1fr) auto;gap:8px 10px}
  .dc-k{grid-column:1/-1}
  /* a row's marker stays at its right; a button under the row's words, where it has the width */
  .dc-row{flex-wrap:wrap}
  .dc-row-end:has(.btn){flex:1 1 100%;justify-content:flex-start;padding-left:44px}
  .dc-dl .btn{flex:1 1 100%;justify-content:center}
  .dc-step{gap:12px;padding:12px 14px}
  /* the tables as blocks: five or four columns do not fit */
  .dc-box table,.dc-box tbody{display:block}
  .dc-box thead{display:none}
  .dc .dc-box td{display:block;padding:0;border:0;min-width:0;width:auto!important}
  /* your ids: the preset, its model under it ("Model …"), the two ids named, Copy on the right */
  .dc-ids tr{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:2px 14px;padding:11px 12px 11px 14px;
    border-bottom:1px solid var(--border)}
  .dc-ids td:nth-child(2){grid-column:1/4;grid-row:1}
  .dc .dc-ids td:nth-child(1){grid-column:1/4;grid-row:2;font-size:12.5px;font-weight:400;color:var(--muted)}
  .dc-ids td:nth-child(3){grid-column:1;grid-row:3}
  .dc-ids td:nth-child(4){grid-column:2;grid-row:3}
  .dc-ids td:nth-child(5){grid-column:4;grid-row:1/4}
  .dc .dc-ids td.dc-act{padding:0}
  .dc-ids td[data-k]::before,.dc-ids td[data-l]::before{content:attr(data-k) ' ';font-family:var(--font-ui);font-size:12.5px;color:var(--muted2)}
  .dc-ids td[data-l]::before{content:attr(data-l) ' '}
  /* when to call: the moment, then the chat and the answer, each named */
  .dc-when tr{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;padding:11px 14px;border-bottom:1px solid var(--border)}
  .dc-when td[data-l]::before{content:attr(data-l) ': ';color:var(--muted2)}
  /* a field: its name, type and whether it is required on one line, what it is under them */
  .dc-ref tr{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:baseline;gap:4px 10px;padding:11px 14px;
    border-bottom:1px solid var(--border)}
  .dc .dc-ref td.dc-w{grid-column:1/-1;min-width:0}
  .dc-ref td.dc-r{justify-self:end;font-size:12.5px}
  /* "Yes", "No" and "If listed" lose their column's head here: the words say it instead */
  .dc-ref td.dc-r span{font-size:0}
  .dc-ref .dc-yes::after{content:'Required';font-size:12.5px}
  .dc-ref .dc-no::after{content:'Optional';font-size:12.5px}
  .dc-ref .dc-cond::after{content:attr(data-m);font-size:12.5px}
  .dc .dc-ref tr.dc-sub td.dc-f{position:static;padding-left:0}
  .dc-ref tr.dc-sub td.dc-f::before{content:none}
  .dc-ref tr.dc-sub{position:relative;padding-left:34px}
  .dc-ref tr.dc-sub::before{content:'';position:absolute;left:19px;top:0;bottom:0;border-left:1px solid var(--border-hover)}
  /* an error: its status and name on one line, when under it, what to do under that */
  .dc-errs tr{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;padding:11px 14px;border-bottom:1px solid var(--border)}
  .dc .dc-errs td.dc-st{display:flex;align-items:baseline;gap:8px}
  .dc-err-n{display:inline;margin:0}
  .dc-box tr:last-child{border-bottom:0}
}
/* thumb targets: a phone, and a touch screen of any width */
@media (max-width:768px),(pointer:coarse){
  .dc-side-item,.dc-lang,.dc-open{min-height:44px}
}

/* ── light theme: the twins of the white tints above ── */
html[data-theme="light"] .dc code{background:rgba(16,17,22,.05)}
html[data-theme="light"] .dc-ref td.dc-f code,html[data-theme="light"] .dc-errs td:first-child code,
html[data-theme="light"] .dc .dc-box th code{background:none}
html[data-theme="light"] .dc-opt:hover,html[data-theme="light"] .dc-side-item:hover{background:rgba(16,17,22,.035)}
html[data-theme="light"] .dc-opt[aria-selected="true"],html[data-theme="light"] .dc-side-item.active{background:rgba(16,17,22,.07)}
