/* DNEG AI Roadmap: the contribute form (site/contribute.html, js/contribute.js).
   Extras for this page only. Colors come from tokens.css; shared components (.card .chip .btn .pill .tag .eyebrow .title .lede
   .sechead .panel .footer .topbar) come from site.css. Classes are prefixed cb- so nothing here can leak into a lens. */

/* ------------------------- page chrome ------------------------- */
.cb-banner { position: relative; z-index: 1; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--human) 9%, var(--bg2)); color: var(--fg); font-size: .86rem; }
.cb-banner .inner { max-width: var(--maxw-layout); margin: 0 auto; padding: 8px 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cb-banner strong { color: var(--human); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.cb-banner a { color: var(--accent2); }

.cb { position: relative; z-index: 1; flex: 1 0 auto; width: 100%; max-width: var(--maxw-layout); margin: 0 auto; padding: 22px 24px 56px;
  display: grid; grid-template-columns: 208px minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.cb:focus { outline: none; }
.cb-main { min-width: 0; }

/* ------------------------- stepper ------------------------- */
.cb-stepper { position: sticky; top: calc(var(--topbar-h) + 18px); display: grid; gap: 16px; align-content: start; max-height: calc(100vh - var(--topbar-h) - 36px); overflow: auto; scrollbar-width: thin; padding-right: 2px; }
.cb-steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 6px; }
.cb-steps::before { content: ""; position: absolute; left: 17px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.cb-step { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 5px 4px 5px 0;
  background: transparent; border: 0; border-radius: 10px; text-align: left; color: var(--muted); cursor: pointer; }
.cb-step .dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); border: 2px solid var(--line);
  font-family: var(--mono); font-size: .78rem; color: var(--muted); transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease); }
.cb-step .lbl b { display: block; font-weight: 500; color: var(--fg); font-size: .94rem; line-height: 1.25; }
.cb-step .lbl small { display: block; font-size: .74rem; line-height: 1.3; color: var(--muted); }
.cb-step:hover .dot { border-color: var(--accent); }
.cb-step.done .dot { border-color: var(--accent); background: var(--panel); color: var(--fg); font-size: 0; }
.cb-step.done .dot::after { content: "\2713"; font-size: .9rem; font-family: var(--font); }
.cb-step.now .dot { border-color: var(--accent2); background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent), 0 0 16px color-mix(in srgb, var(--accent) 45%, transparent); }
.cb-step.bad .dot { border-color: var(--bad); color: var(--bad); }
.cb-badge { font-family: var(--mono); font-size: .7rem; color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 60%, transparent); border-radius: 999px; padding: 0 7px; line-height: 1.5; }
.cb-meta { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--glass); font-size: .78rem; display: grid; gap: 3px; }
.cb-meta-k { color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.cb-meta-v { color: var(--fg); overflow-wrap: anywhere; }
.cb-meta-s { font-weight: 500; }
.cb-meta-s.ok { color: var(--ok); }
.cb-meta-s.bad { color: var(--bad); }
.cb-meta-w { color: var(--human); }
.cb-toc { font-size: .78rem; display: grid; gap: 4px; padding: 0 2px; }
.cb-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border-left: 1px solid var(--line); }
.cb-toc li a { display: block; padding: 2px 0 2px 10px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.cb-toc li a:hover { color: var(--fg); border-left-color: var(--accent2); }

/* ------------------------- tabs and draft tools ------------------------- */
.cb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; border-bottom: 1px solid var(--line); }
.cb-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.cb-tab { display: grid; padding: 8px 16px 9px; margin-bottom: -1px; background: transparent; color: var(--muted); border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; cursor: pointer; text-align: left; }
.cb-tab b { font-weight: 500; font-size: .95rem; color: inherit; }
.cb-tab small { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.cb-tab:hover { color: var(--fg); }
.cb-tab.on { color: var(--fg); background: var(--panel); border-color: var(--line); box-shadow: inset 0 2px 0 var(--accent); }
.cb-headtools { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; margin-left: auto; }
.cb-saved { font-size: .74rem; color: var(--muted); }
.cb-reset.armed { border-color: var(--bad); color: var(--bad); }
.cb-blurb { color: var(--muted); font-size: .88rem; margin: 12px 0 18px; }

/* ------------------------- step panels ------------------------- */
.cb-panel { min-width: 0; }
.cb-panel .sechead { margin-bottom: 1rem; }
.cb-panel .sechead .title { font-size: clamp(1.3rem, 1.9vw, 1.75rem); margin-bottom: .45rem; }
.cb-panel .sechead .title:focus { outline: none; }
.cb-panel .lede { font-size: .95rem; max-width: 70ch; }
.cb-sections { display: grid; gap: 14px; }
.cb-sec { padding: 16px 20px 18px; }
.cb-sec h3 { font-size: 1.04rem; margin-bottom: .25rem; }
.cb-sec h4 { font-size: .8rem; font-weight: 500; color: var(--muted); margin: 0 0 6px; letter-spacing: .02em; }
.cb-uses { font-size: .8rem; color: var(--muted); margin-bottom: .85rem; max-width: 78ch; }
.cb-uses span { color: var(--accent2); font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; margin-right: .7em; white-space: nowrap; }
.cb-stack { display: grid; gap: 12px; }
.cb-help { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.card .cb-help { font-size: .78rem; }
.cb-empty { color: var(--muted); font-size: .84rem; margin: 0 0 6px; }
.cb-list .cb-empty { margin: 0; padding: 14px 16px; }
.cb-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cb-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.cb-grid3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; }
.cb-narrow { max-width: 28rem; }
.cb-sublabel { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); display: flex; gap: 10px; align-items: baseline; }
.cb-sublabel small { text-transform: none; letter-spacing: 0; color: var(--muted); font-size: .74rem; }
.cb-ident { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: -4px 0 12px; font-size: .9rem; }
.cb-ident code { color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; }

