/* Jimbo Social: hands-free CB (VOX), CB tuner, CB Convoy */
.cb-vox, .cbt, .cbt *, .cvy, .cvy * { box-sizing: border-box; }

/* ---------- VOX chip ---------- */
.cb-vox { --v: 0; display: inline-flex; align-items: center; gap: .35rem; height: 36px; padding: 0 .7rem; border-radius: 999px; border: 1px solid var(--js-line, #d6d1c4); background: transparent; color: var(--color-text); font: inherit; font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.cb-vox__m { width: 10px; height: 10px; border-radius: 50%; background: #9a927f; box-shadow: 0 0 0 calc(var(--v) * 7px) rgb(34 197 94 / .28); transition: box-shadow .08s; }
.cb-vox.is-on { background: #161513; color: #ffb23f; border-color: #161513; }
.cb-vox.is-on .cb-vox__m { background: #22c55e; }
.cb-vox.is-tx { background: #e5262b; color: #fff; border-color: #e5262b; }
.cb-vox.is-tx .cb-vox__m { background: #fff; animation: cbPulse 1s ease-in-out infinite; }
#dmVox.ms-tool { width: auto; padding: 0 .55rem; height: 34px; }
.cbs__vox { width: 100%; justify-content: center; height: 46px; font-size: 13.5px; }
.cbs__voxn { margin: 0; font-size: 12px; color: var(--color-text-muted); text-align: center; }
.cb-vox-send { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9000; width: min(440px, calc(100vw - 24px)); display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 18px; background: #161513; color: #f4ead2; box-shadow: 0 14px 40px rgb(0 0 0 / .45); animation: cbxUp .25s ease-out; }
.cb-vox-send > span:nth-child(2) { flex: 1; display: grid; min-width: 0; } .cb-vox-send b { font-size: 14px; } .cb-vox-send small { font-size: 12px; color: #cdbf9f; }
.cb-vox-send__lcd { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #0c0b09; color: #ffb23f; font: 800 22px/1 ui-monospace, Menlo, monospace; text-shadow: 0 0 10px rgb(255 178 63 / .7); }
.cb-vox-send button { height: 40px; padding: 0 1rem; border-radius: 999px; border: 0; background: #e5262b; color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
@keyframes cbxUp { from { transform: translate(-50%, 20px); opacity: 0; } }

/* ---------- tuner entry points ---------- */
.cbs__head > div { flex: 1; min-width: 0; }
.cbs__tune { flex: none; display: inline-flex; align-items: center; gap: .3rem; height: 36px; padding: 0 .7rem; border-radius: 999px; border: 0; background: #161513; color: #ffb23f; font: inherit; font-size: 12.5px; font-weight: 900; cursor: pointer; }
.cbs__tune .js-i { width: 16px; height: 16px; }
.cbw-scan__x { display: inline-flex; gap: .35rem; }
.cbw-scan__t { display: inline-flex; align-items: center; height: 38px; padding: 0 .75rem; border-radius: 999px; border: 1px solid #4a453e; background: transparent; color: #f4ead2; font: inherit; font-weight: 800; font-size: 12.5px; cursor: pointer; text-decoration: none; white-space: nowrap; }
@media (max-width: 520px) { .cbw-scan__x { flex-basis: 100%; order: 4; } .cbw-scan__t { flex: 1; justify-content: center; } }

/* ---------- CB tuner faceplate ---------- */
.cbt-box .js-modal__box { max-width: 560px; }
.cbt { display: grid; gap: .8rem; padding-top: 1.9rem; }
.cbt__plate { display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; border-radius: 18px; background: linear-gradient(180deg, #3b362f, #141311); color: #f4ead2; box-shadow: inset 0 1px 0 rgb(255 255 255 / .12); }
.cbt__brand { display: grid; } .cbt__brand span { font-weight: 900; letter-spacing: .18em; font-size: 15px; color: #ffb23f; } .cbt__brand small { font-size: 9.5px; letter-spacing: .14em; color: #a99c80; }
.cbt__lcd { flex: 1; min-width: 0; display: grid; gap: .25rem; padding: .45rem .6rem; border-radius: 10px; background: #0c0b09; color: #ffb23f; font-family: ui-monospace, Menlo, monospace; text-shadow: 0 0 10px rgb(255 178 63 / .6); }
.cbt__lcd small { font-size: 9.5px; letter-spacing: .14em; opacity: .7; } .cbt__lcd b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbt__smeter { display: flex; gap: 3px; } .cbt__smeter em { flex: 1; height: 6px; border-radius: 2px; background: #2b2722; } .cbt__smeter em.on { background: #22c55e; box-shadow: 0 0 6px #22c55e; } .cbt__smeter em:nth-child(n+8).on { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.cbt__presets { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.cbt__presets button { flex: none; height: 34px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--js-line, #d6d1c4); background: transparent; color: var(--color-text); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.cbt__presets button[aria-checked="true"] { background: #161513; color: #ffb23f; border-color: #161513; }
.cbt-g { border-radius: 18px; padding: .7rem .75rem .8rem; background: #1d1b18; color: #f4ead2; }
.cbt-g h3 { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin: 0 0 .55rem; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #ffb23f; }
.cbt-g h3 small { font-size: 11.5px; letter-spacing: 0; text-transform: none; color: #a99c80; font-weight: 600; }
.cbt-ks { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6rem; }
.cbt-k { display: grid; justify-items: center; gap: .15rem; text-align: center; min-width: 0; }
.cbt-k b { font-size: 12.5px; margin-top: .25rem; } .cbt-k small { font-size: 10.5px; line-height: 1.3; color: #a99c80; }
.cbt-k__v { font: 700 12px/1 ui-monospace, Menlo, monospace; color: #ffb23f; }
.cbt-k__d { --r: 0deg; position: relative; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: grab; touch-action: none; background: conic-gradient(from 0deg, #4a453e, #2a2723, #4a453e, #2a2723, #4a453e); box-shadow: 0 6px 14px rgb(0 0 0 / .55), inset 0 2px 0 rgb(255 255 255 / .15), 0 0 0 5px #11100e; transform: rotate(var(--r)); transition: transform .1s; }
.cbt-k__d::before { content: ""; position: absolute; inset: -11px; border-radius: 50%; background: conic-gradient(from -135deg, #ffb23f 0 0, transparent 0); -webkit-mask: radial-gradient(circle, transparent 38px, #000 39px); mask: radial-gradient(circle, transparent 38px, #000 39px); opacity: 0; }
.cbt-k__d i { position: absolute; left: 50%; top: 6px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: #ffb23f; box-shadow: 0 0 8px #ffb23f; }
.cbt-k__d.is-turn { cursor: grabbing; box-shadow: 0 6px 14px rgb(0 0 0 / .55), inset 0 2px 0 rgb(255 255 255 / .15), 0 0 0 5px #11100e, 0 0 0 7px rgb(255 178 63 / .5); }
.cbt-k__d:focus-visible { outline: 3px solid #ffb23f; outline-offset: 7px; }
.cbt-g--vox .cbt-ks { grid-template-columns: 1fr; }
.cbt__check { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 16px; border: 1px dashed var(--js-line, #d6d1c4); }
.cbt__check .btn { flex: none; display: inline-flex; align-items: center; gap: .35rem; } .cbt__check .js-i { width: 18px; height: 18px; }
.cbt__check .btn.is-tx { background: #e5262b; border-color: #e5262b; box-shadow: 0 0 0 5px rgb(229 38 43 / .2); }
.cbt__check p { margin: 0; font-size: 12.5px; color: var(--color-text-muted); }
.cbt__fine { margin: 0; font-size: 11.5px; color: var(--color-text-muted); }
@media (max-width: 520px) { .cbt-ks { grid-template-columns: repeat(3, 1fr); } .cbt-k small { display: none; } .cbt__check { flex-direction: column; align-items: stretch; } }

/* ---------- CB Convoy ---------- */
.cvy { display: grid; gap: .8rem; }
.cvy-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 200px 1fr; gap: 1.2rem; align-items: center; padding: 1.3rem; border-radius: 24px; background: radial-gradient(120% 120% at 0% 0%, #2c2620, #0f0e0c 70%); color: #f4ead2; }
.cvy-hero__scope { position: relative; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, #13261a, #07100a 70%); box-shadow: inset 0 0 0 2px #1f4d2c, 0 0 40px rgb(34 197 94 / .15); overflow: hidden; }
.cvy-hero__scope i { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgb(34 197 94 / .35); }
.cvy-hero__scope i:nth-child(1) { width: 66%; height: 66%; } .cvy-hero__scope i:nth-child(2) { width: 33%; height: 33%; } .cvy-hero__scope i:nth-child(3) { width: 100%; height: 1px; border: 0; background: rgb(34 197 94 / .3); }
.cvy-hero__sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgb(34 197 94 / .55), transparent 70deg); animation: cvySweep 3.2s linear infinite; }
.cvy-hero__me { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center; border-radius: 50%; background: #ffb23f; color: #141414; box-shadow: 0 0 0 6px rgb(255 178 63 / .25); }
.cvy-hero__me svg { width: 22px; height: 22px; }
.cvy-kick { display: inline-flex; align-items: center; gap: .35rem; margin: 0; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #ffb23f; } .cvy-kick svg { width: 16px; height: 16px; }
.cvy-hero h1 { margin: .3rem 0 .4rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.05; color: #fff; }
.cvy-hero__t > p { margin: 0 0 .9rem; color: #d8ccb0; font-size: 14.5px; }
.cvy-go { display: inline-flex; align-items: center; gap: .45rem; } .cvy-go svg { width: 18px; height: 18px; }
.cvy-priv { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .9rem; font-size: 12.5px; color: #cdbf9f; } .cvy-priv b { color: #f4ead2; }
@keyframes cvySweep { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .cvy-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .cvy-hero__scope { width: 160px; height: 160px; } .cvy-priv { grid-template-columns: 1fr; text-align: left; } }

.cvy-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; padding: .7rem .8rem; border-radius: 18px; background: linear-gradient(180deg, #34302b, #141311); color: #f4ead2; }
.cvy-lcd { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: .5rem; padding: .45rem .7rem; border-radius: 10px; background: #0c0b09; color: #ffb23f; font-family: ui-monospace, Menlo, monospace; text-shadow: 0 0 10px rgb(255 178 63 / .6); }
.cvy-lcd small { grid-column: 1 / -1; font-size: 10px; letter-spacing: .14em; opacity: .75; } .cvy-lcd b { font-size: 30px; line-height: 1; } .cvy-lcd span { font-size: 12px; color: #e9c98a; }
.cvy-top__r { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.cvy-chips { display: flex; gap: 3px; padding: 3px; border-radius: 999px; background: #0c0b09; }
.cvy-chips button { height: 32px; padding: 0 .7rem; border-radius: 999px; border: 0; background: transparent; color: #cdbf9f; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.cvy-chips button[aria-checked="true"] { background: #ffb23f; color: #141414; }
.cvy-dark { display: inline-flex; align-items: center; gap: .35rem; height: 38px; padding: 0 .8rem; border-radius: 999px; border: 1px solid #5a534a; background: transparent; color: #f4ead2; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; } .cvy-dark svg { width: 16px; height: 16px; }
.cvy-plan { display: grid; grid-template-columns: 1fr 130px 130px; gap: .6rem; align-items: end; padding: .7rem .8rem; border-radius: 16px; border: 1px solid var(--js-line, #d6d1c4); }
.cvy-plan > div { display: grid; } .cvy-plan b { font-size: 14px; } .cvy-plan small { font-size: 12px; color: var(--color-text-muted); }
.cvy-f { display: grid; gap: .25rem; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); }
.cvy-f input, .cvy-f select { height: 42px; width: 100%; padding: 0 .7rem; border-radius: 12px; border: 1px solid var(--js-line, #d6d1c4); background: var(--color-bg); color: var(--color-text); font: inherit; font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; }
@media (max-width: 560px) { .cvy-plan { grid-template-columns: 1fr 1fr; } .cvy-plan > div { grid-column: 1 / -1; } }

.cvy-stage { display: grid; grid-template-columns: 170px 1fr; gap: .7rem; }
.cvy-radar { position: relative; border-radius: 18px; padding: .5rem .5rem .4rem; background: #0f0e0c; }
.cvy-r { display: block; width: 100%; height: auto; max-height: 360px; }
.cvy-r__yel { stroke: #ffb23f; stroke-width: 2; } .cvy-r__edge { stroke: #e9e2d0; stroke-width: 1.5; opacity: .7; } .cvy-r__dash { stroke: #e9e2d0; stroke-width: 1.2; stroke-dasharray: 8 9; opacity: .45; }
.cvy-r__tick { stroke: #ffffff; stroke-width: .5; opacity: .12; } .cvy-r__mi { fill: #8d8574; font: 700 8px ui-monospace, Menlo, monospace; text-anchor: start; }
.cvy-r__lbl { fill: #8d8574; font: 800 7px ui-sans-serif, system-ui, sans-serif; letter-spacing: .12em; text-anchor: middle; }
.cvy-r__me path { fill: #ffb23f; filter: drop-shadow(0 0 4px rgb(255 178 63 / .8)); }
.cvy-r__dot { cursor: pointer; } .cvy-r__dot circle { stroke: #0f0e0c; stroke-width: 2; } .cvy-r__dot text { fill: #0f0e0c; font: 900 9px ui-sans-serif, system-ui, sans-serif; text-anchor: middle; pointer-events: none; }
.cvy-r__dot:focus-visible circle { stroke: #fff; }
.cvy-r__dot.is-ahead circle { fill: #22c55e; } .cvy-r__dot.is-behind circle { fill: #60a5fa; } .cvy-r__dot.is-on circle { fill: #fb923c; } .cvy-r__dot.is-passed circle { fill: #a8a29e; } .cvy-r__dot.is-with circle { fill: #facc15; }
.cvy-radar { display: grid; align-items: center; }
.cvy-r__scan { pointer-events: none; }
.cvy-r__empty { position: absolute; left: .5rem; right: .5rem; bottom: 2.2rem; margin: 0; padding: .4rem .5rem; border-radius: 10px; background: rgb(15 14 12 / .86); color: #cdbf9f; font-size: 11.5px; text-align: center; }
.cvy-map { min-height: 340px; border-radius: 18px; overflow: hidden; background: #0f0e0c; }
.cvy-map .maplibregl-ctrl-attrib { font-size: 10px; }
@media (max-width: 640px) { .cvy-stage { grid-template-columns: 132px 1fr; } .cvy-map { min-height: 300px; } }

.cvy-mk { --hd: 0deg; position: relative; display: grid; justify-items: center; gap: 2px; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; }
.cvy-mk .js-av { border-radius: 50%; border: 3px solid #a8a29e; box-shadow: 0 4px 10px rgb(0 0 0 / .5); background: #222; }
.cvy-mk span { max-width: 92px; padding: 1px 6px; border-radius: 6px; background: rgb(15 14 12 / .85); font-size: 10.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvy-mk__arrow { position: absolute; top: -9px; left: 50%; width: 0; height: 0; margin-left: -6px; border: 6px solid transparent; border-bottom: 9px solid #a8a29e; border-top: 0; transform-origin: 6px 24px; transform: rotate(var(--hd)); display: none; }
.cvy-mk.has-hd .cvy-mk__arrow { display: block; }
.cvy-mk.is-ahead .js-av { border-color: #22c55e; } .cvy-mk.is-ahead .cvy-mk__arrow { border-bottom-color: #22c55e; }
.cvy-mk.is-behind .js-av { border-color: #60a5fa; } .cvy-mk.is-behind .cvy-mk__arrow { border-bottom-color: #60a5fa; }
.cvy-mk.is-on .js-av { border-color: #fb923c; } .cvy-mk.is-on .cvy-mk__arrow { border-bottom-color: #fb923c; }
.cvy-mk.is-with .js-av { border-color: #facc15; }
.cvy-mk--me { width: 40px; height: 40px; cursor: default; z-index: 3; }
.cvy-mk--me b { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: #ffb23f; color: #141414; box-shadow: 0 4px 12px rgb(0 0 0 / .5); } .cvy-mk--me b svg { width: 22px; height: 22px; }
.cvy-mk__ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgb(255 178 63 / .7); animation: cvyRing 2s ease-out infinite; }
@keyframes cvyRing { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.cvy-sum { display: flex; flex-wrap: wrap; gap: .4rem; }
.cvy-pill { display: inline-flex; align-items: center; gap: .35rem; height: 32px; padding: 0 .75rem; border-radius: 999px; background: var(--color-surface, #f3efe6); font-size: 12.5px; font-weight: 800; }
.cvy-pill b { font-size: 15px; } .cvy-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #a8a29e; }
.cvy-pill.is-ahead::before { background: #22c55e; } .cvy-pill.is-behind::before { background: #60a5fa; } .cvy-pill.is-on::before { background: #fb923c; }
.cvy-list { display: grid; gap: .5rem; }
.cvy-p { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 16px; border: 1px solid var(--js-line, #d6d1c4); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cvy-p.is-sel { border-color: #ffb23f; box-shadow: 0 0 0 3px rgb(255 178 63 / .25); }
.cvy-p .js-av { border-radius: 50%; flex: none; }
.cvy-p__t { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .45rem; } .cvy-p__t .js-un { font-weight: 900; }
.cvy-p__t small { flex-basis: 100%; font-size: 12px; color: var(--color-text-muted); }
.cvy-tag { padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; background: #e7e5e4; color: #44403c; }
.cvy-tag.is-ahead { background: #dcfce7; color: #166534; } .cvy-tag.is-behind { background: #dbeafe; color: #1e40af; } .cvy-tag.is-on { background: #ffedd5; color: #9a3412; } .cvy-tag.is-with { background: #fef9c3; color: #854d0e; }
.cvy-cb { flex: none; display: inline-flex; align-items: center; gap: .3rem; height: 38px; padding: 0 .8rem; border-radius: 999px; border: 0; background: #e5262b; color: #fff; font: inherit; font-size: 12.5px; font-weight: 900; cursor: pointer; } .cvy-cb svg { width: 16px; height: 16px; }
.cvy-empty { padding: 1rem; border-radius: 16px; border: 1px dashed var(--js-line, #d6d1c4); font-size: 14px; color: var(--color-text-muted); text-align: center; } .cvy-empty b { color: var(--color-text); } .cvy-empty p { margin: .7rem 0 0; }
.cvy-spin { display: inline-block; width: 14px; height: 14px; margin-right: .45rem; vertical-align: -2px; border-radius: 50%; border: 2px solid #ffb23f; border-right-color: transparent; animation: cvySweep .8s linear infinite; }
.cvy-fine { display: flex; gap: .45rem; margin: 0; font-size: 12px; color: var(--color-text-muted); } .cvy-fine svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.cvy { position: relative; }
.cvy-lock { position: absolute; inset: 0; z-index: 20; display: grid; place-content: start center; justify-items: center; gap: .4rem; padding: 4.5rem 1.2rem 2rem; border-radius: 20px; background: rgb(12 11 9 / .96); color: #f4ead2; text-align: center; }
.cvy-lock svg { width: 54px; height: 54px; color: #ffb23f; } .cvy-lock h2 { margin: 0; font-size: 1.6rem; color: #fff; } .cvy-lock p { margin: 0; max-width: 32ch; font-size: 15px; color: #d8ccb0; }
@media (prefers-reduced-motion: reduce) { .cvy-hero__sweep, .cvy-mk__ring, .cb-vox.is-tx .cb-vox__m { animation: none !important; } }
