/* The 3D blade page (cart/blade3d.py). Loaded after store.css. */
.b3-wrap { max-width: 1440px; }
.b3-lead, .rr-page p.b3-lead { font-size: 1rem; line-height: 1.5; margin: 0 0 14px; color: var(--rr-text-2); }
.b3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.b3-stage { position: sticky; top: 74px; z-index: 5; background: var(--rr-card); border: 1px solid var(--rr-line); border-radius: var(--rr-radius); box-shadow: var(--rr-shadow); overflow: hidden; }
.b3-view { position: relative; height: 31vh; min-height: 200px; background: radial-gradient(circle at 50% 40%, #ffffff, #d5dde6); }
.b3-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.b3-view canvas:active { cursor: grabbing; }
.b3-view canvas:focus-visible { outline: 3px solid rgba(0, 75, 136, .6); outline-offset: -3px; }
.b3-size { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #1a2332; font-weight: 700; font-size: .85rem; pointer-events: none; }
.b3-size:empty { display: none; }
.b3-flat { display: none; height: 100%; padding: 10px; text-align: center; overflow: auto; }
.b3-flat img { max-height: calc(100% - 40px); max-width: 100%; }
.b3-flat p, .rr-page .b3-flat p { font-size: .9rem; line-height: 1.4; margin: 4px 0 0; color: #3d4f63; }
.is-flat .b3-flat { display: block; }
.is-flat canvas, .is-flat .b3-buttons, .is-flat .b3-size { display: none; }
.b3-buttons { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
.b3-buttons button { min-height: 40px; min-width: 40px; padding: 6px 12px; border-radius: 10px; border: 2px solid var(--rr-blue); background: var(--rr-card); color: var(--rr-blue); font: 700 .9rem/1 var(--rr-font); cursor: pointer; }
.b3-buttons button:hover { background: var(--rr-blue-tint); }
.b3-buttons button[aria-pressed="true"] { background: var(--rr-blue); color: #fff; }
.b3-warn { margin: 0 10px 8px; padding: 8px 12px; border-radius: 10px; background: var(--rr-amber-tint); color: #7a4f00; }
.b3-warn[hidden], .b3-facts[hidden], .b3-wrong[hidden] { display: none; }
.b3-warn p, .rr-page .b3-warn p { margin: 0; font-size: .9rem; line-height: 1.4; }
.b3-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 12px 6px; font-size: .9rem; line-height: 1.4; }
.b3-facts div { display: flex; gap: 6px; }
.b3-facts dt { font-weight: 600; color: var(--rr-text-3); margin: 0; }
.b3-facts dd { font-weight: 700; margin: 0; }
.b3-note, .rr-page p.b3-note { margin: 0 12px 8px; font-size: .75rem; line-height: 1.35; color: var(--rr-text-3); }
.b3-panel { display: grid; gap: 12px; min-width: 0; }
.b3-group { padding: 0; }
.b3-group summary { padding: 14px 18px; font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.b3-group > .rr-help, .rr-page .b3-group > p.rr-help { margin: 0 18px 10px; font-size: .875rem; line-height: 1.4; }
.b3-field { padding: 10px 18px 14px; border-top: 1px solid var(--rr-line); }
.b3-top { display: flex; align-items: center; gap: 8px; min-height: 28px; margin-bottom: 4px; }
.b3-top label { font-weight: 700; margin: 0; flex: 1; }
.b3-picked { display: none; padding: 1px 8px; border-radius: 999px; background: var(--rr-green-tint); color: var(--rr-green); font-size: .75rem; font-weight: 700; }
.b3-clear { display: none; border: 0; background: none; color: var(--rr-blue); font: 600 .85rem/1 var(--rr-font); text-decoration: underline; padding: 8px 4px; cursor: pointer; }
.is-picked .b3-picked, .is-picked .b3-clear { display: inline-block; }
.b3-row { display: flex; align-items: center; gap: 12px; }
.b3-row input[type="range"] { flex: 1; min-width: 0; height: 36px; accent-color: var(--rr-blue); }
.b3-field:not(.is-picked) input[type="range"] { opacity: .55; }
.b3-box { display: flex; align-items: center; gap: 4px; flex: none; width: 118px; }
.b3-box .rr-input { min-height: 44px; text-align: right; }
.b3-box span { width: 10px; color: var(--rr-text-3); }
.b3-wrong, .rr-page p.b3-wrong { margin: 4px 0 0; font-size: .875rem; line-height: 1.4; color: var(--rr-red); font-weight: 600; }
.b3-field .rr-help, .rr-page .b3-field p.rr-help { margin: 4px 0 0; line-height: 1.4; font-size: .85rem; }
.b3-error { background: #fde7ea; color: #a3001c; border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.b3-error p, .rr-page .b3-error p, .rr-page p.b3-error { margin: 0; font-size: .95rem; line-height: 1.45; }
.rr-page p.b3-error { padding: 10px 14px; }
.b3-save .rr-label { margin-top: 12px; }
.b3-save { scroll-margin-top: 45vh; }
.b3-save .rr-help, .rr-page .b3-save p.rr-help { font-size: .875rem; line-height: 1.4; margin: 0; }
.b3-qty { max-width: 130px; }
.b3-jump { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; background: var(--rr-blue); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 30, 60, .35); }
.b3-jump:hover { color: #fff; text-decoration: none; background: var(--rr-blue-dark); }
.b3-check { margin-top: 24px; }
.b3-check .rr-help, .rr-page .b3-check p.rr-help { line-height: 1.4; font-size: .9rem; }
.b3-what { margin-top: 22px; }
.b3-specs-h { margin: 14px 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--rr-text-3); font-weight: 700; }
.b3-specs { margin: 0; }
.b3-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--rr-line); }
.b3-specs dt { font-weight: 600; margin: 0; }
.b3-specs dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 991.98px) {        /* leave room for the sliders under it */
  .b3-buttons { gap: 4px; padding: 6px 8px; }
  .b3-buttons button { flex: 1 0 auto; padding: 4px 6px; min-height: 38px; font-size: .82rem; }
  .b3-buttons [data-b3-do="in"], .b3-buttons [data-b3-do="out"] { display: none; }        /* pinch to zoom */
  .b3-note, .rr-page p.b3-note { font-size: .68rem; margin-bottom: 6px; }
  .b3-facts, .b3-warn p, .rr-page .b3-warn p { font-size: .8rem; }
  .b3-wrap { padding-bottom: 80px; }
}
@media (min-width: 992px) {
  .b3 { grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); }
  .b3-stage { top: 56px; }
  .b3-view { height: min(56vh, 700px); }
  .b3-save { scroll-margin-top: 20px; }
  .b3-jump { display: none; }
}
html[data-theme="dark"] .b3-view { background: radial-gradient(circle at 50% 40%, #5c6672, #262c34); }
html[data-theme="dark"] .b3-flat p { color: #e4e9f0; }
html[data-theme="dark"] .b3-buttons button { border-color: #7db4ea; color: #9cc8f5; }
html[data-theme="dark"] .b3-buttons button[aria-pressed="true"] { background: #1f5fbf; color: #fff; }
html[data-theme="dark"] .b3-clear { color: #9cc8f5; }
html[data-theme="dark"] .b3-warn { background: #4a3a12; color: #ffe2a0; }
html[data-theme="dark"] .b3-error { background: #4d1620; color: #ffc9d1; }
html[data-theme="dark"] .b3-wrong { color: #ff97a6; }
html[data-theme="dark"] .b3-picked { background: #17442c; color: #8fe3b4; }
/* the cutting test */
.b3-left { display: contents; }
.b3-view canvas.is-moving { cursor: move; }
.b3-run { padding-top: 0; }
.b3-run .b3-go { background: var(--rr-red); border-color: var(--rr-red); color: #fff; }
.b3-run .b3-go:hover { background: #a8001d; }
.b3-state select { min-height: 38px; border-radius: 10px; border: 2px solid var(--rr-line); background: var(--rr-card); color: var(--rr-text); font: 600 .9rem/1 var(--rr-font); padding: 0 8px; }
.b3-state, .rr-page p.b3-state { display: flex; align-items: center; gap: 12px; margin: 0 12px 6px; font-size: .95rem; line-height: 1.4; }
.b3-state strong { flex: 1; } .b3-state span { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.b3-sim { padding: 0; }
.b3-sim > summary { padding: 14px 18px; font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.b3-sim h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--rr-text-3); font-weight: 700; margin: 12px 14px 4px; }
.b3-best, .rr-page p.b3-best { margin: 0 14px 6px; font-size: .95rem; line-height: 1.4; font-weight: 700; }
.b3-best[hidden] { display: none; }
.b3-problems { list-style: none; margin: 0 14px; padding: 0; display: grid; gap: 6px; font-size: .92rem; line-height: 1.4; }
.b3-problems li { border-left: 5px solid #1a7f4b; padding: 6px 10px; border-radius: 6px; background: var(--rr-green-tint); color: #17442c; }
.b3-problems li[data-level="1"] { border-color: #e0a100; background: var(--rr-amber-tint); color: #5d3c00; }
.b3-problems li[data-level="2"] { border-color: #d92d20; background: #fde7ea; color: #7a0014; }
.b3-chart { display: block; width: calc(100% - 28px); height: 90px; margin: 12px 14px 0; }
.b3-key, .rr-page p.b3-key { display: flex; gap: 16px; margin: 2px 14px 4px; font-size: .8rem; line-height: 1.4; font-weight: 700; }
.b3-key-rpm { color: #1f6cc9; } .b3-key-load { color: #c8241e; } .b3-key-heat { color: #9a5f00; }
.b3-gauges { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 10px; padding-bottom: 8px; }
.b3-gauges dl { margin: 0 14px; }
.b3-gauges dl > div { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 4px 0; font-size: .88rem; line-height: 1.35; border-bottom: 1px solid var(--rr-line); }
.b3-gauges dt { font-weight: 600; margin: 0; color: var(--rr-text-2); }
.b3-gauges dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.b3-gauges progress { grid-column: 1 / -1; width: 100%; height: 6px; border: 0; border-radius: 3px; background: #dfe6ee; color: #1a7f4b; -webkit-appearance: none; appearance: none; overflow: hidden; }
.b3-gauges progress[hidden] { display: none; }
.b3-gauges progress::-webkit-progress-bar { background: #dfe6ee; }
.b3-gauges progress::-webkit-progress-value { background: #1a7f4b; }
.b3-gauges progress::-moz-progress-bar { background: #1a7f4b; }
[data-level="1"] > progress::-webkit-progress-value { background: #e0a100; } [data-level="1"] > progress::-moz-progress-bar { background: #e0a100; }
[data-level="2"] > progress::-webkit-progress-value { background: #d92d20; } [data-level="2"] > progress::-moz-progress-bar { background: #d92d20; }
.is-flat .b3-state { display: none; }
@media (min-width: 992px) {
  .b3-left { display: block; position: sticky; top: 56px; max-height: calc(100vh - 66px); overflow-y: auto; min-width: 0; scrollbar-width: thin; }
  .b3-left .b3-stage { position: static; }
  .b3-left .b3-sim { margin-top: 12px; }
  .b3-view { height: min(50vh, 640px); }
}
html[data-theme="dark"] .b3-problems li { background: #173524; color: #c9f0d8; }
html[data-theme="dark"] .b3-problems li[data-level="1"] { background: #4a3a12; color: #ffe2a0; }
html[data-theme="dark"] .b3-problems li[data-level="2"] { background: #4d1620; color: #ffc9d1; }
html[data-theme="dark"] .b3-run .b3-go { background: #c8102e; border-color: #c8102e; color: #fff; }
html[data-theme="dark"] .b3-gauges progress { background: #36404c; }
html[data-theme="dark"] .b3-gauges progress::-webkit-progress-bar { background: #36404c; }
html[data-theme="dark"] .b3-key-rpm { color: #7db4ea; } html[data-theme="dark"] .b3-key-load { color: #ff8b85; } html[data-theme="dark"] .b3-key-heat { color: #ffc35c; }
/* ---- the settings (2026-12-01 redesign) ---- */
.b3-jobs, .b3-set, .b3-notes { padding: 16px 18px; }
.b3-set .rr-help, .rr-page .b3-set p.rr-help, .rr-page .b3-jobs p.rr-help { margin: 0 0 10px; font-size: .9rem; line-height: 1.4; }
.b3-jobgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.b3-job { margin: 0; cursor: pointer; }
.b3-job input, .b3-choices input, .b3-wood input { position: absolute; opacity: 0; pointer-events: none; }
.b3-job span { display: block; height: 100%; padding: 10px 12px; border: 2px solid var(--rr-line); border-radius: 12px; font-size: .84rem; line-height: 1.35; color: var(--rr-text-2); }
.b3-job b { display: block; font-size: .95rem; color: var(--rr-text); }
.b3-job:hover span { border-color: var(--rr-blue); }
.b3-job input:checked + span { border-color: var(--rr-blue); background: var(--rr-blue-tint); box-shadow: inset 4px 0 0 var(--rr-blue); }
.b3-job input:focus-visible + span, .b3-choices input:focus-visible + span, .b3-wood input:focus-visible ~ span { outline: 3px solid rgba(0, 75, 136, .5); outline-offset: 1px; }
.b3-find { display: flex; gap: 8px; margin-bottom: 10px; }
.b3-find .rr-input { min-height: 44px; min-width: 0; }
.b3-find .rr-btn { flex: none; font-size: .85rem; padding: 6px 12px; }
.b3-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--rr-line); }
.b3-tabs[hidden] { display: none; }
.b3-tabs button { flex: 1; min-height: 46px; border: 0; border-radius: 10px 10px 0 0; background: none; color: var(--rr-text-2); font: 800 1rem/1 var(--rr-font); cursor: pointer; border-bottom: 4px solid transparent; margin-bottom: -2px; }
.b3-tabs button[aria-selected="true"] { color: var(--rr-blue); border-bottom-color: var(--rr-blue); }
.b3-count { display: inline-block; min-width: 20px; margin-left: 6px; padding: 3px 6px; border-radius: 999px; background: var(--rr-green-tint); color: var(--rr-green); font-size: .75rem; }
.b3-count[hidden], .b3-none[hidden], .b3-tab[hidden], .b3-field[hidden], .is-out { display: none !important; }
.rr-page .b3 .b3-sec h3, .rr-page .b3 .b3-sim h3 { font-family: "Mulish", system-ui, sans-serif !important; letter-spacing: .06em; }
.b3-sec h3 { margin: 18px 0 2px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; color: var(--rr-text-3); }
.b3-set .b3-field { padding: 10px 0 12px; border-top: 1px solid var(--rr-line); }
.b3-sec h3 + .b3-field { border-top: 0; }
.b3-notes .b3-field { padding: 0; border: 0; }
.b3-name { font-weight: 700; margin: 0; flex: 1; }
.b3-words { color: var(--rr-text-3); font-size: .85rem; font-weight: 600; }
.b3-auto { flex: none; min-height: 28px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rr-blue); background: var(--rr-card); color: var(--rr-blue); font: 700 .78rem/1 var(--rr-font); cursor: pointer; }
.b3-auto:disabled { border-color: transparent; background: var(--rr-green-tint); color: var(--rr-green); cursor: default; }
.b3-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.b3-choices label { margin: 0; cursor: pointer; }
.b3-choices span { display: flex; align-items: center; min-height: 42px; padding: 6px 14px; border: 2px solid var(--rr-line); border-radius: 10px; font-weight: 700; font-size: .92rem; }
.b3-choices label:hover span { border-color: var(--rr-blue); }
.b3-choices input:checked + span { background: var(--rr-blue); border-color: var(--rr-blue); color: #fff; }
.b3-choices .is-auto span { border-color: var(--rr-green); background: var(--rr-green-tint); color: var(--rr-green); }
.b3-hideauto { display: none; }
.b3-woods summary { display: flex; align-items: center; min-height: 46px; padding: 8px 14px; border: 2px solid var(--rr-line); border-radius: 10px; font-weight: 700; cursor: pointer; }
.b3-woods > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; padding-top: 8px; }
.b3-kind, .rr-page p.b3-kind { grid-column: 1 / -1; margin: 8px 0 0; font-size: .8rem; line-height: 1.3; font-weight: 800; color: var(--rr-text-3); }
.b3-wood { display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 10px; min-height: 40px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; font-size: .92rem; font-weight: 600; }
.b3-wood:hover { border-color: var(--rr-line); }
.b3-wood:has(input:checked) { border-color: var(--rr-blue); background: var(--rr-blue-tint); }
.b3-wood svg { flex: none; }
.b3-more { border-top: 1px solid var(--rr-line); }
.b3-more > summary { padding: 12px 0; font-weight: 700; color: var(--rr-blue); cursor: pointer; }
/* the verdict */
.b3-verdict { padding: 12px 14px; border-left: 8px solid #1a7f4b; }
.b3-verdict[data-level="1"] { border-left-color: #e0a100; }
.b3-verdict[data-level="2"] { border-left-color: #d92d20; }
.b3-headline, .rr-page p.b3-headline { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.35; font-weight: 800; }
.b3-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.b3-tile { padding: 8px 10px; border-radius: 10px; background: var(--rr-green-tint); color: #123d27; display: grid; line-height: 1.25; }
.b3-tile span { font-size: .78rem; font-weight: 700; }
.b3-tile b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.b3-tile small { font-size: .74rem; }
.b3-tile em { font-style: normal; font-size: .74rem; font-weight: 800; }
.b3-tile[data-level="1"] { background: var(--rr-amber-tint); color: #5d3c00; }
.b3-tile[data-level="2"] { background: #fde7ea; color: #7a0014; }
.b3-verdict .b3-problems { margin: 10px 0 0; }
.b3-verdict .b3-problems:empty { margin: 0; }
.b3-problems li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.b3-problems button { flex: none; min-height: 38px; padding: 6px 14px; border: 0; border-radius: 10px; background: var(--rr-blue); color: #fff; font: 800 .88rem/1 var(--rr-font); cursor: pointer; }
.b3-left .b3-verdict { margin-top: 12px; }
.b3-tip { display: none; }
@media (max-width: 991.98px) {
  .b3-left .b3-verdict { margin-top: 0; }
  .b3-tiles { gap: 6px; }
  .b3-tile { padding: 6px 8px; }
  .b3-tile b { font-size: 1rem; }
  .b3-jobgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b3-find { flex-direction: column; }
}
@media (min-width: 992px) { .b3 { grid-template-columns: minmax(0, 1.35fr) minmax(400px, 1fr); } .b3-view { height: min(44vh, 560px); } }
html[data-theme="dark"] .b3-job input:checked + span, html[data-theme="dark"] .b3-wood:has(input:checked) { background: #1d3550; border-color: #7db4ea; box-shadow: inset 4px 0 0 #7db4ea; }
html[data-theme="dark"] .b3-tabs button[aria-selected="true"] { color: #9cc8f5; border-bottom-color: #9cc8f5; }
html[data-theme="dark"] .b3-auto { border-color: #7db4ea; color: #9cc8f5; }
html[data-theme="dark"] .b3-auto:disabled, html[data-theme="dark"] .b3-count { background: #17442c; color: #8fe3b4; border-color: transparent; }
html[data-theme="dark"] .b3-choices .is-auto span { background: #17442c; color: #8fe3b4; border-color: #2f8a5a; }
html[data-theme="dark"] .b3-choices input:checked + span { background: #1f5fbf; border-color: #1f5fbf; color: #fff; }
html[data-theme="dark"] .b3-more > summary { color: #9cc8f5; }
html[data-theme="dark"] .b3-tile { background: #173524; color: #c9f0d8; }
html[data-theme="dark"] .b3-tile[data-level="1"] { background: #4a3a12; color: #ffe2a0; }
html[data-theme="dark"] .b3-tile[data-level="2"] { background: #4d1620; color: #ffc9d1; }
html[data-theme="dark"] .b3-problems button { background: #1f5fbf; }

.b3-set .b3-box { width: 152px; }
.b3-set .b3-box .rr-input { width: 96px; flex: none; }
.b3-set .b3-box span { width: auto; font-size: .85rem; white-space: nowrap; }
.b3-set .rr-input::placeholder { color: var(--rr-green); opacity: 1; font-weight: 700; }
html[data-theme="dark"] .b3-set .rr-input::placeholder { color: #8fe3b4; }
.b3-find .rr-input::placeholder { color: var(--rr-text-3) !important; font-weight: 500; }
.b3-tile[data-level="none"] { background: #eef2f6; color: var(--rr-text); }
html[data-theme="dark"] .b3-tile[data-level="none"] { background: #2a323c; color: #e4e9f0; }

/* just the blade (the way it opens), or the cutting test */
.b3-modes { display: flex; gap: 0; margin: 10px 10px 0; border: 2px solid var(--rr-blue); border-radius: 12px; overflow: hidden; }
.b3-modes button { flex: 1; min-height: 44px; border: 0; background: var(--rr-card); color: var(--rr-blue); font: 800 .98rem/1 var(--rr-font); cursor: pointer; }
.b3-modes button[aria-pressed="true"] { background: var(--rr-blue); color: #fff; }
[data-mode="view"] .b3-run, [data-mode="view"] .b3-state, [data-mode="view"] .b3-verdict, [data-mode="view"] .b3-sim, [data-mode="view"] .b3-jobs,
[data-mode="view"] .b3-tabs, [data-mode="view"] #panel-wood, [data-mode="view"] #panel-saw { display: none !important; }
[data-mode="view"] #panel-blade { display: block !important; }
[data-mode="cut"] .b3-viewonly { display: none !important; }
.b3-try { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 18px; }
.b3-try p, .rr-page .b3-try p { margin: 0; font-size: .95rem; line-height: 1.4; }
.is-flat .b3-modes { display: none; }
[data-mode="view"] .b3-view { margin-bottom: 0; }
@media (min-width: 992px) { [data-mode="view"] .b3-view { height: min(62vh, 720px); } }
html[data-theme="dark"] .b3-modes { border-color: #7db4ea; }
html[data-theme="dark"] .b3-modes button { color: #9cc8f5; }
html[data-theme="dark"] .b3-modes button[aria-pressed="true"] { background: #1f5fbf; color: #fff; }

/* disclaimers */
.b3-legal, .rr-page p.b3-legal { margin: 0 10px 8px; padding: 8px 12px; border-radius: 10px; background: #fff3cd; color: #553c00; border: 1px solid #e6c766; font-size: .82rem; line-height: 1.4; }
.b3-legal a { color: inherit; text-decoration: underline; font-weight: 700; }
.b3-check .b3-legal, .rr-page .b3-check p.b3-legal { margin: 14px 0; }
.b3-legal--gate { font-size: .95rem; padding: 14px 16px; }
.b3-legal--gate p, .rr-page .b3-legal--gate p { margin: 0 0 10px; font-size: .95rem; line-height: 1.5; color: inherit; }
.b3-legal--gate .rr-check { margin: 4px 0 0; font-weight: 700; }
.b3-specs .b3-onauto dt, .b3-specs .b3-onauto dd { font-weight: 400; }
.b3-autotag { display: inline-block; padding: 0 6px; border: 1px solid var(--rr-line); border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--rr-text-3); }
.b3-fine, .rr-page p.b3-fine { margin: 6px 4px 0; font-size: .7rem; line-height: 1.35; color: var(--rr-text-3); }
.b3-fine a { color: inherit; text-decoration: underline; }
.b3-sim .b3-fine { margin: 6px 14px 10px; }
html[data-theme="dark"] .b3-legal { background: #43360f; color: #ffe9b0; border-color: #7a6118; }