.cb-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 18px; }
.cb-nav .btn:only-child { margin-left: 0; }
.cb-nav > .btn.live:last-child { margin-left: auto; }
.cb-nav .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ------------------------- fields ------------------------- */
.cb-field { display: grid; gap: 5px; min-width: 0; }
.cb-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cb-field > .cb-label-row > label { font-size: .8rem; color: var(--fg); font-weight: 500; letter-spacing: .01em; }
.cb-opt-tag { margin-left: .6em; font-size: .68rem; font-weight: 400; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; letter-spacing: .04em; }
.cb-count { font-family: var(--mono); font-size: .74rem; color: var(--muted); white-space: nowrap; }
.cb-count.over { color: var(--bad); font-weight: 600; }

.cb input[type="text"], .cb input[type="search"], .cb select, .cb textarea {
  width: 100%; min-width: 0; background: var(--bg2); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
  font: inherit; font-size: .9rem; line-height: 1.4; }
.cb textarea { resize: vertical; min-height: 3.2rem; }
.cb textarea[data-grow] { max-height: 20rem; overflow-y: auto; }
.cb select { padding-right: 6px; }
.cb input::placeholder, .cb textarea::placeholder { color: var(--muted); opacity: .75; }
.cb input[type="text"]:focus, .cb input[type="search"]:focus, .cb select:focus, .cb textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.cb .invalid { border-color: var(--bad) !important; }
.cb input[type="text"].invalid:focus, .cb textarea.invalid:focus, .cb select.invalid:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 25%, transparent); }
.cb-chips.invalid, .cb-checkset.invalid, .cb-tokens.invalid, .cb-radios.invalid, .cb-modules.invalid { outline: 1px solid var(--bad); outline-offset: 4px; border-radius: 8px; }
.cb input[type="checkbox"], .cb input[type="radio"] { accent-color: var(--accent); width: 1rem; height: 1rem; margin: 0; flex: 0 0 auto; }

/* ------------------------- chips, checkboxes, radios, switches ------------------------- */
.cb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-extra { display: contents; }
.cb-extra.block { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cb-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 3px 12px;
  font-size: .84rem; line-height: 1.4; cursor: pointer; transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease); }
.cb-chip:hover { border-color: var(--accent); color: var(--fg); }
.cb-chip.on { border-color: var(--accent); color: var(--fg); background: color-mix(in srgb, var(--accent) 18%, var(--panel)); }
.cb-chip i { font-style: normal; font-family: var(--mono); font-size: .68rem; color: var(--accent2); }
.cb-chip small { color: var(--muted); font-family: var(--mono); font-size: .68rem; }
.cb-chip.bad { border-color: var(--bad); color: var(--bad); background: transparent; }
.cb-modules { display: grid; gap: 10px; }
.cb-modgroup { display: grid; gap: 4px; }

.cb-checkset { display: grid; gap: 12px; }
.cb-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cb-fieldset legend { padding: 0; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent2); margin-bottom: 4px; }
.cb-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 3px 14px; }
.cb-checks.one { grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: 4px 12px; }
.cb-check { display: flex; align-items: flex-start; gap: 8px; padding: 4px 8px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: .88rem; color: var(--muted); }
.cb-check input { margin-top: .18rem; }
.cb-check:hover { border-color: var(--line); color: var(--fg); }
.cb-check.on { color: var(--fg); background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.cb-check.off { opacity: .45; cursor: not-allowed; }
.cb-check .n { font-style: normal; font-family: var(--mono); font-size: .68rem; color: var(--accent2); min-width: 1.4em; margin-top: .3rem; }
.cb-check-text { display: grid; min-width: 0; }
.cb-check-text small { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.cb-switch { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); cursor: pointer; font-size: .9rem; width: fit-content; max-width: 100%; }
.cb-switch small { color: var(--muted); font-size: .76rem; }
.cb-switch.on { border-color: var(--accent); }

.cb-radios { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 8px; }
.cb-radio { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); cursor: pointer; }
.cb-radio:hover { border-color: var(--accent); }
.cb-radio.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg2)); }
.cb-radio input { margin-top: .3rem; }
.cb-radio-main { display: grid; gap: 3px; min-width: 0; }
.cb-radio-main small { color: var(--muted); font-size: .76rem; line-height: 1.4; }
.cb-radio-main .chip { justify-self: start; }

