/* =====================================================================
   rs-controls.css  .  Interactive controls: one look per job  .  v1.1 (20 Nov 2026; 21 Nov: v2 colours, chosen = teal with a dot)
   Revise Science. Implements control-standard.md for the existing interactives without rewriting their markup.
   Jobs: choose = chip with a tick (.ct-chips rows and the family buttons listed below); view = joined segmented tabs
   (.ct-tabs); ordered steps = joined stepper (.ct-stepbar) with ticks on done steps; action = solid navy or quiet
   outline; switch = .ct-sw. aria-pressed / aria-current are kept in step by rs-controls.js.
   The old private rules in each page's own <style> use #id selectors, so the declarations here that must win
   carry !important. Retire them page by page when the pages are next rebuilt.
   ===================================================================== */

/* ---- choose: chip with a tick ---- */

.al-carats button, .ce-st-rx button, .ce-sp-rx button, .cf-mk-pos button, .cf-mk-neg button, .cc-masses button, .cc-vols button, .cm-picks button, .cm-exps button, .cm-pred button, .de-res button, .ef-picks button, .gv-gases button, .gv-ns button, .lr-res button, .lr-n button, .mc-subs button, .mc-amts button, .mm-subs button, .mm-masses button, .pbm-picks button, .rm-res button, .rm-masses button, .rfm-picks button, .tc-sets button, .gp-sets button, .gp-scales button, .gp-lines button, .gr-sets button, .mr-sets button, .re-eq-row button, .re-find-row button, .sg-nums button, .sg-hows button, .sf-picks button, .sa-cuts button, .un-qs button, .un-ms button, .ak-ns button, .ak-isos button, .al-alks button, .al-reas button, .ck-alks button, .ck-brs button, .ck-cuts button, .co-fracs button, .pl-mons button, .ae-eye-pick button, .ae-read-pick button, .ae-air-pick button, .ae-b-pairs button, .dc-an-sets button, .dc-gr-segs button, .hr-sit button, .hm-inv button, .mu-inst button, .mu-tg-acc button, .mu-tg-pre button, .sl-starts button, .sl-opts button, .sx-structs button, .sx-subs button, .sx-cmp-row button, .ml-subs button, .dx-subs button, .sm-tl-years button, .chr-spots button, .ct-chips button, .hm-seg--can button, .rsg-filters button, .rsq-quick-picks button, .ml-models button, .dif-segment-button, .fil-segment-button, .cry-segment-button, .dis-segment-button, .mb-substance-tab, .mb-curve-segment-button, .mix-category-button, .mix-subtype-button, .mix-product-tab, .sol-curve-button, .som-tab, .som-bulk-button, .som-limit-button, .fil-choice, .sl-chg, .mb-pan, .hm-b, .pa-choice, .sm-year, .hm-pick, .ct-ans, .ib-iv-colbtn {
  font: inherit;
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  min-height: 38px;
  padding: 6px 12px !important;
  border: 2px solid #7a8199 !important;
  border-radius: 18px !important;
  background: #fff !important;
  color: var(--rs-ink,#25242f) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.al-carats button:hover, .ce-st-rx button:hover, .ce-sp-rx button:hover, .cf-mk-pos button:hover, .cf-mk-neg button:hover, .cc-masses button:hover, .cc-vols button:hover, .cm-picks button:hover, .cm-exps button:hover, .cm-pred button:hover, .de-res button:hover, .ef-picks button:hover, .gv-gases button:hover, .gv-ns button:hover, .lr-res button:hover, .lr-n button:hover, .mc-subs button:hover, .mc-amts button:hover, .mm-subs button:hover, .mm-masses button:hover, .pbm-picks button:hover, .rm-res button:hover, .rm-masses button:hover, .rfm-picks button:hover, .tc-sets button:hover, .gp-sets button:hover, .gp-scales button:hover, .gp-lines button:hover, .gr-sets button:hover, .mr-sets button:hover, .re-eq-row button:hover, .re-find-row button:hover, .sg-nums button:hover, .sg-hows button:hover, .sf-picks button:hover, .sa-cuts button:hover, .un-qs button:hover, .un-ms button:hover, .ak-ns button:hover, .ak-isos button:hover, .al-alks button:hover, .al-reas button:hover, .ck-alks button:hover, .ck-brs button:hover, .ck-cuts button:hover, .co-fracs button:hover, .pl-mons button:hover, .ae-eye-pick button:hover, .ae-read-pick button:hover, .ae-air-pick button:hover, .ae-b-pairs button:hover, .dc-an-sets button:hover, .dc-gr-segs button:hover, .hr-sit button:hover, .hm-inv button:hover, .mu-inst button:hover, .mu-tg-acc button:hover, .mu-tg-pre button:hover, .sl-starts button:hover, .sl-opts button:hover, .sx-structs button:hover, .sx-subs button:hover, .sx-cmp-row button:hover, .ml-subs button:hover, .dx-subs button:hover, .sm-tl-years button:hover, .chr-spots button:hover, .ct-chips button:hover, .hm-seg--can button:hover, .rsg-filters button:hover, .rsq-quick-picks button:hover, .ml-models button:hover, .dif-segment-button:hover, .fil-segment-button:hover, .cry-segment-button:hover, .dis-segment-button:hover, .mb-substance-tab:hover, .mb-curve-segment-button:hover, .mix-category-button:hover, .mix-subtype-button:hover, .mix-product-tab:hover, .sol-curve-button:hover, .som-tab:hover, .som-bulk-button:hover, .som-limit-button:hover, .fil-choice:hover, .sl-chg:hover, .mb-pan:hover, .hm-b:hover, .pa-choice:hover, .sm-year:hover, .hm-pick:hover, .ct-ans:hover, .ib-iv-colbtn:hover {
  background: #f5f6fb !important;
}

.al-carats button[aria-pressed="true"], .ce-st-rx button[aria-pressed="true"], .ce-sp-rx button[aria-pressed="true"], .cf-mk-pos button[aria-pressed="true"], .cf-mk-neg button[aria-pressed="true"], .cc-masses button[aria-pressed="true"], .cc-vols button[aria-pressed="true"], .cm-picks button[aria-pressed="true"], .cm-exps button[aria-pressed="true"], .cm-pred button[aria-pressed="true"], .de-res button[aria-pressed="true"], .ef-picks button[aria-pressed="true"], .gv-gases button[aria-pressed="true"], .gv-ns button[aria-pressed="true"], .lr-res button[aria-pressed="true"], .lr-n button[aria-pressed="true"], .mc-subs button[aria-pressed="true"], .mc-amts button[aria-pressed="true"], .mm-subs button[aria-pressed="true"], .mm-masses button[aria-pressed="true"], .pbm-picks button[aria-pressed="true"], .rm-res button[aria-pressed="true"], .rm-masses button[aria-pressed="true"], .rfm-picks button[aria-pressed="true"], .tc-sets button[aria-pressed="true"], .gp-sets button[aria-pressed="true"], .gp-scales button[aria-pressed="true"], .gp-lines button[aria-pressed="true"], .gr-sets button[aria-pressed="true"], .mr-sets button[aria-pressed="true"], .re-eq-row button[aria-pressed="true"], .re-find-row button[aria-pressed="true"], .sg-nums button[aria-pressed="true"], .sg-hows button[aria-pressed="true"], .sf-picks button[aria-pressed="true"], .sa-cuts button[aria-pressed="true"], .un-qs button[aria-pressed="true"], .un-ms button[aria-pressed="true"], .ak-ns button[aria-pressed="true"], .ak-isos button[aria-pressed="true"], .al-alks button[aria-pressed="true"], .al-reas button[aria-pressed="true"], .ck-alks button[aria-pressed="true"], .ck-brs button[aria-pressed="true"], .ck-cuts button[aria-pressed="true"], .co-fracs button[aria-pressed="true"], .pl-mons button[aria-pressed="true"], .ae-eye-pick button[aria-pressed="true"], .ae-read-pick button[aria-pressed="true"], .ae-air-pick button[aria-pressed="true"], .ae-b-pairs button[aria-pressed="true"], .dc-an-sets button[aria-pressed="true"], .dc-gr-segs button[aria-pressed="true"], .hr-sit button[aria-pressed="true"], .hm-inv button[aria-pressed="true"], .mu-inst button[aria-pressed="true"], .mu-tg-acc button[aria-pressed="true"], .mu-tg-pre button[aria-pressed="true"], .sl-starts button[aria-pressed="true"], .sl-opts button[aria-pressed="true"], .sx-structs button[aria-pressed="true"], .sx-subs button[aria-pressed="true"], .sx-cmp-row button[aria-pressed="true"], .ml-subs button[aria-pressed="true"], .dx-subs button[aria-pressed="true"], .sm-tl-years button[aria-pressed="true"], .chr-spots button[aria-pressed="true"], .ct-chips button[aria-pressed="true"], .hm-seg--can button[aria-pressed="true"], .rsg-filters button[aria-pressed="true"], .rsq-quick-picks button[aria-pressed="true"], .ml-models button[aria-pressed="true"], .dif-segment-button[aria-pressed="true"], .fil-segment-button[aria-pressed="true"], .cry-segment-button[aria-pressed="true"], .dis-segment-button[aria-pressed="true"], .mb-substance-tab[aria-pressed="true"], .mb-curve-segment-button[aria-pressed="true"], .mix-category-button[aria-pressed="true"], .mix-subtype-button[aria-pressed="true"], .mix-product-tab[aria-pressed="true"], .sol-curve-button[aria-pressed="true"], .som-tab[aria-pressed="true"], .som-bulk-button[aria-pressed="true"], .som-limit-button[aria-pressed="true"], .fil-choice[aria-pressed="true"], .sl-chg[aria-pressed="true"], .mb-pan[aria-pressed="true"], .hm-b[aria-pressed="true"], .pa-choice[aria-pressed="true"], .sm-year[aria-pressed="true"], .hm-pick[aria-pressed="true"], .ct-ans[aria-pressed="true"], .ib-iv-colbtn[aria-pressed="true"] {
  border-color: var(--rs-choice,#0f766e) !important;
  background: var(--rs-choice-soft,#e3f4f1) !important;
  color: var(--rs-ink,#25242f) !important;
  box-shadow: inset 0 0 0 1px var(--rs-choice,#0f766e) !important;
  font-weight: 800;
}

.al-carats button[aria-pressed="true"]::before, .ce-st-rx button[aria-pressed="true"]::before, .ce-sp-rx button[aria-pressed="true"]::before, .cf-mk-pos button[aria-pressed="true"]::before, .cf-mk-neg button[aria-pressed="true"]::before, .cc-masses button[aria-pressed="true"]::before, .cc-vols button[aria-pressed="true"]::before, .cm-picks button[aria-pressed="true"]::before, .cm-exps button[aria-pressed="true"]::before, .cm-pred button[aria-pressed="true"]::before, .de-res button[aria-pressed="true"]::before, .ef-picks button[aria-pressed="true"]::before, .gv-gases button[aria-pressed="true"]::before, .gv-ns button[aria-pressed="true"]::before, .lr-res button[aria-pressed="true"]::before, .lr-n button[aria-pressed="true"]::before, .mc-subs button[aria-pressed="true"]::before, .mc-amts button[aria-pressed="true"]::before, .mm-subs button[aria-pressed="true"]::before, .mm-masses button[aria-pressed="true"]::before, .pbm-picks button[aria-pressed="true"]::before, .rm-res button[aria-pressed="true"]::before, .rm-masses button[aria-pressed="true"]::before, .rfm-picks button[aria-pressed="true"]::before, .tc-sets button[aria-pressed="true"]::before, .gp-sets button[aria-pressed="true"]::before, .gp-scales button[aria-pressed="true"]::before, .gp-lines button[aria-pressed="true"]::before, .gr-sets button[aria-pressed="true"]::before, .mr-sets button[aria-pressed="true"]::before, .re-eq-row button[aria-pressed="true"]::before, .re-find-row button[aria-pressed="true"]::before, .sg-nums button[aria-pressed="true"]::before, .sg-hows button[aria-pressed="true"]::before, .sf-picks button[aria-pressed="true"]::before, .sa-cuts button[aria-pressed="true"]::before, .un-qs button[aria-pressed="true"]::before, .un-ms button[aria-pressed="true"]::before, .ak-ns button[aria-pressed="true"]::before, .ak-isos button[aria-pressed="true"]::before, .al-alks button[aria-pressed="true"]::before, .al-reas button[aria-pressed="true"]::before, .ck-alks button[aria-pressed="true"]::before, .ck-brs button[aria-pressed="true"]::before, .ck-cuts button[aria-pressed="true"]::before, .co-fracs button[aria-pressed="true"]::before, .pl-mons button[aria-pressed="true"]::before, .ae-eye-pick button[aria-pressed="true"]::before, .ae-read-pick button[aria-pressed="true"]::before, .ae-air-pick button[aria-pressed="true"]::before, .ae-b-pairs button[aria-pressed="true"]::before, .dc-an-sets button[aria-pressed="true"]::before, .dc-gr-segs button[aria-pressed="true"]::before, .hr-sit button[aria-pressed="true"]::before, .hm-inv button[aria-pressed="true"]::before, .mu-inst button[aria-pressed="true"]::before, .mu-tg-acc button[aria-pressed="true"]::before, .mu-tg-pre button[aria-pressed="true"]::before, .sl-starts button[aria-pressed="true"]::before, .sl-opts button[aria-pressed="true"]::before, .sx-structs button[aria-pressed="true"]::before, .sx-subs button[aria-pressed="true"]::before, .sx-cmp-row button[aria-pressed="true"]::before, .ml-subs button[aria-pressed="true"]::before, .dx-subs button[aria-pressed="true"]::before, .sm-tl-years button[aria-pressed="true"]::before, .chr-spots button[aria-pressed="true"]::before, .ct-chips button[aria-pressed="true"]::before, .hm-seg--can button[aria-pressed="true"]::before, .rsg-filters button[aria-pressed="true"]::before, .rsq-quick-picks button[aria-pressed="true"]::before, .ml-models button[aria-pressed="true"]::before, .dif-segment-button[aria-pressed="true"]::before, .fil-segment-button[aria-pressed="true"]::before, .cry-segment-button[aria-pressed="true"]::before, .dis-segment-button[aria-pressed="true"]::before, .mb-substance-tab[aria-pressed="true"]::before, .mb-curve-segment-button[aria-pressed="true"]::before, .mix-category-button[aria-pressed="true"]::before, .mix-subtype-button[aria-pressed="true"]::before, .mix-product-tab[aria-pressed="true"]::before, .sol-curve-button[aria-pressed="true"]::before, .som-tab[aria-pressed="true"]::before, .som-bulk-button[aria-pressed="true"]::before, .som-limit-button[aria-pressed="true"]::before, .fil-choice[aria-pressed="true"]::before, .sl-chg[aria-pressed="true"]::before, .mb-pan[aria-pressed="true"]::before, .hm-b[aria-pressed="true"]::before, .pa-choice[aria-pressed="true"]::before, .sm-year[aria-pressed="true"]::before, .hm-pick[aria-pressed="true"]::before, .ct-ans[aria-pressed="true"]::before, .ib-iv-colbtn[aria-pressed="true"]::before {
  content: "" !important;
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--rs-choice,#0f766e);
  vertical-align: 1px;
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  overflow: hidden;
}

/* ---- view / mode: joined segmented tabs (wrap as separate segments on phones) ---- */

.ib-iv-views, .dx-modes, .dx-shells, .dx-ionstyle, .ip-modes, .ae-picks, .sg-modes, .pl-dirs, .ak-views, .rp-fig-tabs, .cos-compare-tabs, .mb-curve-mode-tabs, .sx-acts-row, .ae-b-view, .ct-tabs, .rsq-seg, .rsrm-filter, .cft-tabs, .sx-forms, :is(div, ul, nav, span):has( > .sol-tab-button), :is(div, ul, nav, span):has( > .cos-compare-tab), :is(div, ul, nav, span):has( > .mb-curve-mode-button), :is(div, ul, nav, span):has( > .rp-tab), :is(div, ul, nav, span):has( > .mix-view-button) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ib-iv-views button, .dx-modes button, .dx-shells button, .dx-ionstyle button, .ip-modes button, .ae-picks button, .sg-modes button, .pl-dirs button, .ak-views button, .rp-fig-tabs button, .cos-compare-tabs button, .mb-curve-mode-tabs button, .sx-acts-row button, .ae-b-view button, .ct-tabs button, .rsq-seg button, .rsrm-filter button, .cft-tabs button, .sx-forms button, .sol-tab-button, .cos-compare-tab, .mb-curve-mode-button, .rp-tab, .mix-view-button {
  font: inherit;
  font-size: 0.92em;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  min-height: 38px;
  padding: 6px 14px !important;
  border: 2px solid #7a8199 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--rs-ink,#25242f) !important;
  box-shadow: none !important;
  margin: 0;
}

.ib-iv-views button[aria-pressed="true"], .dx-modes button[aria-pressed="true"], .dx-shells button[aria-pressed="true"], .dx-ionstyle button[aria-pressed="true"], .ip-modes button[aria-pressed="true"], .ae-picks button[aria-pressed="true"], .sg-modes button[aria-pressed="true"], .pl-dirs button[aria-pressed="true"], .ak-views button[aria-pressed="true"], .rp-fig-tabs button[aria-pressed="true"], .cos-compare-tabs button[aria-pressed="true"], .mb-curve-mode-tabs button[aria-pressed="true"], .sx-acts-row button[aria-pressed="true"], .ae-b-view button[aria-pressed="true"], .ct-tabs button[aria-pressed="true"], .rsq-seg button[aria-pressed="true"], .rsrm-filter button[aria-pressed="true"], .cft-tabs button[aria-pressed="true"], .sx-forms button[aria-pressed="true"], .sol-tab-button[aria-pressed="true"], .cos-compare-tab[aria-pressed="true"], .mb-curve-mode-button[aria-pressed="true"], .rp-tab[aria-pressed="true"], .mix-view-button[aria-pressed="true"] {
  background: var(--rs-choice-soft,#e3f4f1) !important;
  color: var(--rs-ink,#25242f) !important;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .ib-iv-views, .dx-modes, .dx-shells, .dx-ionstyle, .ip-modes, .ae-picks, .sg-modes, .pl-dirs, .ak-views, .rp-fig-tabs, .cos-compare-tabs, .mb-curve-mode-tabs, .sx-acts-row, .ae-b-view, .ct-tabs, .rsq-seg, .rsrm-filter, .cft-tabs, .sx-forms, :is(div, ul, nav, span):has( > .sol-tab-button), :is(div, ul, nav, span):has( > .cos-compare-tab), :is(div, ul, nav, span):has( > .mb-curve-mode-button), :is(div, ul, nav, span):has( > .rp-tab), :is(div, ul, nav, span):has( > .mix-view-button) {
    flex-wrap: nowrap;
    gap: 0 !important;
  }
}

@media (min-width: 768px) {
  .ib-iv-views button, .dx-modes button, .dx-shells button, .dx-ionstyle button, .ip-modes button, .ae-picks button, .sg-modes button, .pl-dirs button, .ak-views button, .rp-fig-tabs button, .cos-compare-tabs button, .mb-curve-mode-tabs button, .sx-acts-row button, .ae-b-view button, .ct-tabs button, .rsq-seg button, .rsrm-filter button, .cft-tabs button, .sx-forms button, .sol-tab-button, .cos-compare-tab, .mb-curve-mode-button, .rp-tab, .mix-view-button {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (min-width: 768px) {
  .ib-iv-views button + button, .dx-modes button + button, .dx-shells button + button, .dx-ionstyle button + button, .ip-modes button + button, .ae-picks button + button, .sg-modes button + button, .pl-dirs button + button, .ak-views button + button, .rp-fig-tabs button + button, .cos-compare-tabs button + button, .mb-curve-mode-tabs button + button, .sx-acts-row button + button, .ae-b-view button + button, .ct-tabs button + button, .rsq-seg button + button, .rsrm-filter button + button, .cft-tabs button + button, .sx-forms button + button, .sol-tab-button + .sol-tab-button, .cos-compare-tab + .cos-compare-tab, .mb-curve-mode-button + .mb-curve-mode-button, .rp-tab + .rp-tab, .mix-view-button + .mix-view-button {
    margin-left: -2px !important;
  }
}

@media (min-width: 768px) {
  .ib-iv-views button, .dx-modes button, .dx-shells button, .dx-ionstyle button, .ip-modes button, .ae-picks button, .sg-modes button, .pl-dirs button, .ak-views button, .rp-fig-tabs button, .cos-compare-tabs button, .mb-curve-mode-tabs button, .sx-acts-row button, .ae-b-view button, .ct-tabs button, .rsq-seg button, .rsrm-filter button, .cft-tabs button, .sx-forms button, .sol-tab-button, .cos-compare-tab, .mb-curve-mode-button, .rp-tab, .mix-view-button {
    border-radius: 0 !important;
  }
}

@media (min-width: 768px) {
  .ib-iv-views button:first-child, .dx-modes button:first-child, .dx-shells button:first-child, .dx-ionstyle button:first-child, .ip-modes button:first-child, .ae-picks button:first-child, .sg-modes button:first-child, .pl-dirs button:first-child, .ak-views button:first-child, .rp-fig-tabs button:first-child, .cos-compare-tabs button:first-child, .mb-curve-mode-tabs button:first-child, .sx-acts-row button:first-child, .ae-b-view button:first-child, .ct-tabs button:first-child, .rsq-seg button:first-child, .rsrm-filter button:first-child, .cft-tabs button:first-child, .sx-forms button:first-child, .sol-tab-button:first-child, .cos-compare-tab:first-child, .mb-curve-mode-button:first-child, .rp-tab:first-child, .mix-view-button:first-child {
    border-radius: 10px 0 0 10px !important;
  }
}

@media (min-width: 768px) {
  .ib-iv-views button:last-child, .dx-modes button:last-child, .dx-shells button:last-child, .dx-ionstyle button:last-child, .ip-modes button:last-child, .ae-picks button:last-child, .sg-modes button:last-child, .pl-dirs button:last-child, .ak-views button:last-child, .rp-fig-tabs button:last-child, .cos-compare-tabs button:last-child, .mb-curve-mode-tabs button:last-child, .sx-acts-row button:last-child, .ae-b-view button:last-child, .ct-tabs button:last-child, .rsq-seg button:last-child, .rsrm-filter button:last-child, .cft-tabs button:last-child, .sx-forms button:last-child, .sol-tab-button:last-child, .cos-compare-tab:last-child, .mb-curve-mode-button:last-child, .rp-tab:last-child, .mix-view-button:last-child {
    border-radius: 0 10px 10px 0 !important;
  }
}

/* ---- ordered steps: one joined bar; done = tick, current = solid navy ---- */

.ce-st-steps, .de-views, .rp-steps, .ct-stepbar {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ct-stepbar > li {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.ce-st-steps button, .de-views button, .rp-steps button, .ct-stepbar button {
  font: inherit;
  font-size: 0.92em;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  width: 100%;
  min-height: 42px;
  padding: 6px 10px !important;
  border: 2px solid var(--rs-navy,#394362) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--rs-navy,#394362) !important;
  box-shadow: none !important;
  margin: 0;
}

.ce-st-steps > button + button, .ce-st-steps > li + li > button, .de-views > button + button, .de-views > li + li > button, .rp-steps > button + button, .rp-steps > li + li > button, .ct-stepbar > button + button, .ct-stepbar > li + li > button {
  margin-top: -2px !important;
}

.ce-st-steps > :first-child, .ce-st-steps > li:first-child > button, .de-views > :first-child, .de-views > li:first-child > button, .rp-steps > :first-child, .rp-steps > li:first-child > button, .ct-stepbar > :first-child, .ct-stepbar > li:first-child > button {
  border-radius: 10px 10px 0 0 !important;
}

.ce-st-steps > :last-child, .ce-st-steps > li:last-child > button, .de-views > :last-child, .de-views > li:last-child > button, .rp-steps > :last-child, .rp-steps > li:last-child > button, .ct-stepbar > :last-child, .ct-stepbar > li:last-child > button {
  border-radius: 0 0 10px 10px !important;
}

.ce-st-steps button.is-done, .de-views button.is-done, .rp-steps button.is-done, .ct-stepbar button.is-done {
  background: #e6ebf8 !important;
}

.ce-st-steps button.is-done::before, .de-views button.is-done::before, .rp-steps button.is-done::before, .ct-stepbar button.is-done::before {
  content: "\2713";
  font-weight: 900;
  flex: none;
}

.ce-st-steps button[aria-current="step"], .de-views button[aria-current="step"], .rp-steps button[aria-current="step"], .ct-stepbar button[aria-current="step"] {
  background: var(--rs-navy,#394362) !important;
  color: #fff !important;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .ce-st-steps, .de-views, .rp-steps, .ct-stepbar {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .ce-st-steps > button + button, .ce-st-steps > li + li > button, .de-views > button + button, .de-views > li + li > button, .rp-steps > button + button, .rp-steps > li + li > button, .ct-stepbar > button + button, .ct-stepbar > li + li > button {
    margin-top: 0 !important;
    margin-left: -2px !important;
  }
}

@media (min-width: 768px) {
  .ce-st-steps > :first-child, .ce-st-steps > li:first-child > button, .de-views > :first-child, .de-views > li:first-child > button, .rp-steps > :first-child, .rp-steps > li:first-child > button, .ct-stepbar > :first-child, .ct-stepbar > li:first-child > button {
    border-radius: 10px 0 0 10px !important;
  }
}

@media (min-width: 768px) {
  .ce-st-steps > :last-child, .ce-st-steps > li:last-child > button, .de-views > :last-child, .de-views > li:last-child > button, .rp-steps > :last-child, .rp-steps > li:last-child > button, .ct-stepbar > :last-child, .ct-stepbar > li:last-child > button {
    border-radius: 0 10px 10px 0 !important;
  }
}

.rp-steps .rp-step-n, .ce-st-steps .ct-step-n {
  flex: none;
}

/* ---- chosen tiles / cards: keep their own fill and shape, add the 2px navy border and a tick ---- */

.sl-rung[aria-pressed="true"], .ee-tile[aria-pressed="true"], .pc-tile[aria-pressed="true"], .dc-tile[aria-pressed="true"], .al-tile[aria-pressed="true"], .mb-tile[aria-pressed="true"], .chr-spot[aria-pressed="true"], .fil-app-part[aria-pressed="true"], .dis-part-button[aria-pressed="true"], .un-rung[aria-pressed="true"], .som-particle-type[aria-pressed="true"], .mc-row[aria-pressed="true"], .ib-iv-el[aria-pressed="true"] {
  border-color: var(--rs-choice,#0f766e) !important;
  box-shadow: inset 0 0 0 1px var(--rs-choice,#0f766e) !important;
  position: relative;
}

.sl-rung[aria-pressed="true"]::after, .ee-tile[aria-pressed="true"]::after, .pc-tile[aria-pressed="true"]::after, .dc-tile[aria-pressed="true"]::after, .al-tile[aria-pressed="true"]::after, .mb-tile[aria-pressed="true"]::after, .chr-spot[aria-pressed="true"]::after, .fil-app-part[aria-pressed="true"]::after, .dis-part-button[aria-pressed="true"]::after, .un-rung[aria-pressed="true"]::after, .som-particle-type[aria-pressed="true"]::after, .mc-row[aria-pressed="true"]::after, .ib-iv-el[aria-pressed="true"]::after {
  content: "" !important;
  position: absolute;
  top: 5px;
  right: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rs-choice,#0f766e);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--rs-choice,#0f766e);
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  overflow: hidden;
}

/* ---- actions: solid navy, or quiet outline ---- */

.ct-action, .sol-action-button, .rs-we-try, .dif-action-button--primary, .dif-action-button--process, .fil-action-button--primary, .cry-action-button--primary, .cry-action-button--process, .dis-action-button--primary, .dis-action-button--process, .re-swap, .ct-s {
  border: 2px solid var(--rs-navy,#394362) !important;
  border-radius: 8px !important;
  background: var(--rs-navy,#394362) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: none !important;
}

.ct-action:hover, .sol-action-button:hover, .rs-we-try:hover, .ct-s:hover, .re-swap:hover, .dif-action-button--primary:hover, .dif-action-button--process:hover, .cry-action-button--primary:hover, .cry-action-button--process:hover, .fil-action-button--primary:hover, .dis-action-button--primary:hover {
  background: var(--rs-ink,#25242f) !important;
  border-color: var(--rs-ink,#25242f) !important;
}

.ct-action:disabled, .ct-s:disabled {
  opacity: 0.45;
  cursor: default;
}

.ct-q, .sl-replay, .cos-reset-animation, .som-small-button, .dif-graph-clear, .cry-reveal-button, .sol-reset-button, .dif-action-button--reset, .fil-action-button--reset, .cry-action-button--reset, .dis-action-button--reset {
  border: 2px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--ct-quiet,#5a5e6e) !important;
  font-weight: 800;
  box-shadow: none !important;
  min-height: 40px;
  cursor: pointer;
  text-underline-offset: 3px;
}

.ct-q:hover, .sl-replay:hover, .cos-reset-animation:hover, .som-small-button:hover, .dif-graph-clear:hover, .cry-reveal-button:hover, .sol-reset-button:hover, .dif-action-button--reset:hover, .fil-action-button--reset:hover, .cry-action-button--reset:hover, .dis-action-button--reset:hover {
  background: transparent !important;
  text-decoration: underline;
}

.ct-q:disabled {
  opacity: 0.45;
  cursor: default;
}

/* ---- switch (a button that toggles; role="switch" and aria-checked added by rs-controls.js) ---- */

.ct-sw[hidden] {
  display: none !important;
}

.ct-sw {
  position: relative;
  display: inline-block;
  font: inherit;
  font-weight: 700;
  color: #3f4458 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 4px 0 4px 52px !important;
  min-height: 32px;
  text-align: left;
  cursor: pointer;
}

.ct-sw::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -12px;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: #7a8199;
  transition: background 0.15s;
}

.ct-sw::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  margin-top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}

.ct-sw[aria-checked="true"]::before {
  background: var(--rs-choice,#0f766e);
}

.ct-sw[aria-checked="true"]::after {
  transform: translateX(18px);
}

/* ---- used / left out (titrations and mean runs): a quiet swapping pill, not a switch, no red ---- */

.ct-use {
  border-radius: 999px !important;
  padding: 4px 14px !important;
  min-height: 32px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none !important;
  border: 2px solid #7a8199 !important;
  background: #fff !important;
  color: #3f4458 !important;
}

.ct-use[aria-pressed="true"] {
  background: #e3f4e6 !important;
  border-color: #2e7d45 !important;
  color: #14532d !important;
}

.ct-struck {
  text-decoration: line-through;
  opacity: 0.65;
}

/* ---- focus (AA) ---- */

.al-carats button:focus-visible, .ce-st-rx button:focus-visible, .ce-sp-rx button:focus-visible, .cf-mk-pos button:focus-visible, .cf-mk-neg button:focus-visible, .cc-masses button:focus-visible, .cc-vols button:focus-visible, .cm-picks button:focus-visible, .cm-exps button:focus-visible, .cm-pred button:focus-visible, .de-res button:focus-visible, .ef-picks button:focus-visible, .gv-gases button:focus-visible, .gv-ns button:focus-visible, .lr-res button:focus-visible, .lr-n button:focus-visible, .mc-subs button:focus-visible, .mc-amts button:focus-visible, .mm-subs button:focus-visible, .mm-masses button:focus-visible, .pbm-picks button:focus-visible, .rm-res button:focus-visible, .rm-masses button:focus-visible, .rfm-picks button:focus-visible, .tc-sets button:focus-visible, .gp-sets button:focus-visible, .gp-scales button:focus-visible, .gp-lines button:focus-visible, .gr-sets button:focus-visible, .mr-sets button:focus-visible, .re-eq-row button:focus-visible, .re-find-row button:focus-visible, .sg-nums button:focus-visible, .sg-hows button:focus-visible, .sf-picks button:focus-visible, .sa-cuts button:focus-visible, .un-qs button:focus-visible, .un-ms button:focus-visible, .ak-ns button:focus-visible, .ak-isos button:focus-visible, .al-alks button:focus-visible, .al-reas button:focus-visible, .ck-alks button:focus-visible, .ck-brs button:focus-visible, .ck-cuts button:focus-visible, .co-fracs button:focus-visible, .pl-mons button:focus-visible, .ae-eye-pick button:focus-visible, .ae-read-pick button:focus-visible, .ae-air-pick button:focus-visible, .ae-b-pairs button:focus-visible, .dc-an-sets button:focus-visible, .dc-gr-segs button:focus-visible, .hr-sit button:focus-visible, .hm-inv button:focus-visible, .mu-inst button:focus-visible, .mu-tg-acc button:focus-visible, .mu-tg-pre button:focus-visible, .sl-starts button:focus-visible, .sl-opts button:focus-visible, .sx-structs button:focus-visible, .sx-subs button:focus-visible, .sx-cmp-row button:focus-visible, .ml-subs button:focus-visible, .dx-subs button:focus-visible, .sm-tl-years button:focus-visible, .chr-spots button:focus-visible, .ct-chips button:focus-visible, .hm-seg--can button:focus-visible, .rsg-filters button:focus-visible, .rsq-quick-picks button:focus-visible, .ml-models button:focus-visible, .dif-segment-button:focus-visible, .fil-segment-button:focus-visible, .cry-segment-button:focus-visible, .dis-segment-button:focus-visible, .mb-substance-tab:focus-visible, .mb-curve-segment-button:focus-visible, .mix-category-button:focus-visible, .mix-subtype-button:focus-visible, .mix-product-tab:focus-visible, .sol-curve-button:focus-visible, .som-tab:focus-visible, .som-bulk-button:focus-visible, .som-limit-button:focus-visible, .fil-choice:focus-visible, .sl-chg:focus-visible, .mb-pan:focus-visible, .hm-b:focus-visible, .pa-choice:focus-visible, .sm-year:focus-visible, .hm-pick:focus-visible, .ct-ans:focus-visible, .ib-iv-colbtn:focus-visible, .ib-iv-views button:focus-visible, .dx-modes button:focus-visible, .dx-shells button:focus-visible, .dx-ionstyle button:focus-visible, .ip-modes button:focus-visible, .ae-picks button:focus-visible, .sg-modes button:focus-visible, .pl-dirs button:focus-visible, .ak-views button:focus-visible, .rp-fig-tabs button:focus-visible, .cos-compare-tabs button:focus-visible, .mb-curve-mode-tabs button:focus-visible, .sx-acts-row button:focus-visible, .ae-b-view button:focus-visible, .ct-tabs button:focus-visible, .rsq-seg button:focus-visible, .rsrm-filter button:focus-visible, .cft-tabs button:focus-visible, .sx-forms button:focus-visible, .ce-st-steps button:focus-visible, .de-views button:focus-visible, .rp-steps button:focus-visible, .ct-stepbar button:focus-visible, .sl-rung:focus-visible, .ee-tile:focus-visible, .pc-tile:focus-visible, .dc-tile:focus-visible, .al-tile:focus-visible, .mb-tile:focus-visible, .chr-spot:focus-visible, .fil-app-part:focus-visible, .dis-part-button:focus-visible, .un-rung:focus-visible, .som-particle-type:focus-visible, .mc-row:focus-visible, .ib-iv-el:focus-visible {
  outline-offset: 2px;
}

.ct-q:focus-visible, .ct-s:focus-visible, .ct-sw:focus-visible, .ct-use:focus-visible, .ct-action:focus-visible, .al-carats button:focus-visible, .ce-st-rx button:focus-visible, .ce-sp-rx button:focus-visible, .cf-mk-pos button:focus-visible, .cf-mk-neg button:focus-visible, .cc-masses button:focus-visible, .cc-vols button:focus-visible, .cm-picks button:focus-visible, .cm-exps button:focus-visible, .cm-pred button:focus-visible, .de-res button:focus-visible, .ef-picks button:focus-visible, .gv-gases button:focus-visible, .gv-ns button:focus-visible, .lr-res button:focus-visible, .lr-n button:focus-visible, .mc-subs button:focus-visible, .mc-amts button:focus-visible, .mm-subs button:focus-visible, .mm-masses button:focus-visible, .pbm-picks button:focus-visible, .rm-res button:focus-visible, .rm-masses button:focus-visible, .rfm-picks button:focus-visible, .tc-sets button:focus-visible, .gp-sets button:focus-visible, .gp-scales button:focus-visible, .gp-lines button:focus-visible, .gr-sets button:focus-visible, .mr-sets button:focus-visible, .re-eq-row button:focus-visible, .re-find-row button:focus-visible, .sg-nums button:focus-visible, .sg-hows button:focus-visible, .sf-picks button:focus-visible, .sa-cuts button:focus-visible, .un-qs button:focus-visible, .un-ms button:focus-visible, .ak-ns button:focus-visible, .ak-isos button:focus-visible, .al-alks button:focus-visible, .al-reas button:focus-visible, .ck-alks button:focus-visible, .ck-brs button:focus-visible, .ck-cuts button:focus-visible, .co-fracs button:focus-visible, .pl-mons button:focus-visible, .ae-eye-pick button:focus-visible, .ae-read-pick button:focus-visible, .ae-air-pick button:focus-visible, .ae-b-pairs button:focus-visible, .dc-an-sets button:focus-visible, .dc-gr-segs button:focus-visible, .hr-sit button:focus-visible, .hm-inv button:focus-visible, .mu-inst button:focus-visible, .mu-tg-acc button:focus-visible, .mu-tg-pre button:focus-visible, .sl-starts button:focus-visible, .sl-opts button:focus-visible, .sx-structs button:focus-visible, .sx-subs button:focus-visible, .sx-cmp-row button:focus-visible, .ml-subs button:focus-visible, .dx-subs button:focus-visible, .sm-tl-years button:focus-visible, .chr-spots button:focus-visible, .ct-chips button:focus-visible, .hm-seg--can button:focus-visible, .rsg-filters button:focus-visible, .rsq-quick-picks button:focus-visible, .ml-models button:focus-visible, .dif-segment-button:focus-visible, .fil-segment-button:focus-visible, .cry-segment-button:focus-visible, .dis-segment-button:focus-visible, .mb-substance-tab:focus-visible, .mb-curve-segment-button:focus-visible, .mix-category-button:focus-visible, .mix-subtype-button:focus-visible, .mix-product-tab:focus-visible, .sol-curve-button:focus-visible, .som-tab:focus-visible, .som-bulk-button:focus-visible, .som-limit-button:focus-visible, .fil-choice:focus-visible, .sl-chg:focus-visible, .mb-pan:focus-visible, .hm-b:focus-visible, .pa-choice:focus-visible, .sm-year:focus-visible, .hm-pick:focus-visible, .ct-ans:focus-visible, .ib-iv-colbtn:focus-visible, .ib-iv-views button:focus-visible, .dx-modes button:focus-visible, .dx-shells button:focus-visible, .dx-ionstyle button:focus-visible, .ip-modes button:focus-visible, .ae-picks button:focus-visible, .sg-modes button:focus-visible, .pl-dirs button:focus-visible, .ak-views button:focus-visible, .rp-fig-tabs button:focus-visible, .cos-compare-tabs button:focus-visible, .mb-curve-mode-tabs button:focus-visible, .sx-acts-row button:focus-visible, .ae-b-view button:focus-visible, .ct-tabs button:focus-visible, .rsq-seg button:focus-visible, .rsrm-filter button:focus-visible, .cft-tabs button:focus-visible, .sx-forms button:focus-visible, .ce-st-steps button:focus-visible, .de-views button:focus-visible, .rp-steps button:focus-visible, .ct-stepbar button:focus-visible, .sl-rung:focus-visible, .ee-tile:focus-visible, .pc-tile:focus-visible, .dc-tile:focus-visible, .al-tile:focus-visible, .mb-tile:focus-visible, .chr-spot:focus-visible, .fil-app-part:focus-visible, .dis-part-button:focus-visible, .un-rung:focus-visible, .som-particle-type:focus-visible, .mc-row:focus-visible, .ib-iv-el:focus-visible {
  outline: 3px solid #185abc;
}

@media (prefers-reduced-motion: reduce) {
  .ct-sw::before, .ct-sw::after {
    transition: none;
  }
}

/* ---- real bugs ---- */

#rsDataColl .dc-err-panel .dc-ep-guess[hidden] {
  display: none !important;
}

#rsGraphs .gr-pred:not(.is-on) .gr-check {
  display: none !important;
}

.ct-use[aria-pressed="true"]::before {
  content: "\2713\00a0";
  font-weight: 900;
}

#rsTitrationCalc tr:not(.is-used) td:nth-child(2) {
  text-decoration: line-through;
  color: #5f6475;
}

.mr-chip.is-out {
  color: #5f6475 !important;
}

.mr-chip.is-out .mr-chip-v {
  text-decoration: line-through;
}

.mr-chip.ct-use .mr-chip-t {
  display: block !important;
}

.mr-chip.ct-use[aria-pressed="true"]::before {
  content: none !important;
}

.mr-chip.ct-use[aria-pressed="true"] .mr-chip-t::before {
  content: "\2713\00a0";
  font-weight: 900;
}

/* ====== standalone pages ====== */

/* GCSE menu and helper (q17a): solid navy for Show my topics / Done / Next / Show my plan, quiet for the helper and small links */

.hm-btn--show, .hm-btn--primary {
  background: var(--rs-navy,#394362) !important;
  border: 2px solid var(--rs-navy,#394362) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: none !important;
}

.hm-btn--show:hover, .hm-btn--primary:hover {
  background: var(--rs-ink,#25242f) !important;
  border-color: var(--rs-ink,#25242f) !important;
}

.hm-btn--helper, .hm-plan-link, .hm-link-btn, .hm-btn--save {
  background: #fff !important;
  border: 2px solid var(--rs-navy,#394362) !important;
  color: var(--rs-navy,#394362) !important;
  font-weight: 800;
  box-shadow: none !important;
  border-radius: 8px !important;
}

.hm-btn--helper:hover, .hm-plan-link:hover, .hm-link-btn:hover, .hm-btn--save:hover {
  background: #eef1f9 !important;
}

.hm-seg--can button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hm-dialog label:has(input[type=checkbox]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

/* Starters (q19a, q21a): navy like the rest; Duplicate says its word; Collapse is a labelled switch */

.cft-btn {
  border: 2px solid var(--rs-navy,#394362) !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.cft-btn.ct-q {
  background: transparent !important;
  color: var(--ct-quiet,#5a5e6e) !important;
  border-color: transparent !important;
}

.cft-btn.ct-s {
  background: var(--rs-navy,#394362) !important;
  color: #fff !important;
}

.cft-btn.ct-ans {
  border-radius: 18px !important;
  border-width: 2px !important;
  border-color: #7a8199 !important;
  background: #fff !important;
  color: var(--rs-ink,#25242f) !important;
}

.cft-btn.ct-ans[aria-pressed="true"] {
  border-color: var(--rs-choice,#0f766e) !important;
  background: var(--rs-choice-soft,#e3f4f1) !important;
  box-shadow: inset 0 0 0 1px var(--rs-choice,#0f766e) !important;
}

.cft-btn.ct-ans[aria-pressed="true"]::before {
  content: "" !important;
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--rs-choice,#0f766e);
  vertical-align: 1px;
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  overflow: hidden;
}

.cft-tabs .cft-btn {
  border-radius: 0 !important;
  margin-left: -2px;
  background: #fff !important;
  color: var(--rs-navy,#394362) !important;
}

.cft-tabs .cft-btn:first-child {
  border-radius: 10px 0 0 10px !important;
  margin-left: 0;
}

.cft-tabs .cft-btn:last-child {
  border-radius: 0 10px 10px 0 !important;
}

.cft-tabs .cft-btn[aria-pressed="true"] {
  background: var(--rs-choice-soft,#e3f4f1) !important;
  color: var(--rs-ink,#25242f) !important;
}

.cft-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

@media (max-width: 767px) {
  .cft-tabs {
    gap: 6px;
  }
}

@media (max-width: 767px) {
  .cft-tabs .cft-btn {
    border-radius: 10px !important;
    margin-left: 0;
  }
}

.cft-copy-btn {
  width: auto !important;
  padding: 0 8px !important;
  gap: 4px;
  font-weight: 800;
  color: var(--rs-navy,#394362);
  border: 2px solid var(--rs-navy,#394362) !important;
}

.cft-copy-btn::after {
  content: "Duplicate";
  font-size: 12px;
}

.cft-toggle {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 42px !important;
  height: 24px !important;
  border-radius: 12px !important;
  background: #7a8199 !important;
  border: 0 !important;
  flex: none;
}

.cft-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s;
}

.cft-toggle:checked {
  background: var(--rs-choice,#0f766e) !important;
}

.cft-toggle:checked::after {
  transform: translateX(18px);
}

.cft-toggle-lab {
  font-size: 12px;
  font-weight: 800;
  color: #3f4458;
  margin-left: 6px;
}

/* the thank-you tile's "Before you hide this tile" dialog only (was a site-wide rule on every Bootstrap outline button) */

dialog:has(button[value="donate"]) :is(.btn-outline-secondary, .btn-outline-primary) {
  border: 2px solid var(--rs-navy,#394362) !important;
  color: var(--rs-navy,#394362) !important;
  background: #fff !important;
}

dialog:has(button[value="donate"]) .btn-primary {
  background: var(--rs-navy,#394362) !important;
  border-color: var(--rs-navy,#394362) !important;
}

/* Roadmap (q20a) */

.rsrm-current-button, .rsrm-route-controls button {
  background: #fff !important;
  border: 2px solid var(--rs-navy,#394362) !important;
  color: var(--rs-navy,#394362) !important;
  font-weight: 800;
  border-radius: 8px !important;
}

.rsrm-vote-button {
  background: var(--rs-navy,#394362) !important;
  border: 2px solid var(--rs-navy,#394362) !important;
  color: #fff !important;
  font-weight: 800;
}

.rsrm-vote-button[aria-pressed="true"] {
  background: #fff !important;
  color: var(--rs-navy,#394362) !important;
}

/* Games (q22a, q23a): each game keeps its own palette; chosen items get a tick, and icon-only controls get words by tooltip + aria-label (rs-controls.js) */

.cc-seg button[aria-pressed="true"]::before, .cc-reactor-presets button[aria-pressed="true"]::before {
  content: "" !important;
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--rs-choice,#0f766e);
  vertical-align: 1px;
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  overflow: hidden;
}

/* Exam timer (q27: ink colour left as it is). Switches get role="switch" in rs-controls.js */

/* Games index filters: two labelled groups */

.rsg-filter-area {
  display: grid !important;
  grid-template-columns: auto minmax(0,1fr);
  gap: 8px 14px;
  align-items: center;
}

.rsg-filter-area .rsg-filter-label {
  margin: 0;
}

.rsg-filter-group-label {
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5f6475;
  margin: 8px 0 4px;
  display: block;
}

/* ====== B: States ====== */

#rsMixturesPage .mix-label-toggle.ct-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0 !important;
  padding: 4px 0 !important;
  background: none !important;
  cursor: pointer;
  color: #3f4458;
}

#rsMixturesPage .mix-label-toggle.ct-switch input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  position: relative;
  width: 42px;
  height: 24px;
  margin: 0;
  border-radius: 12px;
  background: #7a8199;
  cursor: pointer;
  transition: background 0.15s;
}

#rsMixturesPage .mix-label-toggle.ct-switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}

#rsMixturesPage .mix-label-toggle.ct-switch input:checked {
  background: var(--rs-choice,#0f766e);
}

#rsMixturesPage .mix-label-toggle.ct-switch input:checked::after {
  transform: translateX(18px);
}

.mb-flip-action, .mix-flip-action {
  display: inline-block !important;
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 12px;
  border: 2px solid var(--rs-navy,#394362);
  border-radius: 8px;
  background: #fff;
  color: var(--rs-navy,#394362) !important;
  font-weight: 800;
}

.cry-reveal-button {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 6px 12px !important;
}

/* practical kit runner: "Do step N" is the action (solid navy); Reset is quiet */

.sap-btn:is([data-chp-step], [data-efp-step], [data-wtp-step], [data-cry-step], [data-dis-step], [data-fil-step], [data-sp-step], [data-gp-step]) {
  background: var(--rs-navy,#394362) !important;
  border: 2px solid var(--rs-navy,#394362) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 800;
  box-shadow: none !important;
}

.sap-btn:is([data-chp-reset], [data-efp-reset], [data-wtp-reset], [data-cry-reset], [data-dis-reset], [data-fil-reset], [data-sp-reset], [data-gp-reset]) {
  background: transparent !important;
  border: 2px solid transparent !important;
  color: var(--ct-quiet,#5a5e6e) !important;
  border-radius: 8px !important;
  font-weight: 800;
  box-shadow: none !important;
}

/* ====== B: Calculations: the shared calculator's Method row (rs-calc .rc-format) is a view: segmented tabs ====== */

.rc-card .rc-format .rc-radios {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 6px;
}

.rc-card .rc-format .rc-radio {
  display: inline-flex !important;
  align-items: center;
  grid-template-columns: none;
  min-height: 38px;
  padding: 6px 14px !important;
  border: 2px solid #7a8199 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--rs-ink,#25242f) !important;
  font-weight: 800;
  box-shadow: none !important;
}

.rc-card .rc-format .rc-radio[aria-checked="true"] {
  background: var(--rs-choice-soft,#e3f4f1) !important;
  color: var(--rs-ink,#25242f) !important;
  position: relative;
  z-index: 1;
}

.rc-card .rc-format .rc-radio .rc-mode-name {
  color: inherit !important;
}

.rc-card .rc-format .rc-radio-dot {
  display: none !important;
}

@media (min-width: 768px) {
  .rc-card .rc-format .rc-radios {
    flex-wrap: nowrap;
    gap: 0 !important;
  }
}

@media (min-width: 768px) {
  .rc-card .rc-format .rc-radio {
    border-radius: 0 !important;
  }
}

@media (min-width: 768px) {
  .rc-card .rc-format .rc-radio + .rc-radio {
    margin-left: -2px !important;
  }
}

@media (min-width: 768px) {
  .rc-card .rc-format .rc-radio:first-child {
    border-radius: 10px 0 0 10px !important;
  }
}

@media (min-width: 768px) {
  .rc-card .rc-format .rc-radio:last-child {
    border-radius: 0 10px 10px 0 !important;
  }
}

.rc-card .rc-format .rc-radio:focus-visible {
  outline: 3px solid #185abc;
  outline-offset: 2px;
  position: relative;
  z-index: 1;
}

/* ====== B: Bonding ====== */

.sx-formslot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 8px;
}

.sx-formslot[hidden] {
  display: none !important;
}

.sx-formslot .ct-control-label {
  margin: 0;
}

/* ion puzzle "Right or wrong?": an answer pair, so chips, not two coloured action buttons (the words carry the meaning) */

.ip-checkq-btns .ip-yes, .ip-checkq-btns .ip-no {
  border: 2px solid #7a8199 !important;
  border-radius: 18px !important;
  background: #fff !important;
  color: var(--rs-ink,#25242f) !important;
  font-weight: 800;
  box-shadow: none !important;
}

.ip-checkq-btns .ip-yes:hover, .ip-checkq-btns .ip-no:hover {
  background: #f5f6fb !important;
  border-color: var(--rs-navy,#394362) !important;
}

/* ====== B: standalone ====== */

/* helper dialog "✓ I can / ✗ Not yet": the labels already carry ✓ and ✗, so the chip tick is not added twice */

.hm-seg--can button[aria-pressed="true"]::before {
  content: none !important;
}

/* chapter quiz: Stretch is a switch */

.rsq-stretch-toggle input[type=checkbox] {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  position: relative;
  width: 42px;
  height: 24px;
  margin: 0;
  border-radius: 12px;
  background: #7a8199;
  cursor: pointer;
}

.rsq-stretch-toggle input[type=checkbox]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}

.rsq-stretch-toggle input[type=checkbox]:checked {
  background: var(--rs-choice,#0f766e);
}

.rsq-stretch-toggle input[type=checkbox]:checked::after {
  transform: translateX(18px);
}

.rsq-stretch-toggle input[type=checkbox]:focus-visible {
  outline: 3px solid #185abc;
  outline-offset: 2px;
}

.rsq-btn-quiet {
  border: 2px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--ct-quiet,#5a5e6e) !important;
  font-weight: 800;
}

/* Escape Room (q25, q26), in its own colours: primaries solid; Override stages one joined stepper; round launchers outline */

#aegis-console:not(.theme-iona) .btn.primary {
  background: #156b4e;
  border-color: #156b4e;
  color: #fff;
}

#aegis-console:not(.theme-iona) .btn.primary:hover {
  background: #0f513b;
  border-color: #0f513b;
}

#aegis-console:not(.theme-iona) .btn.alt {
  background: #fff;
  border: 2px solid #2563eb;
  color: #0b2a63;
}

#aegis-console .ovr-tabs {
  gap: 0 !important;
}

#aegis-console .ovr-tabs li + li {
  margin-left: -1px;
}

#aegis-console .ovr-tab {
  border-radius: 0 !important;
}

#aegis-console .ovr-tabs li:first-child .ovr-tab {
  border-radius: 10px 0 0 10px !important;
}

#aegis-console .ovr-tabs li:last-child .ovr-tab {
  border-radius: 0 10px 10px 0 !important;
}

#aegis-console .ovr-tab[aria-current=step] {
  background: #156b4e !important;
  border-color: #156b4e !important;
  color: #fff !important;
  box-shadow: none !important;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  #aegis-console .ovr-tabs {
    gap: 6px !important;
  }
}

@media (max-width: 767px) {
  #aegis-console .ovr-tabs li + li {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  #aegis-console .ovr-tab, #aegis-console .ovr-tabs li .ovr-tab {
    border-radius: 10px !important;
  }
}

/* BIO-Guesser: Guess is the solid action (already); Reveal ancestor is quiet */

#bio-guesser .tol-hint-btn:not(.is-final):not(:disabled) {
  background: #fff;
  border: 2px solid var(--tol-amber-ink,#7a4f00);
  color: var(--tol-amber-ink,#7a4f00);
}

/* Atom Clicker (q22): chosen buy amount / reactor preset show a tick; rows get a visible label */

.ct-grouplab {
  display: inline-block;
  margin: 0 6px 0 0;
  font-size: 0.8em;
  font-weight: 800;
  color: inherit;
  opacity: 0.85;
  align-self: center;
}

/* chromatography: Run and Reset side by side; the ruler switch (a view option) on its own line after them */

#rsChrom #chrExplorer .chr-c-run .ct-seg-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#rsChrom #chrExplorer .chr-c-run .chr-ruler {
  order: 3;
  grid-column: 1 / -1;
  justify-self: start;
}

/* ====== B: step walkers (rp-step) as one joined bar ====== */

#rsProfiles .rp-steps, #rsBondEnergies .rp-steps {
  display: flex !important;
  grid-column: 1 / -1;
}

#rsProfiles .rp-steps > li, #rsBondEnergies .rp-steps > li {
  display: flex !important;
  flex: 1 1 0;
  min-width: 0;
}

.rp-steps .rp-step[aria-current="step"] .rp-step-n {
  background: #fff !important;
  color: var(--rs-navy,#394362) !important;
}

.rp-steps .rp-step.is-done .rp-step-n {
  display: none !important;
}

.wat-stepcount {
  margin: 0 0 6px;
  font-weight: 800;
  color: var(--rs-navy,#394362);
  min-height: 1.4em;
}

/* ====== B: diffusion water view = segmented tabs ====== */

.dif-segmented:has( > [data-water-view]) {
  display: flex;
  flex-wrap: nowrap;
  gap: 0 !important;
}

.dif-segmented:has( > [data-water-view]) > .dif-segment-button {
  border: 2px solid #7a8199 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--rs-ink,#25242f) !important;
  font-weight: 800;
  box-shadow: none !important;
  padding: 6px 14px !important;
}

.dif-segmented:has( > [data-water-view]) > .dif-segment-button + .dif-segment-button {
  margin-left: -2px !important;
}

.dif-segmented:has( > [data-water-view]) > .dif-segment-button:first-child {
  border-radius: 10px 0 0 10px !important;
}

.dif-segmented:has( > [data-water-view]) > .dif-segment-button:last-child {
  border-radius: 0 10px 10px 0 !important;
}

.dif-segmented:has( > [data-water-view]) > .dif-segment-button[aria-pressed="true"] {
  background: var(--rs-choice-soft,#e3f4f1) !important;
  color: var(--rs-ink,#25242f) !important;
  position: relative;
  z-index: 1;
}

.dif-segmented:has( > [data-water-view]) > .dif-segment-button[aria-pressed="true"]::before {
  content: "" !important;
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  margin-right: 6px !important;
  border-radius: 50% !important;
  vertical-align: 1px !important;
  background: var(--rs-choice,#0f766e) !important;
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  overflow: hidden;
}

/* ionic bonding summary table: chips keep the narrow table-cell shape */

thead .ib-iv-colbtn {
  width: 100%;
  min-height: 32px;
  padding: 2px 0 !important;
  border-radius: 6px !important;
  text-align: center;
}

thead .ib-iv-colbtn[aria-pressed="true"]::before {
  content: "" !important;
  margin-right: 3px;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rs-choice,#0f766e);
  vertical-align: 1px;
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  overflow: hidden;
}

/* Colour system (21 Nov 2026, colour-plan.md): view / mode tabs show a filled teal dot when chosen (the space is always there, so nothing moves) */

.ib-iv-views button::before, .dx-modes button::before, .dx-shells button::before, .dx-ionstyle button::before, .ip-modes button::before, .ae-picks button::before, .sg-modes button::before, .pl-dirs button::before, .ak-views button::before, .rp-fig-tabs button::before, .cos-compare-tabs button::before, .mb-curve-mode-tabs button::before, .sx-acts-row button::before, .ae-b-view button::before, .ct-tabs button::before, .rsq-seg button::before, .rsrm-filter button::before, .cft-tabs button::before, .sx-forms button::before, .sol-tab-button::before, .cos-compare-tab::before, .mb-curve-mode-button::before, .rp-tab::before, .mix-view-button::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 1px;
  background: transparent;
}

.ib-iv-views button[aria-pressed="true"]::before, .dx-modes button[aria-pressed="true"]::before, .dx-shells button[aria-pressed="true"]::before, .dx-ionstyle button[aria-pressed="true"]::before, .ip-modes button[aria-pressed="true"]::before, .ae-picks button[aria-pressed="true"]::before, .sg-modes button[aria-pressed="true"]::before, .pl-dirs button[aria-pressed="true"]::before, .ak-views button[aria-pressed="true"]::before, .rp-fig-tabs button[aria-pressed="true"]::before, .cos-compare-tabs button[aria-pressed="true"]::before, .mb-curve-mode-tabs button[aria-pressed="true"]::before, .sx-acts-row button[aria-pressed="true"]::before, .ae-b-view button[aria-pressed="true"]::before, .ct-tabs button[aria-pressed="true"]::before, .rsq-seg button[aria-pressed="true"]::before, .rsrm-filter button[aria-pressed="true"]::before, .cft-tabs button[aria-pressed="true"]::before, .sx-forms button[aria-pressed="true"]::before, .sol-tab-button[aria-pressed="true"]::before, .cos-compare-tab[aria-pressed="true"]::before, .mb-curve-mode-button[aria-pressed="true"]::before, .rp-tab[aria-pressed="true"]::before, .mix-view-button[aria-pressed="true"]::before {
  background: var(--rs-choice,#0f766e);
  content: "" !important;
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  overflow: hidden;
}

.rc-card .rc-format .rc-radio::before {
  content: "";
  display: inline-block;
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  background: transparent;
}

.rc-card .rc-format .rc-radio[aria-checked="true"]::before {
  background: var(--rs-choice,#0f766e);
  content: "" !important;
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  overflow: hidden;
}

.cft-tabs .cft-btn[aria-pressed="true"]::before {
  content: "" !important;
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 1px;
  background: var(--rs-choice,#0f766e);
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  overflow: hidden;
}

.ct-q:focus-visible {
  text-decoration: underline;
}

/* GCSE menu and topic box view toggles (Exam board / A to Z ...): chosen = teal, as every other view tab (not the helper's I can / Not yet) */

.hm-view > button[aria-pressed="true"] {
  background: var(--rs-choice-soft,#e3f4f1) !important;
  color: var(--rs-ink,#25242f) !important;
  font-weight: 800;
}

.hm-seg:not(.hm-seg--can) > button[aria-pressed="true"] {
  background: var(--rs-choice-soft,#e3f4f1) !important;
  color: var(--rs-ink,#25242f) !important;
  font-weight: 700;
}

.hm-seg:not(.hm-seg--can) > button[aria-pressed="true"]::before {
  content: "" !important;
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--rs-choice,#0f766e);
  vertical-align: 1px;
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  overflow: hidden;
}

/* Name the isomer (the controls standard's own card): its chips are the page's .ni-chip, drawn under #akNameIso */

.ni-chip[aria-pressed="true"] {
  border-color: var(--rs-choice,#0f766e) !important;
  background: var(--rs-choice-soft,#e3f4f1) !important;
  color: var(--rs-ink,#25242f) !important;
  box-shadow: inset 0 0 0 1px var(--rs-choice,#0f766e) !important;
}

.ni-chip[aria-pressed="true"]::before {
  content: "" !important;
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--rs-choice,#0f766e);
  vertical-align: 1px;
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  overflow: hidden;
}

/* Release 22c (21 Nov 2026): the GCSE menu's Cards / Path toggle shows the same teal dot as the other view toggles */

.hm-view > button[aria-pressed="true"]::before {
  content: "" !important;
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rs-choice,#0f766e);
  font-size: 0 !important;
  color: transparent !important;
}

.rc-card .rc-format .rc-radios > .rc-radio {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
  padding: 6px 10px !important;
}

@media (min-width: 768px) {
  .rc-card .rc-ladder .rc-format .rc-radios {
    flex-wrap: nowrap;
    gap: 0;
  }
}

@media (max-width: 767.98px) {
  .rc-card .rc-format .rc-radios {
    flex-wrap: nowrap !important;
    gap: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .rc-card .rc-format .rc-radios > .rc-radio {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
    line-height: 1.2;
    padding: 6px 6px !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .rc-card .rc-format .rc-radios > .rc-radio:first-child {
    border-radius: 10px 0 0 10px !important;
  }
}

@media (max-width: 767.98px) {
  .rc-card .rc-format .rc-radios > .rc-radio:last-child {
    border-radius: 0 10px 10px 0 !important;
  }
}

.rs-page .rs-preview {
  opacity: .3;
  filter: grayscale(1);
  pointer-events: none;
  user-select: none;
  margin-top: 10px;
}

#rsProfiles .ct-card.is-fs .rp-steps, #rsBondEnergies .ct-card.is-fs .rp-steps {
  flex-direction: column !important;
  align-items: stretch !important;
}

#rsProfiles .ct-card.is-fs .rp-steps > li, #rsBondEnergies .ct-card.is-fs .rp-steps > li {
  flex: 0 0 auto !important;
  width: 100% !important;
}

#rsProfiles .ct-card.is-fs .rp-step, #rsBondEnergies .ct-card.is-fs .rp-step {
  justify-content: flex-start !important;
  text-align: left !important;
  white-space: normal !important;
}

/* 27k: lists of choices that stack in a column are separate rounded buttons, not a joined bar */

.rs-page .sx-acts-row, .rs-page .sx-forms {
  gap: 6px !important;
}

.rs-page .sx-acts-row button, .rs-page .sx-forms button {
  border-radius: 10px !important;
  margin-left: 0 !important;
}

@media (min-width: 768px) {
  .rs-page .sx-acts-row, .rs-page .sx-forms {
    gap: 6px !important;
  }
}

@media (min-width: 768px) {
  .rs-page .sx-acts-row button, .rs-page .sx-forms button {
    border-radius: 10px !important;
    margin-left: 0 !important;
  }
}

