/* Cab Radio CB (crcb-) */
.crcb { position: relative; color: var(--mn-ink, #111); }
.crcb-head { max-width: 760px; margin-bottom: 22px; }
.crcb-k { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 800 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--mn-acc, #f5a623); }
.crcb-k svg { width: 18px; height: 18px; }
.crcb-head h2 { margin: 0 0 8px; font: 800 clamp(1.8rem, 4vw, 2.6rem)/1.08 var(--font-display, var(--font-body)); letter-spacing: -.01em; }
.crcb-head h2 span { color: var(--mn-mut, #5b6372); }
.crcb-d { margin: 0; font-size: 16px; color: var(--mn-mut, #5b6372); max-width: 62ch; }
.crcb-grid { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .crcb-grid { grid-template-columns: 1fr; } }

/* ---------- the rig ---------- */
.crcb-rig { --lcd: #ffb340; --face1: #2b2e36; --face2: #121318; --trim: rgb(255 255 255 / .12); --ink: #f3f1ec; --knob1: #e9ebef; --knob2: #8b9099;
  position: relative; display: grid; gap: 14px; padding: 18px; border-radius: 26px; color: var(--ink);
  background: linear-gradient(170deg, var(--face1), var(--face2)); border: 1px solid var(--trim);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), inset 0 -14px 30px rgb(0 0 0 / .35), 0 30px 70px -28px rgb(0 0 0 / .65), 0 0 60px -30px var(--lcd); transition: box-shadow .5s; }
.crcb-rig::before { content: ""; position: absolute; inset: 6px; border-radius: 21px; border: 1px solid rgb(255 255 255 / .05); pointer-events: none; }
.crcb-rig[data-skin="wood"] { --face1: #6b4425; --face2: #3a2312; --trim: rgb(255 214 170 / .2); background: repeating-linear-gradient(100deg, rgb(0 0 0 / .08) 0 3px, transparent 3px 11px), linear-gradient(170deg, var(--face1), var(--face2)); }
.crcb-rig[data-skin="orange"] { --face1: #ff8a1f; --face2: #c2560a; --trim: rgb(255 255 255 / .25); --ink: #1a0f05; --knob1: #2b2b30; --knob2: #0d0d10; }
.crcb-rig[data-skin="stealth"] { --face1: #141518; --face2: #050506; --trim: rgb(255 255 255 / .06); }
.crcb-rig[data-skin="hoosier"] { --face1: #1d4ed8; --face2: #0b1f5c; --trim: rgb(255 255 255 / .18); }
.crcb-rig[data-skin="pearl"] { --face1: #fbfaf7; --face2: #d9d6cf; --trim: rgb(0 0 0 / .1); --ink: #17181c; --knob1: #2b2b30; --knob2: #0d0d10; }
.crcb-rig.is-tx { box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), inset 0 -14px 30px rgb(0 0 0 / .35), 0 30px 70px -28px rgb(0 0 0 / .65), 0 0 0 2px #ff5a5f, 0 0 60px -10px #ff5a5f; }
.crcb-rig.is-rx { box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), inset 0 -14px 30px rgb(0 0 0 / .35), 0 30px 70px -28px rgb(0 0 0 / .65), 0 0 0 2px #34c759, 0 0 60px -14px #34c759; }

.crcb-rig__top { display: flex; align-items: center; gap: 8px; }
.crcb-plate { margin-right: auto; padding: 6px 12px; border-radius: 8px; font: 900 12px/1 var(--font-display, var(--font-body)); letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  background: linear-gradient(180deg, rgb(255 255 255 / .22), rgb(255 255 255 / .04)); border: 1px solid var(--trim); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3); max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crcb-led { font: 800 10px/1 var(--font-body); letter-spacing: .08em; padding: 5px 7px; border-radius: 6px; background: rgb(0 0 0 / .35); color: rgb(255 255 255 / .35); transition: color .2s, box-shadow .2s, background .2s; }
.crcb-rig.is-rx .crcb-led--rx { color: #0b2a12; background: #34c759; box-shadow: 0 0 14px #34c759; }
.crcb-rig.is-tx .crcb-led--tx { color: #2a0b0b; background: #ff5a5f; box-shadow: 0 0 14px #ff5a5f; animation: crcbBlink 1s steps(2) infinite; }
.crcb-ib { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--trim, rgb(127 127 127 / .2)); background: rgb(0 0 0 / .18); color: inherit; cursor: pointer; transition: transform .3s var(--mn-spring, ease); }
.crcb-ib svg { width: 19px; height: 19px; } .crcb-ib:active { transform: scale(.9) rotate(-20deg); }

.crcb-lcd { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in oklab, var(--lcd) 14%, #07080a), #050506 70%); border: 1px solid rgb(0 0 0 / .6); box-shadow: inset 0 2px 12px rgb(0 0 0 / .8), 0 1px 0 rgb(255 255 255 / .08); color: var(--lcd); }
.crcb-lcd::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgb(255 255 255 / .03) 0 1px, transparent 1px 3px); pointer-events: none; }
.crcb-lcd.is-flip .crcb-lcd__ch b { animation: crcbFlip .28s ease-out; }
.crcb-lcd__ch { display: grid; justify-items: center; }
.crcb-lcd__ch small { font: 800 10px/1 var(--font-body); letter-spacing: .2em; opacity: .7; }
.crcb-lcd__ch b { font: 400 clamp(54px, 9vw, 68px)/1 ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px color-mix(in oklab, var(--lcd) 80%, transparent), 0 0 2px var(--lcd); letter-spacing: -.02em; }
.crcb-lcd__info { min-width: 0; display: grid; gap: 4px; }
.crcb-lcd__info b { font: 700 14px/1.25 ui-monospace, Menlo, monospace; text-shadow: 0 0 10px color-mix(in oklab, var(--lcd) 60%, transparent); }
.crcb-lcd__info span { font: 500 12.5px/1.3 ui-monospace, Menlo, monospace; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crcb-smeter { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.crcb-smeter i { font: 800 11px/1 ui-monospace, monospace; font-style: normal; opacity: .7; }
.crcb-smeter span { display: flex; gap: 3px; flex: 1; }
.crcb-smeter em { flex: 1; height: 9px; border-radius: 2px; background: color-mix(in oklab, var(--lcd) 16%, transparent); transition: background .06s; }
.crcb-smeter em.is-on { background: var(--lcd); box-shadow: 0 0 8px var(--lcd); }
.crcb-smeter em:nth-child(n+10).is-on { background: #ff5a5f; box-shadow: 0 0 8px #ff5a5f; }
.crcb-rig.is-scan .crcb-lcd__ch b { animation: crcbScan .11s linear infinite; }

/* knobs */
.crcb-knobs { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; align-items: end; justify-items: center; }
.crcb-kn { display: grid; justify-items: center; gap: 8px; }
.crcb-kn > span { font: 800 10.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.crcb-knob { --a: 0deg; --s: 70px; position: relative; width: var(--s); height: var(--s); border-radius: 50%; cursor: grab; touch-action: none; outline: none;
  background: conic-gradient(from -135deg, var(--lcd) 0deg, var(--lcd) calc(var(--a) + 135deg), rgb(0 0 0 / .35) calc(var(--a) + 135deg), rgb(0 0 0 / .35) 270deg, transparent 270deg); padding: 5px; }
.crcb-knob--big { --s: 104px; }
.crcb-knob::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: repeating-conic-gradient(from -135deg, currentColor 0 1.2deg, transparent 1.2deg 6.75deg); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 68%, transparent 69%); mask: radial-gradient(circle, transparent 62%, #000 63%, #000 68%, transparent 69%); opacity: .35; clip-path: polygon(50% 50%, 0 100%, 0 0, 100% 0, 100% 100%); }
.crcb-knob__cap { position: absolute; inset: 7px; border-radius: 50%; transform: rotate(var(--a)); transition: transform .25s var(--mn-spring, ease);
  background: radial-gradient(circle at 35% 28%, var(--knob1), var(--knob2) 70%); box-shadow: 0 6px 14px rgb(0 0 0 / .5), inset 0 2px 1px rgb(255 255 255 / .55), inset 0 -3px 6px rgb(0 0 0 / .35); }
.crcb-knob__cap::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(rgb(0 0 0 / .1) 0 4deg, transparent 4deg 8deg); opacity: .6; }
.crcb-knob__dot { position: absolute; left: 50%; top: 8%; width: 6px; height: 18%; margin-left: -3px; border-radius: 3px; background: var(--lcd); box-shadow: 0 0 8px var(--lcd); }
.crcb-knob.is-turn { cursor: grabbing; } .crcb-knob.is-turn .crcb-knob__cap { transition: none; }
.crcb-knob:focus-visible { box-shadow: 0 0 0 3px color-mix(in oklab, var(--lcd) 60%, transparent); }
.crcb-rig[data-knob="soft"] .crcb-knob__cap { background: radial-gradient(circle at 40% 30%, #3a3c44, #15161a 75%); box-shadow: 0 6px 14px rgb(0 0 0 / .5), inset 0 1px 0 rgb(255 255 255 / .12); }
.crcb-rig[data-knob="soft"] .crcb-knob__cap::before { display: none; }
.crcb-rig[data-knob="neon"] .crcb-knob__cap { background: radial-gradient(circle at 40% 30%, #1d1f26, #08090b 75%); box-shadow: 0 0 0 2px var(--lcd), 0 0 22px -2px var(--lcd), inset 0 0 14px color-mix(in oklab, var(--lcd) 35%, transparent); }
.crcb-rig[data-knob="neon"] .crcb-knob__cap::before { display: none; }

/* keys */
.crcb-row { display: flex; gap: 8px; flex-wrap: wrap; }
.crcb-mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex: 1; min-width: 0; }
.crcb-key { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--trim, rgb(127 127 127 / .25)); cursor: pointer; font: 800 12.5px/1 var(--font-body); color: inherit;
  background: linear-gradient(180deg, rgb(255 255 255 / .12), rgb(255 255 255 / .02)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 3px 0 rgb(0 0 0 / .35); transition: transform .12s, box-shadow .12s, background .2s, color .2s; user-select: none; -webkit-user-select: none; white-space: nowrap; }
.crcb-key svg { width: 16px; height: 16px; flex: none; }
.crcb-key:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 1px 0 rgb(0 0 0 / .35); }
.crcb-key:disabled { opacity: .45; cursor: default; }
.crcb-key--w { flex: 1; }
.crcb-key--19 { min-width: 84px; }
.crcb-key.is-on, .crcb-key[aria-pressed="true"] { color: #0c0d10; background: var(--lcd, var(--mn-acc)); border-color: transparent; box-shadow: 0 0 18px -4px var(--lcd, var(--mn-acc)), 0 3px 0 rgb(0 0 0 / .35); }
.crcb-key.is-empty { opacity: .6; font-weight: 700; }
.crcb-key--send { flex: 1.3; color: #0c0d10; background: var(--lcd, var(--mn-acc, #f5a623)); border-color: transparent; }

/* PTT */
.crcb-ptt-wrap { display: grid; gap: 8px; justify-items: center; }
.crcb-ptt { position: relative; isolation: isolate; width: 100%; min-height: 92px; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 14px; border-radius: 22px; border: 0; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  color: #fff; background: linear-gradient(180deg, #3a3d46, #1a1b20); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), inset 0 -6px 14px rgb(0 0 0 / .4), 0 6px 0 #0a0a0c, 0 16px 30px -12px rgb(0 0 0 / .7); transition: transform .1s, box-shadow .1s, background .2s; }
.crcb-ptt svg { width: 28px; height: 28px; }
.crcb-ptt b { font: 800 17px/1.1 var(--font-display, var(--font-body)); }
.crcb-ptt small { font-size: 12.5px; opacity: .7; }
.crcb-ptt:active, .crcb-rig.is-tx .crcb-ptt { transform: translateY(4px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), inset 0 -4px 10px rgb(0 0 0 / .4), 0 2px 0 #0a0a0c; }
.crcb-rig.is-tx .crcb-ptt { background: linear-gradient(180deg, #ff6b6f, #c7262c); }
.crcb-ptt__ring { position: absolute; inset: 0; border-radius: inherit; z-index: -1; }
.crcb-rig.is-tx .crcb-ptt__ring { animation: crcbRing 1.3s ease-out infinite; }
.crcb-ptt.is-locked { background: linear-gradient(180deg, #2a2c33, #16171b); }
.crcb-ptt:focus-visible { outline: 3px solid var(--lcd); outline-offset: 3px; }
.crcb-ptt__h { margin: 0; font-size: 12.5px; line-height: 1.4; opacity: .78; text-align: center; cursor: default; }
.crcb-ptt__h a { color: inherit; font-weight: 800; }
.crcb-review { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: rgb(0 0 0 / .28); border: 1px solid var(--trim); animation: mnRise .4s var(--mn-spring, ease) both; }
.crcb-review[hidden] { display: none; }
.crcb-review p { margin: 0; font-size: 14px; font-weight: 600; }
.crcb-review__b { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- traffic log ---------- */
.crcb-log { display: grid; gap: 12px; padding: 18px; border-radius: 24px; background: var(--mn-glass, rgb(255 255 255 / .7)); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px); border: 1px solid var(--mn-line, rgb(0 0 0 / .08)); box-shadow: inset 0 1px 0 var(--mn-hi, #fff), 0 18px 50px -26px rgb(10 14 24 / .45); min-width: 0; }
.crcb-log__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.crcb-log__h h3 { margin: 0; font: 800 1.25rem/1.2 var(--font-display, var(--font-body)); }
.crcb-hops { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--mn-mut); }
.crcb-hops:empty { display: none; }
.crcb-hops button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--mn-line); background: rgb(127 127 127 / .1); color: inherit; font: 700 12.5px/1 var(--font-body); cursor: pointer; }
.crcb-hops i { font-style: normal; font-size: 11px; padding: 2px 6px; border-radius: 999px; background: var(--mn-acc); color: #0c0d10; }
.crcb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 620px; overflow-y: auto; overscroll-behavior: contain; }
.crcb-tx { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: rgb(127 127 127 / .08); border: 1px solid transparent; animation: mnRise .4s var(--mn-spring, ease) both; animation-delay: calc(var(--d, 0) * 30ms); transition: border-color .2s, background .2s; }
.crcb-tx.is-play { border-color: #34c759; background: color-mix(in oklab, #34c759 12%, transparent); }
.crcb-tx--re { margin-left: 32px; padding: 10px; background: rgb(127 127 127 / .05); }
.crcb-tx__play { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; background: var(--mn-acc); color: #0c0d10; box-shadow: 0 0 18px -6px var(--mn-acc); transition: transform .3s var(--mn-spring, ease); }
.crcb-tx.is-play .crcb-tx__play { background: #34c759; }
.crcb-tx__play svg { width: 18px; height: 18px; } .crcb-tx__play:active { transform: scale(.9); }
.crcb-tx__b { flex: 1; min-width: 0; display: grid; gap: 6px; }
.crcb-tx__h { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.crcb-tx__h b { font-size: 15px; }
.crcb-tx__h small { font-size: 12.5px; color: var(--mn-mut); }
.crcb-bot { font: 800 10px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 3px 6px; border-radius: 6px; background: rgb(127 127 127 / .18); color: var(--mn-mut); }
.crcb-wave { display: flex; align-items: center; gap: 2px; height: 26px; }
.crcb-wave i { flex: 1; border-radius: 2px; background: color-mix(in oklab, var(--mn-acc) 70%, transparent); opacity: .7; }
.crcb-tx.is-play .crcb-wave i { background: #34c759; animation: crcbWave 1s ease-in-out infinite alternate; } .crcb-tx.is-play .crcb-wave i:nth-child(odd) { animation-delay: -.4s; }
.crcb-tx__cap { margin: 0; font-size: 14px; }
.crcb-tx__act { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--mn-mut); }
.crcb-tx__act button, .crcb-tx__act a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; border: 0; background: none; color: inherit; font: 700 13px/1 var(--font-body); cursor: pointer; text-decoration: none; }
.crcb-tx__act svg { width: 15px; height: 15px; }
.crcb-tx__act button:hover, .crcb-tx__act a:hover { color: var(--mn-acc); }
.crcb-empty { display: grid; gap: 4px; padding: 22px 16px; text-align: center; border-radius: 16px; border: 1px dashed var(--mn-line); color: var(--mn-mut); }
.crcb-empty b { color: var(--mn-ink); font-size: 16px; }
.crcb-more { justify-self: center; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--mn-line); background: rgb(127 127 127 / .1); color: inherit; font: 700 13px/1 var(--font-body); cursor: pointer; }
.crcb-more[hidden] { display: none; }
.crcb-fine { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--mn-mut); }
.crcb-fine a { color: inherit; font-weight: 700; }

/* ---------- modals ---------- */
.crcb-modal { position: fixed; inset: 0; z-index: 9100; display: grid; place-items: center; padding: 16px; color: #f3f1ec; }
.crcb-modal__bg { position: absolute; inset: 0; background: rgb(5 6 10 / .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: mnFade .2s ease; }
.crcb-modal__p { position: relative; width: min(440px, 100%); display: grid; gap: 12px; justify-items: center; text-align: center; padding: 24px; border-radius: 24px; background: rgb(20 22 29 / .94); border: 1px solid rgb(255 255 255 / .1); box-shadow: 0 40px 90px -20px rgb(0 0 0 / .7); animation: mnPop .38s var(--mn-spring, ease); --lcd: var(--mn-acc, #f5a623); --trim: rgb(255 255 255 / .14); }
.crcb-modal__p h3 { margin: 0; font: 800 1.3rem/1.2 var(--font-display, var(--font-body)); }
.crcb-modal__p p { margin: 0; color: #b8bcc6; font-size: 15px; }
.crcb-modal__ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 3px solid #f5a623; color: #f5a623; font: 900 1.5rem/1 var(--font-display, var(--font-body)); box-shadow: 0 0 0 10px rgb(245 166 35 / .1); }
.crcb-modal__b { display: flex; gap: 8px; width: 100%; flex-wrap: wrap; }
.crcb-set__p { width: min(620px, 100%); max-height: min(88vh, 860px); padding: 0; gap: 0; text-align: left; justify-items: stretch; grid-template-rows: auto 1fr auto; overflow: hidden; }
.crcb-set__h, .crcb-set__f { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.crcb-set__f { border-bottom: 0; border-top: 1px solid rgb(255 255 255 / .08); }
.crcb-set__body { overflow-y: auto; padding: 6px 18px 18px; overscroll-behavior: contain; }
.crcb-set__body section { padding: 14px 0; border-bottom: 1px solid rgb(255 255 255 / .06); display: grid; gap: 14px; }
.crcb-set__body section:last-child { border-bottom: 0; }
.crcb-set__body h4 { margin: 0; font: 800 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--mn-acc, #f5a623); }
.crcb-set__d { margin: 0; font-size: 13.5px; color: #a3abba; }
.crcb-fld { display: grid; gap: 8px; }
.crcb-fld > span:first-child, .crcb-rng > span, .crcb-tog > span { display: grid; gap: 2px; font-weight: 700; font-size: 14.5px; }
.crcb-fld small, .crcb-rng small, .crcb-tog small { font-weight: 500; font-size: 12.5px; color: #a3abba; }
.crcb-fld input[type="text"], .crcb-memset input { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .06); color: #fff; font: 600 15px var(--font-body); }
.crcb-fld__row { display: flex; gap: 8px; }
.crcb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.crcb-chip { padding: 9px 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .05); color: #e8e6e1; font: 700 13px/1 var(--font-body); cursor: pointer; transition: transform .3s var(--mn-spring, ease); }
.crcb-chip[aria-pressed="true"] { background: var(--mn-acc, #f5a623); color: #0c0d10; border-color: transparent; }
.crcb-chip:active { transform: scale(.94); }
.crcb-sw { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.crcb-sw__b { display: grid; gap: 6px; justify-items: center; padding: 8px 6px; border-radius: 14px; border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .04); color: #e8e6e1; font: 700 12px/1.15 var(--font-body); cursor: pointer; text-align: center; }
.crcb-sw__b i { width: 100%; height: 30px; border-radius: 9px; border: 1px solid rgb(255 255 255 / .15); background: var(--sw, #333); }
.crcb-sw__b[aria-checked="true"] { border-color: var(--mn-acc, #f5a623); box-shadow: 0 0 0 2px var(--mn-acc, #f5a623); }
.crcb-sw__b--midnight i { background: linear-gradient(170deg, #2b2e36, #121318); } .crcb-sw__b--wood i { background: repeating-linear-gradient(100deg, rgb(0 0 0 / .12) 0 3px, transparent 3px 9px), linear-gradient(170deg, #6b4425, #3a2312); }
.crcb-sw__b--orange i { background: linear-gradient(170deg, #ff8a1f, #c2560a); } .crcb-sw__b--stealth i { background: linear-gradient(170deg, #141518, #050506); }
.crcb-sw__b--hoosier i { background: linear-gradient(170deg, #1d4ed8, #0b1f5c); } .crcb-sw__b--pearl i { background: linear-gradient(170deg, #fbfaf7, #d9d6cf); }
.crcb-sw__b[style] i { background: radial-gradient(circle at 30% 30%, var(--sw), #050506 90%); box-shadow: inset 0 0 12px var(--sw); }
.crcb-rng { display: grid; gap: 6px; }
.crcb-rng input { width: 100%; accent-color: var(--mn-acc, #f5a623); }
.crcb-tog { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.crcb-tog input { width: 22px; height: 22px; accent-color: var(--mn-acc, #f5a623); margin-top: 2px; flex: none; }
.crcb-memset { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.crcb-memset label { display: grid; gap: 4px; font: 800 12px/1 var(--font-body); color: #a3abba; }
html.crcb-lock { overflow: hidden; }

.crcb-toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 9200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 14px; background: rgb(14 15 20 / .92); color: #fff; font: 600 14px/1.35 var(--font-body); box-shadow: 0 16px 40px -12px rgb(0 0 0 / .6); transition: opacity .25s, transform .35s var(--mn-spring, ease); text-align: center; }
.crcb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@keyframes crcbBlink { 50% { opacity: .5; } }
@keyframes crcbFlip { from { opacity: .2; transform: translateY(-6px); filter: blur(3px); } }
@keyframes crcbScan { 50% { opacity: .55; } }
@keyframes crcbRing { 0% { box-shadow: 0 0 0 0 rgb(255 90 95 / .6); } 100% { box-shadow: 0 0 0 18px rgb(255 90 95 / 0); } }
@keyframes crcbWave { from { transform: scaleY(.5); } to { transform: scaleY(1.1); } }
@media (max-width: 520px) {
  .crcb-rig { padding: 14px; border-radius: 22px; }
  .crcb-knob--big { --s: 92px; } .crcb-knob { --s: 62px; }
  .crcb-mem { grid-template-columns: repeat(2, 1fr); }
  .crcb-row { flex-wrap: wrap; }
  .crcb-key--19 { flex: 1 1 100%; }
}
.mn-still .crcb-tx, .mn-still .crcb-lcd.is-flip .crcb-lcd__ch b, .mn-still .crcb-wave i, .mn-still .crcb-ptt__ring, .mn-still .crcb-led--tx { animation: none !important; }