/* ------------------------- tokens and rows ------------------------- */
.cb-tokens { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; min-height: 2.5rem; cursor: text; }
.cb-tokens:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.cb-token { display: inline-flex; align-items: center; gap: 2px; padding: 1px 3px 1px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel2); font-size: .84rem; max-width: 100%; }
.cb-token a { color: var(--accent2); text-decoration: none; }
.cb-token a:hover { text-decoration: underline; }
.cb-token button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0 6px; font-size: 1rem; line-height: 1.3; border-radius: 999px; }
.cb-token button:hover { color: var(--fg); background: var(--panel); }
.cb-token.bad { border-color: var(--bad); color: var(--bad); }
.cb-token.bad a { color: var(--bad); }
.cb .cb-tokens .cb-token-input { flex: 1 1 9rem; width: auto; min-width: 7rem; border: 0; background: transparent; padding: 3px 4px; box-shadow: none; }

.cb-rows { display: grid; gap: 8px; }
.cb-row { display: grid; grid-template-columns: var(--cols, 1fr); gap: 8px; align-items: start; }
.cb-row.head { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); gap: 8px; }
.cb-x { width: 2rem; height: 2.1rem; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 8px; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.cb-x:hover { border-color: var(--bad); color: var(--bad); }
.cb-add { justify-self: start; }

/* ------------------------- the picker ------------------------- */
.cb-pick { display: grid; gap: 12px; }
.cb-pickbar { display: flex; align-items: center; gap: 12px; }
.cb-pickbar .cb-search { flex: 1 1 auto; }
.cb-list { position: relative; max-height: 19rem; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); scrollbar-width: thin; }
.cb-groupname { position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; justify-content: space-between; padding: 6px 14px; background: var(--panel2); border-bottom: 1px solid var(--line);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); }
.cb-groupname small { letter-spacing: 0; text-transform: none; color: var(--muted); font-size: .74rem; }
.cb-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; padding: 8px 14px; background: transparent; color: var(--fg); border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.cb-opt:last-child { border-bottom: 0; }
.cb-opt:hover { background: color-mix(in srgb, var(--panel2) 70%, transparent); }
.cb-opt.on { background: color-mix(in srgb, var(--accent) 16%, var(--bg2)); box-shadow: inset 3px 0 0 var(--accent2); }
.cb-opt-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.cb-opt-main code { color: var(--fg); font-size: .86rem; }
.cb-opt-name { color: var(--muted); font-size: .82rem; }
.cb-opt-chips { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.cb-opt-chips .chip { text-transform: none; letter-spacing: 0; font-size: .7rem; padding: 0 8px; }
.cb-opt-desc { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cb-opt-desc.dim { opacity: .8; }
.cb-opt-desc.none { opacity: .6; font-style: italic; }
.cb-manual > summary { cursor: pointer; color: var(--accent2); font-size: .84rem; width: fit-content; }
.cb-manual[open] > summary { margin-bottom: 8px; }
.cb-manualrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.cb-manualrow .cb-slug { flex: 1 1 14rem; width: auto; max-width: 22rem; }
.cb-manualrow select { width: auto; }
.cb-pickstatus { min-height: 2.5rem; }
.cb-restored { margin-top: 4px; font-size: .8rem; color: var(--muted); }

.cb-note { border: 1px solid var(--line); border-left-width: 3px; border-radius: 10px; padding: 9px 14px; font-size: .88rem; background: var(--glass); }
.cb-note.info { border-left-color: var(--accent2); }
.cb-note.ok { border-left-color: var(--ok); }
.cb-note.warn { border-left-color: var(--human); }
.cb-note.bad { border-left-color: var(--bad); }

/* ------------------------- examples, problems ------------------------- */
.cb-examples { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--bg2); font-size: .84rem; display: grid; gap: 10px; }
.cb-examples table { width: 100%; border-collapse: collapse; }
.cb-examples th { text-align: left; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 0 10px 4px 0; }
.cb-examples td { vertical-align: top; padding: 5px 10px 5px 0; border-top: 1px solid var(--line); }
.cb-examples td.bad { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 70%, transparent); }
.cb-examples td.good { color: var(--fg); }
.cb-examples ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }

