/* CP Chilled staff dashboard. Tokens, fonts, surfaces and buttons mirror the launcher (web/launcher/dock.css) and the
   landing page (worker/public/index.html) so the portal reads as part of cpchilled.com. */
@font-face { font-family: "Burbank Big"; src: url(/launcher/fonts/BurbankBigRegular-Bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --cpc-blue: #0d6ef5; --cpc-blue-deep: #0a3d8f; --cpc-night: #061a3d; --cpc-ice: #cfe9ff; --cpc-gold: #ffb627;
  --live: #7CFC9A; --danger: #ff6b6b; --warn: #ffd166; --purple: #b07cff;
  --head: "Burbank Big", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --side-w: 232px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: #fff; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.45;
  background: var(--cpc-night) radial-gradient(1200px 800px at 50% -10%, #1b6ff0 0%, var(--cpc-blue-deep) 45%, var(--cpc-night) 100%) no-repeat fixed;
}
a { color: var(--cpc-ice); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: .2px; margin: 0; }
h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 18px; color: var(--cpc-gold); }
.muted { color: rgba(207,233,255,.7); }
.small { font-size: 12.5px; }
.boot { padding: 48px; text-align: center; color: var(--cpc-ice); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login { width: 100%; max-width: 420px; background: linear-gradient(#123f8f, #0a2a63); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); padding: 28px 28px 24px; }
.login .brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.login .brand img { width: 120px; height: auto; border-radius: 12px; }
.login .brand h1 { font-size: 26px; line-height: 1.05; }
.login .brand small { display: block; font-family: "Segoe UI", system-ui, sans-serif; font-weight: 400; color: var(--cpc-ice); font-size: 13px; margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.field label { font-size: 13px; color: var(--cpc-ice); }
input[type=text], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; font: inherit; color: #fff; padding: 10px 12px; border-radius: 10px;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.2); outline: none;
}
select option { color: #000; }
textarea { resize: vertical; font-size: 13.5px; line-height: 1.4; }
input:focus, select:focus, textarea:focus { border-color: rgba(255,255,255,.55); box-shadow: 0 0 0 3px rgba(13,110,245,.35); }
input:disabled, select:disabled, textarea:disabled { opacity: .6; }
.btn-primary {
  border: 0; border-radius: 999px; padding: 12px 28px; font-size: 17px; font-weight: 800; cursor: pointer; font-family: inherit;
  background: linear-gradient(#ffd166, var(--cpc-gold)); color: #3a2400; box-shadow: 0 4px 0 #b8771a, 0 8px 20px rgba(0,0,0,.4);
}
.btn-primary.small { padding: 9px 20px; font-size: 15px; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #b8771a; }
.btn-primary[disabled] { opacity: .6; cursor: default; }
.btn { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.12); color: #fff; border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn:hover { background: rgba(255,255,255,.2); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.gold { background: var(--cpc-gold); color: #222; border-color: transparent; }
.btn.red { background: rgba(255,107,107,.18); border-color: rgba(255,107,107,.5); color: #ffb3b3; }
.btn.tiny { padding: 3px 9px; font-size: 12px; border-radius: 8px; }
.btn.armed { background: var(--danger); color: #fff; border-color: transparent; animation: pulse .9s ease-in-out infinite alternate; }
@keyframes pulse { from { filter: brightness(1); } to { filter: brightness(1.25); } }
.error { color: var(--danger); min-height: 20px; margin: 6px 0 0; font-size: 14px; }
.login .actions { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 12px; }
.login .note { font-size: 12.5px; color: rgba(207,233,255,.65); margin-top: 16px; }

/* ---------- shell ---------- */
.app { min-height: 100vh; }
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px;
  background: rgba(4,18,48,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-right: 1px solid rgba(255,255,255,.08);
}
.side .logo { display: block; margin: 2px auto 8px; width: 150px; height: auto; border-radius: 12px; }
.side .tag { text-align: center; font-family: var(--head); color: var(--cpc-gold); font-size: 15px; letter-spacing: .5px; margin-bottom: 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--cpc-ice); text-decoration: none; font-weight: 700;
  background: rgba(255,255,255,.08); margin-bottom: 8px; transition: background .12s;
}
.nav a:hover { background: rgba(255,255,255,.18); }
.nav a.active { background: var(--cpc-blue); color: #fff; }
.nav a .ico { width: 22px; text-align: center; font-size: 16px; }
.side .who { margin-top: auto; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.07); font-size: 13.5px; }
.side .who strong { display: block; color: #fff; font-size: 15px; }
.side .who .btn { width: 100%; margin-top: 10px; }
.main { padding: 26px 30px 48px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.topbar .sub { color: var(--cpc-ice); margin-top: 2px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); vertical-align: middle; margin-right: 6px; }
.off-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); vertical-align: middle; margin-right: 6px; }

/* ---------- cards / tiles ---------- */
.card { background: linear-gradient(#123f8f, #0a2a63); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; box-shadow: 0 12px 36px rgba(0,0,0,.4); padding: 16px 18px; min-width: 0; }
.card h3 { margin-bottom: 10px; }
.grid { display: grid; gap: 16px; }
.grid.tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.detail { grid-template-columns: 280px 1fr; align-items: start; }
@media (max-width: 1100px) { .grid.two, .grid.detail { grid-template-columns: 1fr; } }
.tile { padding: 14px 16px; }
.tile .n { font-family: var(--head); font-size: 34px; line-height: 1; color: #fff; }
.tile .l { color: var(--cpc-ice); font-size: 13px; margin-top: 6px; }
.tile.live .n { color: var(--live); }
.bar { height: 10px; border-radius: 6px; background: rgba(0,0,0,.35); overflow: hidden; border: 1px solid rgba(0,0,0,.3); }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, #4cc3ff, var(--cpc-blue)); }
.bar.hot > i { background: linear-gradient(90deg, #ffd166, #ff6b6b); }

/* ---------- tables / rows ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
th { text-align: left; font-size: 12px; color: rgba(207,233,255,.75); font-weight: 700; padding: 0 10px 2px; text-transform: uppercase; letter-spacing: .4px; }
td { padding: 9px 10px; background: rgba(255,255,255,.08); vertical-align: middle; }
tr.row { cursor: pointer; }
tr.row:hover td { background: rgba(255,255,255,.18); }
td:first-child { border-radius: 8px 0 0 8px; } td:last-child { border-radius: 0 8px 8px 0; }
tr.grp td { background: transparent; padding: 14px 10px 2px; font-family: var(--head); color: var(--cpc-gold); font-size: 15px; letter-spacing: .4px; text-transform: uppercase; }
.hs { width: 34px; height: 34px; border-radius: 50%; background: #083d6a; box-shadow: 0 0 0 2px #09213a; vertical-align: middle; margin-right: 10px; }
.sw { display: inline-block; width: 16px; height: 16px; border-radius: 5px; border: 2px solid rgba(255,255,255,.6); vertical-align: middle; margin-right: 8px; }
.coin { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--warn); }
.coin img { width: 18px; height: 13px; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.14); color: var(--cpc-ice); margin: 0 4px 4px 0; letter-spacing: .2px; }
.badge.gold { background: var(--cpc-gold); color: #3a2400; }
.badge.red { background: var(--danger); color: #fff; }
.badge.green { background: var(--live); color: #0a2a1a; }
.badge.blue { background: var(--cpc-blue); color: #fff; }
.badge.purple { background: var(--purple); color: #1e0a3a; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 360px; }
.toolbar label { font-size: 14px; color: var(--cpc-ice); display: inline-flex; gap: 6px; align-items: center; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; color: var(--cpc-ice); font-size: 14px; }
.empty { padding: 22px; text-align: center; color: var(--cpc-ice); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: rgba(207,233,255,.75); } .kv dd { margin: 0; min-width: 0; }
.user-link { color: #fff; font-weight: 700; text-decoration: none; }
.user-link:hover { text-decoration: underline; }

/* ---------- player detail ---------- */
.doll { position: relative; overflow: hidden; border-radius: 12px; background: radial-gradient(circle at 50% 35%, #1b6ff0, #0a2a63 80%); width: 240px; height: 300px; margin: 0 auto; }
.doll-layer { position: absolute; background-repeat: no-repeat; background-position: center; background-size: contain; pointer-events: none; }
.doll-body, .doll-beak { -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.doll-body { -webkit-mask-image: url(/launcher/doll/doll-body.png); mask-image: url(/launcher/doll/doll-body.png); }
.doll-beak { -webkit-mask-image: url(/launcher/doll/doll-beak.png); mask-image: url(/launcher/doll/doll-beak.png); }
.doll-ink { background-image: url(/launcher/doll/doll-ink.png); }
.doll .nodoll { position: absolute; inset: 0; display: grid; place-items: center; color: var(--cpc-ice); font-size: 13px; text-align: center; padding: 20px; }
.worn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.worn .w { min-width: 0; background: rgba(255,255,255,.08); border-radius: 10px; padding: 6px; text-align: center; font-size: 11.5px; color: var(--cpc-ice); }
.worn .w img { width: 52px; height: 52px; display: block; margin: 0 auto 2px; image-rendering: auto; }
.worn .w b { display: block; color: #fff; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; padding-right: 4px; }
.inv .it { min-width: 0; position: relative; background: rgba(255,255,255,.08); border-radius: 10px; padding: 6px 4px; text-align: center; font-size: 11px; color: var(--cpc-ice); }
.inv .it img { width: 56px; height: 56px; display: block; margin: 0 auto 2px; }
.inv .it b { display: block; color: #fff; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv .it .x { position: absolute; top: 2px; right: 2px; display: none; border: 0; border-radius: 8px; background: rgba(255,107,107,.85); color: #fff; font-size: 11px; padding: 2px 6px; cursor: pointer; }
.inv .it:hover .x, .inv .it .x.armed { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chips.inline { margin: 0; }
.chips .chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.1); cursor: pointer; border: 1px solid transparent; color: var(--cpc-ice); display: inline-flex; align-items: center; gap: 5px; }
.chips .chip input { margin: 0; }
.chips .chip.on { background: var(--cpc-gold); color: #3a2400; }
.puffs { display: flex; flex-wrap: wrap; gap: 10px; }
.puff { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border-radius: 10px; padding: 6px 10px 6px 6px; font-size: 13px; }
.puff img { width: 40px; height: 40px; }
.igloo { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.08); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.igloo img { width: 64px; height: 64px; border-radius: 8px; }
.server-card .list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.server-card .p { background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px 12px 4px 10px; font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; color: #fff; }
.server-card .p:hover { background: rgba(255,255,255,.2); }
.server-card .p .rm { color: rgba(207,233,255,.7); font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: rgba(6,26,61,.92); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 10px 16px; font-size: 14px; box-shadow: 0 12px 36px rgba(0,0,0,.5); z-index: 50; max-width: 90vw; }
.toast.bad { border-color: rgba(255,107,107,.6); color: #ffb3b3; }

/* ---------- staff tools ---------- */
.tools { border-color: rgba(255,182,39,.35); }
.tool { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.tool > label { flex: none; width: 88px; font-size: 13px; color: var(--cpc-ice); }
.tool input[type=number], .tool input[type=text], .tool input[type=search] { max-width: 260px; }
.tool select { max-width: 150px; }
.pick { display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: 420px; }
.pick .pk { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: #fff; border-radius: 8px; padding: 4px 8px; font: inherit; cursor: pointer; }
.pick .pk:hover { background: rgba(255,255,255,.2); }
.pick .pk img { width: 28px; height: 28px; }

/* ---------- NPC editor ---------- */
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 1100px) { .slots { grid-template-columns: 1fr; } }
.slot { background: rgba(255,255,255,.06); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.slot .sl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: rgba(207,233,255,.75); margin-bottom: 4px; }
.slot .cur { display: flex; align-items: center; gap: 8px; }
.slot .cur img, .slot .nothumb { width: 44px; height: 44px; flex: none; }
.slot .nothumb { display: inline-block; border-radius: 8px; background: rgba(0,0,0,.25); }
.slot .sid { width: 96px; padding: 6px 8px; }
.slot .nm { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .ward { margin-top: 6px; }
.slot .ward .wids { padding: 6px 8px; font-size: 13px; margin-top: 2px; }
.slot .wnames { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.slot .wnames span { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--cpc-ice); background: rgba(255,255,255,.08); border-radius: 8px; padding: 2px 6px 2px 2px; }
.slot .wnames img { width: 26px; height: 26px; }
.frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 10px; }
.f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--cpc-ice); min-width: 0; }
.f > span { line-height: 1.2; }
.f input[type=text] { padding: 7px 10px; font-size: 14px; }
.f.chk { flex-direction: row; align-items: center; gap: 8px; padding: 8px 0; }
.sec { background: rgba(255,255,255,.06); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; }
.sec .sh { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.sec .sh b { color: var(--cpc-gold); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.sec .sh .btn { margin-left: auto; }
.live { margin-top: 14px; }
.live h3 { font-size: 15px; }
.live .btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

/* ---------- items (catalogue) ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs a { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; }
.tabs a:hover { background: rgba(255,255,255,.2); }
.tabs a.on { background: var(--cpc-gold); color: #3a2400; }
.toolbar select { width: auto; max-width: 240px; padding: 9px 10px; }
table.cat td.ck, table.cat th.ck { width: 34px; padding-right: 0; }
table.cat td.th { width: 52px; }
table.cat input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; }
.cth { width: 40px; height: 40px; border-radius: 8px; background: rgba(0,0,0,.25); display: inline-block; vertical-align: middle; object-fit: contain; }
.cth.miss { visibility: hidden; }
.bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: rgba(255,182,39,.12); border: 1px solid rgba(255,182,39,.45); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
.bulkbar[hidden] { display: none; }
.bulkbar > b { color: var(--cpc-gold); margin-right: 4px; }
.bform { width: 100%; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bform:empty { display: none; }
.bform input[type=number] { width: auto; }
.modal { position: fixed; inset: 0; background: rgba(2,10,30,.72); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.mcard { width: min(680px, 100%); max-height: 92vh; overflow: auto; }
.mhead { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.mhead .cth { width: 72px; height: 72px; flex: none; }
.mhead > div { flex: 1; min-width: 0; }
.mhead h3 { margin: 0; }
.mgrid { gap: 0 14px; }
.mgrid .field { margin: 8px 0; }
.mflags { margin: 10px 0 4px; }
.mfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.files { background: rgba(255,255,255,.06); border-radius: 12px; padding: 4px 12px 8px; margin-top: 8px; }
.files .field { margin: 8px 0; }
.files input[type=file] { font: inherit; font-size: 13px; color: var(--cpc-ice); }
.chips.inline .chip input[disabled] + * , .chips .chip:has(input[disabled]) { opacity: .5; }

/* ---------- media ---------- */
.hints { border-color: rgba(124,252,154,.35); margin-bottom: 14px; }
.hints h3 { color: var(--live); }
.hints ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.45; }
.hints li { margin: 4px 0; }
.hints code { font-size: 12px; background: rgba(0,0,0,.3); padding: 1px 5px; border-radius: 5px; }
.joblog { background: rgba(0,0,0,.4); border-radius: 10px; padding: 10px 12px; font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; max-height: 260px; overflow: auto; white-space: pre-wrap; margin: 8px 0 12px; color: var(--cpc-ice); }
.joblog[hidden] { display: none; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 10px; }
.slotcard { background: rgba(255,255,255,.08); border-radius: 12px; padding: 8px; font-size: 12px; color: var(--cpc-ice); display: flex; flex-direction: column; gap: 6px; }
.sthumb { height: 120px; border-radius: 8px; background: rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sthumb img { max-width: 100%; max-height: 100%; }
.sthumb.big { width: 120px; height: 120px; flex: none; }
.slotcard .credit { color: #fff; font-weight: 700; }
.slotcard .btn { align-self: flex-start; }
.swfcard { width: auto; max-width: 96vw; }
.swfbox { background: #000; border-radius: 10px; overflow: hidden; max-width: 100%; }
.rowbtns { white-space: nowrap; }
.rowbtns .btn { margin-right: 4px; }
table.cat input[type=text], table.cat input[type=number], table.cat select { padding: 6px 8px; font-size: 13px; }

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .side .logo { width: 96px; margin: 0; } .side .tag { display: none; }
  .nav { display: flex; gap: 6px; } .nav a { margin: 0; padding: 8px 10px; }
  .side .who { margin: 0 0 0 auto; padding: 8px 10px; } .side .who .btn { margin-top: 4px; }
  .main { padding: 18px 16px 40px; }
  .grid.detail { grid-template-columns: 1fr; }
}

/* audit tables: keep the JSON detail column inside the card */
#audit table { table-layout: fixed; }
#audit th:nth-child(1), #audit td:nth-child(1) { width: 84px; }
#audit th:nth-child(2), #audit td:nth-child(2) { width: 90px; }
#audit th:nth-child(3), #audit td:nth-child(3) { width: 110px; }
#audit td { white-space: normal; overflow-wrap: anywhere; word-break: break-word; vertical-align: top; }
.ok { color: #7ff0a3; font-weight: 600; }
.warn { color: #ffb347; font-weight: 600; }

/* ---------- radio (api/radio.py) ---------- */
.radio-warn { margin-bottom: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.radio-warn.warn { border-color: rgba(255,209,102,.6); background: linear-gradient(#4a3a10, #2e2408); color: var(--warn); }
.radio-warn.info { border-color: rgba(124,252,154,.3); color: var(--cpc-ice); font-weight: 400; }
.radio-st .rsub { margin: -6px 0 10px; }
.radio-st .kv { grid-template-columns: 110px 1fr; margin-bottom: 6px; }
.radio-st .rh { font-size: 15px; margin: 14px 0 2px; color: var(--cpc-ice); font-family: inherit; }
.radio-pl { table-layout: fixed; }
.radio-pl td, .radio-pl th { padding: 6px 8px; font-size: 13.5px; }
.radio-pl .rnum { width: 30px; color: rgba(207,233,255,.7); }
.radio-pl .rdur { width: 68px; font-variant-numeric: tabular-nums; }
.radio-pl .rbtns { width: 140px; }
.radio-pl .rname { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-pl td .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-up { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.radio-up label.btn { display: inline-block; }
.radio-up label.btn.off { opacity: .45; cursor: default; }
.radio-up .rbar { flex: 1 1 100%; }
.radio-up .rbar[hidden] { display: none; }
.radio-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.radio-foot input[type=number] { width: 84px; padding: 6px 8px; display: inline-block; }
.rvers { margin-top: 12px; }
.rvers summary { cursor: pointer; color: var(--cpc-ice); font-size: 13.5px; }
@media (max-width: 820px) {
  .nav { flex-wrap: wrap; }          /* nine views: the nav row wraps instead of widening the page */
  .shell > * { min-width: 0; }
  .radio-pl .rbtns { width: 112px; }
  .radio-pl .rbtns .btn { margin-right: 2px; padding: 3px 6px; }
}

/* Backgrounds view (custom card backgrounds, viewBackgrounds in admin.js) */
.bg-h { font-size: 18px; margin: 22px 0 10px; }
.bg-sw label.bg-switch { display: block; margin: 6px 0; cursor: pointer; }
.bg-sw label.bg-switch input { margin-right: 6px; }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.bgc { background: linear-gradient(#123f8f, #0a2a63); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 10px; min-width: 0; }
.bgc img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #fff; }
.bgc-miss { width: 100%; aspect-ratio: 1; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.25); color: rgba(207,233,255,.7); }
.bgc-who { margin: 8px 0 2px; }
.bgc-acts { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bgc-acts .bg-note { width: 100%; }