.cb-stepcheck { margin-top: 16px; }
.cb-stepcheck h3 { font-size: .95rem; margin-bottom: 6px; }
.cb-ok { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; }
.cb-problems { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cb-problems li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); font-size: .85rem; }
.cb-problems li.error { border-left: 3px solid var(--bad); }
.cb-problems li.warn { border-left: 3px solid var(--human); }
.cb-problems .chip { justify-self: start; text-transform: none; letter-spacing: 0; font-size: .72rem; }
.cb-pmsg { color: var(--fg); overflow-wrap: anywhere; }
.cb-go { border: 0; background: transparent; color: var(--accent2); cursor: pointer; font-size: .78rem; padding: 2px 4px; text-decoration: underline; white-space: nowrap; }

/* ------------------------- step 4 ------------------------- */
.cb-filehead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.cb-filepath { color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 9px; overflow-wrap: anywhere; }
.cb .cb-code { width: 100%; font-family: var(--mono); font-size: .76rem; line-height: 1.55; white-space: pre; overflow: auto; tab-size: 2; background: var(--bg); color: var(--fg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; resize: vertical; }
.cb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.btn.disabled { opacity: .5; cursor: not-allowed; }
.btn.disabled:hover { border-color: var(--line); }
.cb-copymsg { font-size: .8rem; color: var(--ok); }
.cb-copymsg.bad { color: var(--human); }
.cb-verdict .cb-note { font-size: .86rem; }

/* ------------------------- context panel ------------------------- */
.cb-ctx { position: sticky; top: calc(var(--topbar-h) + 18px); max-height: calc(100vh - var(--topbar-h) - 36px); overflow: auto; display: grid; gap: 8px; align-content: start; padding-right: 4px; scrollbar-width: thin; }
.cb-ctx .eyebrow { margin-bottom: 0; }
.cb-d { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, var(--panel), var(--bg2)); }
.cb-d > summary { cursor: pointer; padding: 9px 14px; font-weight: 500; font-size: .92rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.cb-d > summary::-webkit-details-marker { display: none; }
.cb-d > summary::after { content: "\25BE"; color: var(--muted); }
.cb-d[open] > summary::after { content: "\25B4"; }
.cb-d-body { padding: 0 14px 12px; font-size: .84rem; color: var(--muted); display: grid; gap: 8px; }
.cb-d-body p { margin: 0; }
.cb-d-body ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; }
.cb-d-body blockquote { margin: 0; padding: 6px 12px; border-left: 3px solid var(--accent); color: var(--fg); background: var(--glass); border-radius: 0 8px 8px 0; }
.cb-d-body b { color: var(--fg); font-weight: 500; }
.cb-lenses { width: 100%; border-collapse: collapse; font-size: .8rem; }
.cb-lenses th { text-align: left; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; padding: 0 8px 4px 0; }
.cb-lenses td { vertical-align: top; padding: 4px 8px 4px 0; border-top: 1px solid var(--line); }
.cb-lenses td:first-child { color: var(--fg); white-space: nowrap; }
.cb-lenses code { color: var(--accent2); font-size: .74rem; }

/* ------------------------- responsive ------------------------- */
@media (max-width: 1239px) {
  .cb { grid-template-columns: 196px minmax(0, 1fr); }
  .cb-ctx { grid-column: 1 / -1; position: static; max-height: none; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); padding-right: 0; }
  .cb-ctx .eyebrow { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .cb { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px 14px 40px; }
  .cb-banner .inner { padding: 8px 14px; }
  .cb-stepper { position: static; }
  .cb-steps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
  .cb-steps::before { display: none; }
  .cb-step { grid-template-columns: 30px minmax(0, 1fr); padding: 4px; }
  .cb-step .dot { width: 30px; height: 30px; }
  .cb-step .lbl small { display: none; }
  .cb-badge { position: absolute; top: -4px; right: -2px; }
  .cb-meta, .cb-toc { display: none; }
  .cb-grid2, .cb-grid3 { grid-template-columns: minmax(0, 1fr); }
  .cb-row, .cb-row.head { grid-template-columns: minmax(0, 1fr) 2rem; }
  .cb-row.head { display: none; }
  .cb-row > :not(.cb-x) { grid-column: 1 / -1; }
  .cb-row > .cb-x { grid-column: 1; justify-self: end; }
  .cb-problems li { grid-template-columns: minmax(0, 1fr); }
  .cb-opt { grid-template-columns: minmax(0, 1fr); }
  .cb-opt-chips { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .cb-step .lbl b { font-size: .78rem; }
  .cb-tab { padding: 8px 10px 9px; }
}
@media print {
  .cb-banner, .cb-stepper, .cb-ctx, .cb-nav, .cb-tabs, .cb-headtools { display: none !important; }
  .cb { display: block; padding: 0; }
  .cb-panel[hidden] { display: block !important; }
}
