/* SmartStream panel - DJ console theme */
:root {
  --bg: #07080d;
  --bg2: #0c0e15;
  --panel: #11141d;
  --panel2: #171b27;
  --line: #242a3a;
  --text: #e7eaf3;
  --muted: #8890a6;
  --cyan: #22d3ee;
  --pink: #f43f9e;
  --green: #22c55e;
  --amber: #f5a524;
  --red: #ef4444;
  --radius: 14px;
  --glow-c: 0 0 18px rgba(34, 211, 238, .35);
  --glow-p: 0 0 18px rgba(244, 63, 158, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 70% -10%, #161a2b 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
a { color: var(--cyan); text-decoration: none; }
code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px; }
h1, h2 { margin: 0 0 12px; font-weight: 650; letter-spacing: .2px; }
h2 { font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
[hidden] { display: none !important; }

/* layout */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: var(--bg2); border-right: 1px solid var(--line); padding: 16px 14px 12px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; height: 100dvh; }
/* The links scroll inside the sidebar when the window is too short for all of them. */
.side nav { display: flex; flex-direction: column; gap: 1px; flex: 1; min-height: 0; overflow-y: auto; margin: 0 -6px; padding: 0 6px 8px;
  scrollbar-width: thin; scrollbar-color: #2a3142 transparent; }
.side nav a { flex: none; color: var(--muted); padding: 7px 12px; border-radius: 10px; font-weight: 550; }
.nav-group { flex: none; display: block; margin: 12px 0 3px; padding: 0 12px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: color-mix(in srgb, var(--muted) 70%, transparent); }
.side nav a:hover { color: var(--text); background: var(--panel); }
.side nav a.on { color: var(--text); background: linear-gradient(90deg, rgba(34,211,238,.15), transparent); box-shadow: inset 2px 0 0 var(--cyan); }
.side-foot { flex: none; color: var(--muted); font-size: 12px; padding-left: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 18px; letter-spacing: .3px; }
.brand b { color: var(--cyan); }
.brand.big { font-size: 26px; justify-content: center; }
.brand-logo { display: block; width: 100%; max-width: 132px; height: auto; margin: -6px auto 0; border-radius: 14px; }
.side .brand { flex: none; }
@media (max-height: 760px) and (min-width: 761px) { .side .brand-logo { max-width: 84px; } }
.login-logo { display: block; width: 240px; max-width: 80%; height: auto; margin: -8px auto 0; border-radius: 16px; }
.brand-disc { width: 26px; height: 26px; border-radius: 50%; background: repeating-radial-gradient(circle, #1c2130 0 2px, #0b0d14 2px 4px); box-shadow: 0 0 0 2px var(--pink), var(--glow-p); position: relative; }
.brand-disc::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--pink); }
.brand.big .brand-disc { width: 40px; height: 40px; }
.brand.big .brand-disc::after { inset: 14px; }
main { min-width: 0; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: rgba(7,8,13,.7); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.nav-toggle, .top-brand, .side-backdrop { display: none; }
.nav-toggle { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); position: relative; transition: transform .2s, background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.top-brand img { display: block; width: 32px; height: 32px; border-radius: 8px; }
.station-pick { display: flex; align-items: center; gap: 8px; min-width: 0; }
.station-pick label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.who { display: flex; align-items: center; gap: 10px; }
.who form { margin: 0; }
.role { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.role-admin { color: var(--pink); border-color: rgba(244,63,158,.5); }
.role-reseller { color: var(--amber); border-color: rgba(245,165,36,.5); }
.content { padding: 24px; max-width: 1400px; }
.page-title { font-size: 22px; margin-bottom: 18px; }
.section { margin: 26px 0 12px; color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: 1.5px; }

/* cards, grid, forms */
.card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card.empty { text-align: center; padding: 48px 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form.compact { gap: 8px; margin-top: 12px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 13px; }
input, select { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font: inherit; min-width: 0; }
input:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: var(--glow-c); }
input[type=checkbox] { accent-color: var(--cyan); width: 16px; height: 16px; }
input.tiny { width: 56px; padding: 4px 6px; }
.hint { color: var(--muted); font-size: 12px; margin: 0; }
.btn { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--cyan); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: linear-gradient(135deg, #0ea5c4, #2563eb); border-color: transparent; }
.btn.primary:hover { box-shadow: var(--glow-c); }
.btn.danger { color: var(--red); }
.btn.ghost { background: transparent; }

/* Directory listing status cards (Promotion page) */
.dir-status { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 16px; }
.dir-card { padding: 14px; }
.dir-card .dir-note { margin: 4px 0 10px; font-size: 13px; color: var(--text); }
.dir-card .kv { margin-bottom: 0; }
.dir-card.dir-error { border-color: rgba(239,68,68,.45); }
.dir-card.dir-action { border-color: rgba(245,158,11,.45); }
.dir-card.dir-listed { border-color: rgba(34,197,94,.4); }
.dir-card .btn { margin-top: 10px; }
.dir-via { font-size: 11px; color: var(--muted); margin-top: -6px; margin-bottom: 4px; }
.dir-card .srv-head { gap: 10px; align-items: flex-start; }
.dir-card .srv-head .pill { white-space: nowrap; flex: none; }
#sdForm .row { align-items: flex-end; }
#sdForm .row > label { flex: 1 1 0; min-width: 0; }
#sdForm .hint a { color: var(--cyan); }
.sd-modes { display: flex; flex-direction: column; gap: 8px; }
label.sd-mode { align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
label.sd-mode:has(input:checked) { border-color: rgba(34,211,238,.55); background: rgba(34,211,238,.05); }
label.sd-mode input { margin-top: 3px; }
label.sd-mode span { display: flex; flex-direction: column; gap: 2px; }
label.sd-mode small { color: var(--muted); font-size: 12px; line-height: 1.45; }

/* Web player page */
.wp-intro { max-width: 820px; margin: -6px 0 16px; font-size: 13px; line-height: 1.5; }
.wp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.wp-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }
.wp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.wp-head h2 { margin: 0; }
.wp-set { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wp-set legend { padding: 0 6px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.wp-set .row > label { flex: 1 1 0; min-width: 0; }
.wp-set label .muted { font-size: 11px; }
.wp-checkline { align-self: flex-end; padding-bottom: 9px; }
.wp-val { color: var(--cyan); font-weight: 700; margin-left: 4px; }
.wp-set input[type=range] { padding: 0; accent-color: var(--cyan); }
.wp-colors input[type=color] { width: 100%; height: 38px; padding: 3px; cursor: pointer; }
.wp-color { display: flex; align-items: center; gap: 10px; }
.wp-color input[type=color] { flex: 1; }
.wp-color input[type=color]:disabled { opacity: .3; cursor: default; }
.wp-adv summary { cursor: pointer; color: var(--cyan); font-size: 13px; font-weight: 600; }
.wp-adv[open] summary { margin-bottom: 4px; }
.wp-adv code { color: var(--text); word-break: break-all; }
.wp-preview { border-radius: 12px; overflow: hidden; border: 1px dashed var(--line); margin-top: 8px; height: 80px; transition: height .2s;
  background: repeating-conic-gradient(#10131b 0 25%, #0b0d13 0 50%) 0 0 / 16px 16px; }
.wp-preview iframe { width: 100%; height: 100%; border: 0; display: block; }
.wp-code { width: 100%; margin-top: 8px; font: 12px/1.5 ui-monospace, Consolas, monospace; resize: vertical; white-space: pre; }
.wp-code-actions { margin-top: 10px; }
#wpSave.pulse { box-shadow: 0 0 0 0 rgba(34,211,238,.6); animation: wppulse 1.6s infinite; }
@keyframes wppulse { 70% { box-shadow: 0 0 0 8px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }
@media (max-width: 1100px) { .wp-grid { grid-template-columns: 1fr; } .wp-side { position: static; } }
/* Roku card: a small mock of the TV screen (same layout as panel/roku.py) */
.rk-screen { --bg: #0e1015; --ac: #22d3ee; --fg: #fff; position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  background: var(--bg); color: var(--fg); margin: 8px 0 12px; font-size: clamp(8px, 1.6vw, 13px); }
.rk-amb { position: absolute; inset: 0; background: radial-gradient(circle at 25% 50%, color-mix(in srgb, var(--ac) 22%, transparent), transparent 60%); }
.rk-name { position: absolute; left: 7.3%; top: 5.5%; font-weight: 700; font-size: 1.3em; }
.rk-art { position: absolute; left: 7.3%; top: 22%; width: 31%; aspect-ratio: 1; border-radius: 4px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--ac) 20%, transparent); color: var(--ac); font-weight: 700; font-size: 4em; overflow: hidden; }
.rk-art img { width: 86%; height: 86%; object-fit: contain; }
.rk-info { position: absolute; left: 42.7%; right: 7%; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: .4em; }
.rk-info small { color: var(--ac); font-weight: 700; letter-spacing: .5px; }
.rk-info b { font-size: 2.2em; line-height: 1.1; }
.rk-info span { font-size: 1.4em; opacity: .85; }
/* Website page (panel/sites.py): editor on the left, preview + domain on the right */
.ws-tabs { margin-bottom: 14px; }
.ws-empty { max-width: 720px; }
.ws-empty h2 { margin-bottom: 6px; }
.ws-empty .btn { margin-top: 10px; }
.ws-create-row { max-width: 560px; margin: 12px auto 0; }
.ws-create-row input { flex: 1; }
.ws-netpick { max-width: 640px; align-items: flex-end; margin-bottom: 14px; }
.ws-netpick .btn { flex: none; }
.ws-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ws-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }
.ws-grid .wp-set .row > label { flex: 1 1 0; min-width: 0; }
.ws-grid .wp-set .row { align-items: flex-end; }
#wsForm input[type=color] { width: 100%; height: 38px; padding: 3px; cursor: pointer; }
#wsForm textarea { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font: inherit; resize: vertical; min-height: 110px; }
#wsForm textarea:focus { outline: none; border-color: var(--cyan); box-shadow: var(--glow-c); }
.ws-publish { align-items: flex-start; }
.ws-publish input { margin-top: 4px; }
.ws-slug { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.ws-slug-base { padding: 9px 4px 9px 12px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; align-self: center; }
.ws-slug input { border: 0 !important; border-radius: 0; background: transparent; font-family: ui-monospace, Consolas, monospace; min-width: 0; flex: 1; }
.ws-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ws-theme { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; }
.ws-theme input { position: absolute; top: 12px; right: 12px; }
.ws-theme:has(input:checked) { border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.05); }
.ws-theme small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.ws-theme.soon { cursor: default; opacity: .6; border-style: dashed; }
.ws-theme-sw { display: flex; gap: 4px; height: 34px; margin-bottom: 4px; }
.ws-theme-sw i { flex: 1; border-radius: 6px; background: linear-gradient(135deg, #22d3ee, #2563eb); }
.ws-theme-sw i:nth-child(2) { flex: 2; background: #141824; border: 1px solid var(--line); }
.ws-theme-sw i:nth-child(3) { background: #0b0d14; border: 1px solid var(--line); }
.ws-theme.soon .ws-theme-sw i { background: var(--panel2); border: 1px dashed var(--line); }
.ws-images { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 14px; }
.ws-image { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ws-image-label { font-size: 13px; }
.ws-thumb { border: 1px solid var(--line); border-radius: 10px; background: var(--bg) center / cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.ws-thumb-logo { width: 96px; height: 96px; background-size: contain; }
.ws-thumb-hero { height: 96px; }
.ws-file { cursor: pointer; }
.ws-stations { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ws-stations li { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px 6px 12px; }
.ws-move { display: flex; gap: 4px; }
.ws-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.ws-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ws-danger summary { color: var(--red); }
.ws-danger .btn { margin-top: 6px; }
.ws-device { margin: 0; }
.ws-preview { position: relative; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.ws-preview iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: auto; }
.ws-domain h2 { margin: 0; }
.ws-domain h3 { margin: 10px 0 0; font-size: 14px; }
.ws-url { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ws-url code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
.ws-url-inline { margin-top: 6px; }
.ws-domain-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; }
.ws-domain-state .hint { flex-basis: 100%; }
.ws-steps { padding-left: 18px; margin: 4px 0; display: flex; flex-direction: column; gap: 8px; }
.ws-steps b { color: var(--text); }
.ws-dom-row { align-items: flex-end; }
.ws-dom-row .btn { flex: none; }
.ws-dns { margin-top: 8px; font-size: 12.5px; }
.ws-dns code { color: var(--text); word-break: break-all; }
@media (max-width: 1100px) { .ws-grid { grid-template-columns: 1fr; } .ws-side { position: static; } }
/* Claude website builder (Website page) */
.wc-card { border-color: rgba(244, 63, 158, .45); }
.wc-card h2 { margin: 0; }
.wc-billing { margin: -6px 0 0; font-size: 13px; }
.wc-lead { margin: 0; }
.wc-note { margin: 0; padding: 10px 12px; border: 1px solid rgba(245, 165, 36, .45); border-radius: 10px; background: rgba(245, 165, 36, .07); font-size: 13px; }
.wc-keyrow input { flex: 1 1 220px; }
.wc-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.wc-tier { display: flex; flex-direction: row; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; }
.wc-tier:has(input:checked) { border-color: var(--cyan); box-shadow: var(--glow-c); }
.wc-tier input { margin-top: 3px; }
.wc-tier b { display: block; color: var(--text); }
.wc-tier small { color: var(--muted); font-size: 12px; line-height: 1.4; }
#wcReq { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font: inherit; resize: vertical; min-height: 90px; }
.wc-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.wc-ideas .btn { white-space: normal; text-align: left; }
.wc-go { align-items: center; flex-wrap: wrap; }
.wc-progress { margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.wc-steps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 5px 14px; font-size: 13px; }
.wc-steps li { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.wc-steps li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
.wc-steps li.now { color: var(--text); font-weight: 600; }
.wc-steps li.now::before { border-color: var(--cyan); border-top-color: transparent; animation: wc-spin .9s linear infinite; }
.wc-steps li.done { color: var(--text); }
.wc-steps li.done::before { content: "✓"; display: grid; place-items: center; border: 0; background: var(--green); color: #06241a; font-size: 11px; font-weight: 800; }
@keyframes wc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wc-steps li.now::before { animation: none; border-color: var(--cyan); } }
.wc-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.wc-bar i { display: block; height: 100%; width: 4%; background: var(--cyan); border-radius: 3px; transition: width .6s ease; }
.wc-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.wc-notes-h { margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--muted); }
.wc-notes { margin-top: 4px; height: 92px; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.wc-draft { margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.wc-draft p { margin: 0; }
.wc-live { position: relative; width: 100%; height: max(260px, calc(100vh - 470px)); overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.wc-live iframe { position: absolute; top: 0; left: 0; width: 200%; height: 200%; border: 0; background: #fff; transform: scale(.5); transform-origin: 0 0; visibility: hidden; }
.wc-vers { display: flex; flex-direction: column; margin-bottom: 10px; }
.wc-ver { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 8px 0; }
.wc-ver + .wc-ver { border-top: 1px solid var(--line); }
.wc-ver > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .ws-images { grid-template-columns: 1fr; } .ws-dom-row, .ws-create-row { flex-direction: column; align-items: stretch; } }

/* Promotion page: grouped accordion, one <details class="promo-item"> per service */
.promo-group { max-width: 980px; }
.promo-group .section:first-child { margin-top: 8px; }
.promo-item { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; scroll-margin-top: 76px; }
.promo-item[open] { border-color: #2f3850; }
.promo-item > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; border-radius: var(--radius); }
.promo-item > summary::-webkit-details-marker { display: none; }
.promo-item > summary:hover { background: rgba(255,255,255,.02); }
.promo-item > summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.promo-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--cyan); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25); }
.promo-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.promo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.promo-text b { font-size: 15px; font-weight: 650; }
.promo-text small { color: var(--muted); font-size: 12.5px; }
.promo-rec { display: inline-block; vertical-align: 2px; margin-left: 6px; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--pink); border: 1px solid rgba(244,63,158,.45); border-radius: 99px; padding: 1px 7px; }
.promo-pill { flex: none; }
.promo-chev { flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 2px; transition: transform .15s; }
.promo-item[open] .promo-chev { transform: rotate(225deg); margin-top: 4px; }
.promo-body { border-top: 1px solid var(--line); padding: 16px; }
.promo-section-hint, .promo-group-hint { margin: -4px 0 12px; font-size: 13px; max-width: 820px; }
.promo-count { margin-left: 8px; vertical-align: 1px; text-transform: none; letter-spacing: normal; }
.promo-sug { color: var(--cyan); border-color: rgba(34,211,238,.45); }
.promo-links { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel2), var(--panel)); }
.promo-link { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.promo-link + .promo-link { border-top: 1px solid var(--line); }
.promo-link.done .promo-text b { color: var(--muted); }
.promo-letter { font-weight: 800; font-size: 17px; }
.promo-link.done .promo-letter { color: var(--green); background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); }
label.promo-done { flex: none; gap: 6px; font-size: 12.5px; white-space: nowrap; cursor: pointer; }
label.promo-done small { font-size: 11px; }
.kit-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0 0 10px; align-items: center; }
.kit-list dt { color: var(--muted); font-size: 12px; }
.kit-list dd { margin: 0; display: flex; align-items: center; gap: 10px; justify-content: space-between; min-width: 0; }
.kit-val { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px; word-break: break-all; }
@media (max-width: 700px) { .promo-link .promo-text small { display: block !important; } .promo-link { flex-wrap: wrap; } .promo-link .promo-text { flex-basis: calc(100% - 60px); } label.promo-done { margin-left: 54px; } .kit-list { grid-template-columns: 1fr; gap: 2px; } .kit-list dd { margin-bottom: 8px; } }
.promo-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.promo-split .row { align-items: flex-end; }
.promo-split .row > label { flex: 1 1 0; min-width: 0; }
@media (max-width: 900px) { .promo-split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .promo-item > summary { gap: 10px; padding: 12px; } .promo-icon { width: 34px; height: 34px; } .promo-text small { display: none; } .promo-body { padding: 12px; } }
.rb-status { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.rb-status .kv { margin-bottom: 8px; }
.rb-status .kv dd { word-break: normal; }
#rbUrl { text-overflow: ellipsis; }
.rk-steps { padding-left: 18px; margin: 6px 0; display: flex; flex-direction: column; gap: 6px; }
.rk-steps code, #rkNpUrl { color: var(--text); word-break: break-all; }

/* SweetAlert2, themed to the panel */
.swal2-container { z-index: 10000; }
.swal2-container.swal2-backdrop-show { background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
.swal2-popup { background: linear-gradient(180deg, var(--panel2), var(--panel)); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.6); font-family: inherit; }
.swal2-title { color: var(--text); font-size: 20px; font-weight: 700; }
.swal2-html-container { color: var(--muted); font-size: 14px; line-height: 1.5; }
.swal2-actions { gap: 10px; }
.swal2-actions .btn { min-width: 96px; }
.swal2-actions .btn.danger { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.55); color: #fca5a5; }
.swal2-actions .btn.danger:hover { background: rgba(239,68,68,.25); }
.swal2-icon.swal2-warning { border-color: #f59e0b; color: #f59e0b; }
.swal2-icon.swal2-info, .swal2-icon.swal2-question { border-color: var(--cyan); color: var(--cyan); }
.swal-field { display: flex; flex-direction: column; gap: 5px; margin: 10px 0 0; text-align: left; font-size: 13px; color: var(--muted); }
.swal-input { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font: inherit; }
.swal-input:focus { outline: none; border-color: var(--cyan); }
/* SweetAlert injects its own CSS after ours, so toast rules need the extra container class to win */
.swal2-container .swal2-popup.swal2-toast { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.swal2-container .swal2-popup.swal2-toast .swal2-title { color: var(--text); font-size: 13.5px; font-weight: 600; margin: 0 6px; }
.swal2-container .swal2-popup.swal2-toast .swal2-timer-progress-bar { background: var(--cyan); }
.swal2-container .swal2-popup.swal2-toast .swal2-icon { margin: 0 4px 0 0; }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn.wide { width: 100%; }
.alert { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.4); color: #fca5a5; padding: 10px 12px; border-radius: 10px; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid rgba(36,42,58,.6); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.actions { text-align: right; white-space: nowrap; }
.tbl td.actions .btn { margin-left: 4px; }
.tbl-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.tbl-tools input { flex: 0 1 320px; }
.card:has(> .tbl), .card:has(> .tbl-tools) { overflow-x: auto; }
.pill { display: inline-block; font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .6px; }
.pill.ok { color: var(--green); border-color: rgba(34,197,94,.45); }
.pill.warn { color: var(--amber); border-color: rgba(245,165,36,.45); }
.pill.bad { color: var(--red); border-color: rgba(239,68,68,.45); }
.pill.info { color: var(--cyan); border-color: rgba(34,211,238,.45); }

/* DJ console */
.console { display: grid; grid-template-columns: 1fr 230px 1fr; gap: 16px; }
.deck, .mixer { background: linear-gradient(180deg, #151926, #0d1018); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 40px rgba(0,0,0,.35); }
.deck-head { display: flex; justify-content: space-between; align-items: center; }
.deck-id { font-weight: 800; font-size: 20px; color: var(--cyan); text-shadow: var(--glow-c); }
#deckB .deck-id { color: var(--pink); text-shadow: var(--glow-p); }
.deck-tag { font-size: 11px; letter-spacing: 1.5px; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; }
.deck-tag.live { color: var(--red); border-color: var(--red); box-shadow: 0 0 12px rgba(239,68,68,.4); }
.platter { position: relative; width: min(220px, 70%); aspect-ratio: 1; margin: 16px auto; border-radius: 50%; background: #0a0c12; box-shadow: 0 0 0 6px #1a1f2d, 0 0 0 7px #2a3145, 0 12px 30px rgba(0,0,0,.6); }
.vinyl { position: absolute; inset: 6%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255,255,255,.07), transparent 12%, rgba(255,255,255,.05) 25%, transparent 40%, rgba(255,255,255,.07) 55%, transparent 70%, rgba(255,255,255,.04) 85%, transparent), repeating-radial-gradient(circle, #14171f 0 1px, #0b0d13 1px 3px); }
.vinyl.spinning { animation: spin 1.8s linear infinite; }
.vinyl-label { position: absolute; inset: 34%; border-radius: 50%; background: radial-gradient(circle, #0b0d13 0 8%, var(--cyan) 9% 100%); display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #062a33; }
#deckB .vinyl-label { background: radial-gradient(circle, #0b0d13 0 8%, var(--pink) 9% 100%); color: #3b0a24; }
.tonearm { position: absolute; top: -4%; right: -2%; width: 10px; height: 58%; background: linear-gradient(#c9ced9, #6b7385); border-radius: 6px; transform-origin: top center; transform: rotate(24deg); box-shadow: 0 4px 10px rgba(0,0,0,.6); }
.tonearm.rest { transform: rotate(6deg); }
.deck-track { text-align: center; min-height: 46px; }
.t-title { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-artist { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.transport { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.pad { width: 48px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #0a0c12; color: var(--muted); font-size: 16px; cursor: pointer; }
.pad.play { color: var(--green); }
.pad.stop { color: var(--red); }
.pad:not(:disabled):hover { border-color: var(--cyan); color: var(--text); }
.pad.on { background: rgba(34,197,94,.15); border-color: var(--green); box-shadow: 0 0 14px rgba(34,197,94,.35); }
.progress { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: center; margin-top: 10px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress span:last-child { text-align: right; }
.queue-box { margin-top: 12px; }
.queue { margin: 6px 0 0; padding-left: 20px; max-height: 120px; overflow-y: auto; font-size: 12.5px; }
.queue li { padding: 2px 0; }
.queue li .icon-btn { font-size: 13px; }
.dash-lower { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 22px; align-items: start; }
.dash-lower #servers { grid-template-columns: 1fr; }
.tbl .skipped { color: var(--amber); font-size: 11px; }
.delta-up { color: var(--green); } .delta-down { color: var(--red); }
.pad:disabled { cursor: not-allowed; opacity: .5; }
.mixer { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.onair { font-weight: 800; letter-spacing: 3px; padding: 6px 14px; border-radius: 8px; border: 2px solid #3a2228; color: #5a3038; }
.onair.live { color: #fff; background: var(--red); border-color: var(--red); box-shadow: 0 0 22px rgba(239,68,68,.65); }
.meters { display: flex; gap: 10px; height: 120px; }
.meter { width: 14px; border-radius: 4px; background: linear-gradient(to top, var(--green) 0 60%, var(--amber) 60% 82%, var(--red) 82%); position: relative; overflow: hidden; }
.meter::after { content: ""; position: absolute; inset: 0; background: #0a0c12; transform-origin: top; transform: scaleY(1); }
.meters.live .meter::after { animation: vu 0.9s ease-in-out infinite alternate; }
.meters.live .meter:nth-child(2)::after { animation-duration: .75s; animation-delay: -.3s; }
.readout { display: flex; flex-direction: column; }
.big-num { font-size: 40px; font-weight: 800; line-height: 1; color: var(--cyan); text-shadow: var(--glow-c); font-variant-numeric: tabular-nums; }
.fader { display: flex; align-items: center; gap: 8px; width: 100%; color: var(--muted); font-weight: 700; }
.fader input { flex: 1; accent-color: var(--pink); padding: 0; }
.autodj-note { font-size: 11px; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes vu { 0% { transform: scaleY(.85); } 30% { transform: scaleY(.35); } 60% { transform: scaleY(.55); } 100% { transform: scaleY(.2); } }

/* server cards */
.srv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.srv-head h3 { margin: 0; font-size: 15px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; }
.kv dt { color: var(--muted); font-size: 12px; }
.kv dd { margin: 0; word-break: break-all; }
.secret { cursor: pointer; border-bottom: 1px dashed var(--muted); }
.srv-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* uploads */
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px; border: 2px dashed var(--line); border-radius: var(--radius); background: rgba(17,20,29,.6); color: var(--text); font-size: 14px; cursor: pointer; margin-bottom: 14px; text-align: center; }
.drop input { display: none; }
.drop.over { border-color: var(--cyan); box-shadow: var(--glow-c); }
.drop-icon { font-size: 28px; color: var(--cyan); }
#uploads { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.up { display: grid; grid-template-columns: 1fr 200px 90px; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.up .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--pink)); transition: width .2s; }

/* playlists */
.pl-grid { display: grid; grid-template-columns: 260px 1fr 1fr; gap: 16px; align-items: start; }
.pl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pl-list li { padding: 9px 11px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; display: flex; justify-content: space-between; gap: 8px; }
.pl-list li:hover { background: var(--bg); }
.pl-list li.on { border-color: var(--cyan); background: rgba(34,211,238,.07); }
.pl-list li.inactive .pl-n { color: var(--muted); text-decoration: line-through; }
.pl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pl-head h2 { margin: 0; }
.pl-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pl-actions label { flex-direction: row; align-items: center; }
.pl-typehint { margin: 0; line-height: 1.4; }
.pl-ruleset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pl-ruleset[hidden] { display: none; }
.pl-ruleset legend { padding: 0 6px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.pl-ruleset p { margin: 0; line-height: 1.45; }
.rule-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.rule-row label { flex: 1 1 180px; }
.rule-n { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-bottom: 9px; }
.rule-n input { width: 72px; }
.pl-badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.pl-badges:empty { display: none; }
.pill.ok { color: var(--green); border-color: rgba(34,197,94,.4); }
.pill.off { color: var(--muted); }
.pl-info, .pl-insights { margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 13px; line-height: 1.5; }
.pl-info > summary, .pl-insights > summary { cursor: pointer; padding: 10px 14px; font-weight: 650; color: var(--cyan); }
.pl-info > div, .pl-insights > div { padding: 0 14px 12px; }
.pl-info p { margin: 0 0 8px; }
.pl-rules { margin: 0 0 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.pl-ins { font-size: 12px; }
.pl-ins .tt { display: flex; flex-direction: column; min-width: 0; }
.pl-ins small { color: var(--muted); }
.pl-ins .up { color: var(--green); }
.pl-ins .down { color: var(--red); }
.pl-ins .bar { display: inline-block; width: 54px; height: 6px; border-radius: 3px; background: #1b2132; vertical-align: middle; margin-right: 4px; overflow: hidden; }
.pl-ins .bar i { display: block; height: 100%; background: var(--cyan); }
@media (max-width: 560px) { .pl-ins th:nth-child(3), .pl-ins td:nth-child(3), .pl-ins th:nth-child(4), .pl-ins td:nth-child(4) { display: none; } }
.tracklist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 62vh; overflow-y: auto; min-height: 80px; }
.tracklist.dropzone { counter-reset: n; border: 1px dashed transparent; border-radius: 10px; }
.tracklist.dropzone.over { border-color: var(--cyan); }
.tracklist li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 7px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; cursor: grab; user-select: none; }
.tracklist.dropzone li:not(.placeholder)::before { counter-increment: n; content: counter(n); color: var(--muted); font-size: 11px; min-width: 18px; text-align: right; }
.tracklist.lib li::before { content: "♪"; color: var(--pink); }
.tracklist li.placeholder { display: block; text-align: center; color: var(--muted); border-style: dashed; cursor: default; }
.tracklist li.dragging { opacity: .4; }
.tracklist .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracklist .tt small { color: var(--muted); display: block; }
.tracklist .dur { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; padding: 0 4px; }
.icon-btn:hover { color: var(--cyan); }
.icon-btn.rm:hover { color: var(--red); }

/* settings + api */
pre.key { background: var(--bg); border: 1px solid var(--cyan); border-radius: 10px; padding: 12px; white-space: pre-wrap; word-break: break-all; }
.doc pre { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; }
.doc h2 { margin-top: 22px; }
.tbl.api td:first-child { width: 80px; }
.verb { font: 700 11px ui-monospace, monospace; padding: 2px 7px; border-radius: 6px; background: var(--bg); }
.verb-get { color: var(--green); } .verb-post { color: var(--cyan); } .verb-patch, .verb-put { color: var(--amber); } .verb-delete { color: var(--red); }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.card.login { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 30px; }
.card.login .muted { text-align: center; margin: -8px 0 6px; }
.spin { animation: spin 3s linear infinite; }
.lang-pick { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
.lang-pick a { color: var(--muted); font-size: 12.5px; padding: 3px 10px; border-radius: 99px; border: 1px solid transparent; }
.lang-pick a:hover { color: var(--text); }
.lang-pick a.on { color: var(--text); border-color: var(--line); }

/* toasts */
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--green); padding: 10px 14px; border-radius: 10px; max-width: 360px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast.bad { border-left-color: var(--red); }

/* DJ studio console: two CDJ-style decks around a club mixer */
.console.studio { grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr); margin-bottom: 16px;
  grid-template-areas: "a mx b" "sfx mx img"; grid-template-rows: auto 1fr; }
.console.studio > #sdeckA { grid-area: a; }
.console.studio > #sdeckB { grid-area: b; }
.console.studio > .smixer { grid-area: mx; }
.console.studio > .sfx-card { grid-area: sfx; }
.console.studio > .imaging-card { grid-area: img; }
.cdj, .djm {
  background: linear-gradient(180deg, #1b1f2c 0%, #10131b 55%, #0c0e15 100%);
  border: 1px solid #262c3c; border-radius: 20px; padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -2px 0 rgba(0,0,0,.4), 0 20px 50px rgba(0,0,0,.45);
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.deck-top { display: flex; align-items: center; gap: 10px; }
.deck-top .deck-id { color: var(--deck); text-shadow: 0 0 14px var(--deck-glow); font-size: 24px; }
#deckB .deck-top .deck-id { color: var(--deck); text-shadow: 0 0 14px var(--deck-glow); }
.deck-src { margin-left: auto; font-size: 10px; letter-spacing: 2px; color: var(--muted); }

.lcd { background: linear-gradient(180deg, #04060a, #070a10); border: 1px solid #1d2433; border-radius: 10px; padding: 10px 12px;
  box-shadow: inset 0 0 24px rgba(0,0,0,.8); min-width: 0; }
.lcd-row { display: flex; align-items: flex-end; gap: 14px; }
.lcd-kind { margin-right: auto; font: 700 10px ui-monospace, Consolas, monospace; letter-spacing: 2px; color: #04131a; background: var(--deck);
  padding: 2px 7px; border-radius: 4px; align-self: center; box-shadow: 0 0 10px var(--deck-glow); }
.lcd-time { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.lcd-time small { font-size: 8.5px; letter-spacing: 1.5px; color: var(--muted); }
.lcd-time b { font: 700 20px ui-monospace, Consolas, monospace; color: var(--deck); text-shadow: 0 0 10px var(--deck-glow); font-variant-numeric: tabular-nums; }
.lcd-title { margin-top: 8px; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcd-artist { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 18px; }
/* Artist photo (Artist Library, /artist.json) beside title/artist; no taller than the two lines */
.lcd-np { display: flex; align-items: center; gap: 10px; margin-top: 8px; min-width: 0; }
.lcd-np-text { flex: 1; min-width: 0; }
.lcd-np .lcd-title { margin-top: 0; }
.lcd-thumb { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: #0b0e15;
  border: 1px solid #1d2433; box-shadow: 0 0 10px var(--deck-glow); }
.lcd-thumb[hidden] { display: none; }
#deckA.ending #npLeft { color: var(--red); text-shadow: 0 0 10px rgba(239,68,68,.6); animation: lcdblink 1s steps(2, start) infinite; }
@keyframes lcdblink { to { visibility: hidden; } }

.wave { height: 58px; margin-top: 8px; border-radius: 6px; background: rgba(255,255,255,.02); overflow: hidden; }
.wave svg { width: 100%; height: 100%; display: block; }
.wave-base rect { fill: rgba(255,255,255,.16); }
.wave-played rect { fill: var(--deck); }
.wave .playhead { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.wave-empty { height: 100%; background: linear-gradient(transparent calc(50% - 1px), rgba(255,255,255,.12) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
#deckB:not(.cued) .wave-base rect { fill: rgba(255,255,255,.08); }

.jog { position: relative; width: min(230px, 78%); aspect-ratio: 1; margin: 4px auto; }
.jog-ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--deck) calc(var(--p, 0) * 1%), #1a2030 0);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 71%, transparent 72%);
          mask: radial-gradient(circle, transparent 66%, #000 67%, #000 71%, transparent 72%);
  filter: drop-shadow(0 0 6px var(--deck-glow)); transition: background .9s linear; }
.jog-platter { position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, transparent 55%, rgba(0,0,0,.35) 56%),
              repeating-conic-gradient(#262d3e 0 3deg, #151922 3deg 9deg);
  box-shadow: 0 0 0 3px #0a0c12, 0 0 0 5px #2a3144, inset 0 6px 18px rgba(255,255,255,.06), 0 14px 30px rgba(0,0,0,.6); }
.jog-platter.spinning { animation: spin 2.4s linear infinite; }
.jog-center { position: absolute; inset: 31%; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #161b26, #07090e);
  border: 2px solid #2a3144; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.jog-center b { font: 700 18px ui-monospace, Consolas, monospace; color: var(--deck); text-shadow: 0 0 8px var(--deck-glow); }
.jog-center small { font-size: 8.5px; letter-spacing: 2px; color: var(--muted); }

.cdj .transport { gap: 8px; margin-top: 0; }
.cdj-btn { flex: 1; height: 54px; border-radius: 12px; background: linear-gradient(180deg, #151a25, #0a0d13); border: 1px solid #2a3245;
  color: var(--muted); font: 700 11px system-ui, sans-serif; letter-spacing: 1.5px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.45); }
.cdj-btn span { font-size: 16px; line-height: 1; }
.cdj-btn:not(:disabled):hover { color: var(--text); border-color: var(--deck); }
.cdj-btn:disabled { opacity: .35; cursor: default; }
.cdj-btn.play span { color: var(--green); }
.cdj-btn.stop span { color: var(--red); }
.cdj-btn.on { border-color: var(--green); color: var(--text); box-shadow: 0 0 16px rgba(34,197,94,.35), inset 0 -3px 0 rgba(0,0,0,.45); opacity: 1; }

.sampler { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
#deckB .jog-ring { filter: none; }
.pad-btn { --deck: var(--pink); --deck-glow: rgba(244,63,158,.45); height: 42px; border-radius: 10px; background: linear-gradient(180deg, #161b27, #0c0f16); border: 1px solid #2a3245; color: var(--text);
  font: 700 11px system-ui, sans-serif; letter-spacing: 1.2px; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0,0,0,.45), inset 0 0 0 1px rgba(244,63,158,.08); }
.pad-btn:not(:disabled):hover { border-color: var(--deck); box-shadow: inset 0 -3px 0 rgba(0,0,0,.45), 0 0 12px var(--deck-glow); }
.pad-btn.hit { background: var(--deck); color: #1a0410; }
.pad-btn:disabled { opacity: .35; cursor: default; }

.djm { align-items: stretch; }
.mixer-top { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.strips { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px; align-items: end; padding: 12px 6px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid #1c2232; }
.strip, .master { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ch-label { font: 700 10px ui-monospace, Consolas, monospace; letter-spacing: 1.5px; color: var(--muted); }
.led-meter { display: flex; flex-direction: column-reverse; gap: 3px; width: 14px; height: 150px; }
.led-meter i { flex: 1; border-radius: 2px; background: #161b26; }
.led-meter i.on { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,.7); }
.led-meter i:nth-child(n+10).on { background: var(--amber); box-shadow: 0 0 6px rgba(245,165,36,.7); }
.led-meter i:nth-child(n+13).on { background: var(--red); box-shadow: 0 0 6px rgba(239,68,68,.7); }
.led-pair { display: flex; gap: 5px; }
.ch-fader { position: relative; width: 12px; height: 110px; border-radius: 6px; background: #05070b; border: 1px solid #262d3d; }
.ch-fader i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 6px;
  background: linear-gradient(0deg, transparent, color-mix(in srgb, var(--deck) 40%, transparent)); transition: height .9s linear; }
.ch-fader i::before { content: ""; position: absolute; top: -6px; left: 50%; width: 30px; height: 12px; transform: translateX(-50%); border-radius: 3px;
  background: linear-gradient(180deg, #d5dae4, #8a92a5); box-shadow: 0 2px 6px rgba(0,0,0,.6), inset 0 -2px 0 var(--deck); }
.lcd.mini { padding: 6px 10px; display: flex; flex-direction: column; align-items: center; }
.lcd.mini b { font: 800 26px ui-monospace, Consolas, monospace; color: var(--cyan); text-shadow: 0 0 12px rgba(34,211,238,.5); font-variant-numeric: tabular-nums; }
.lcd.mini small { font-size: 8.5px; letter-spacing: 2px; color: var(--muted); }
.xfader { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #06080d; border: 1px solid #1f2535;
  font: 700 11px ui-monospace, Consolas, monospace; color: var(--muted); }
.xfader input { flex: 1; padding: 0; height: 44px; background: transparent; border: 0; -webkit-appearance: none; appearance: none; cursor: grab; }
.xfader input:active { cursor: grabbing; }
.xfader input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: #020306; border: 1px solid #2a3144; box-shadow: inset 0 1px 3px #000;
  background-image: linear-gradient(90deg, transparent calc(50% - 1px), #3a4358 calc(50% - 1px), #3a4358 calc(50% + 1px), transparent calc(50% + 1px)); }
.xfader input::-moz-range-track { height: 6px; border-radius: 3px; background: #020306; border: 1px solid #2a3144; box-shadow: inset 0 1px 3px #000; }
.xfader input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 42px; margin-top: -19px; border-radius: 4px;
  border: 1px solid #0a0c12; box-shadow: 0 3px 8px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.25);
  background: linear-gradient(90deg, transparent 0 calc(50% - 1px), var(--pink) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(180deg, #3b4254 0 3px, #1a1e29 3px 6px); }
.xfader input::-moz-range-thumb { width: 28px; height: 40px; border-radius: 4px; border: 1px solid #0a0c12; box-shadow: 0 3px 8px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.25);
  background: linear-gradient(90deg, transparent 0 calc(50% - 1px), var(--pink) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(180deg, #3b4254 0 3px, #1a1e29 3px 6px); }
.mixer-note { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: 11px; color: var(--muted); }
.mixer-note b { font: 700 11px ui-monospace, Consolas, monospace; letter-spacing: 1.5px; color: var(--text); }
.program { text-align: center; }
.monitor { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: #06080d; border: 1px solid #1f2535; }
.monitor .cdj-btn { flex: 0 0 104px; height: 48px; }
.monitor .cdj-btn b { font: inherit; }
.monitor input { flex: 1; min-width: 60px; padding: 0; accent-color: var(--cyan); }

/* DJ Studio */
.golive { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.golive-lamp { font: 800 13px ui-monospace, Consolas, monospace; letter-spacing: 3px; padding: 10px 16px; border-radius: 10px;
  border: 2px solid #3a2228; color: #5a3038; min-width: 128px; text-align: center; }
.golive-lamp.live { color: #fff; background: var(--red); border-color: var(--red); box-shadow: 0 0 26px rgba(239,68,68,.65); }
.golive-lamp.wait { color: var(--amber); border-color: var(--amber); }
.golive-info { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.golive-info b { font: 700 22px ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; }
.golive-info span { color: var(--muted); font-size: 13px; }
.golive-info span.err { color: #fca5a5; }
.golive-q { flex-direction: row; align-items: center; gap: 8px; }
.golive-btn { height: 52px; padding: 0 28px; border-radius: 12px; border: 0; cursor: pointer; font: 800 14px system-ui, sans-serif; letter-spacing: 2px;
  color: #fff; background: linear-gradient(180deg, #ef4444, #b91c1c); box-shadow: 0 8px 24px rgba(239,68,68,.35), inset 0 -3px 0 rgba(0,0,0,.3); }
.golive-btn.on { background: linear-gradient(180deg, #334155, #1e293b); box-shadow: inset 0 -3px 0 rgba(0,0,0,.3); }
.golive-btn:disabled { opacity: .6; cursor: default; }
.deck-load { margin-left: auto; display: flex; gap: 6px; }
.deck-mid { display: flex; align-items: center; gap: 12px; }
.deck-mid .jog { flex: 1; width: auto; max-width: 220px; cursor: grab; touch-action: none; }
.deck-mid .jog:active { cursor: grabbing; }
.pitch { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vfader { writing-mode: vertical-lr; direction: rtl; width: 22px; height: 140px; padding: 0; accent-color: var(--deck, var(--cyan)); background: transparent; border: 0; }
.pitch .vfader { direction: ltr; height: 150px; }
.wave.seek { cursor: pointer; }
.sdeck .deck-tag { min-width: 70px; text-align: center; }
.sdeck.ending #npLeft, .sdeck.ending [data-el="left"] { color: var(--red); animation: lcdblink 1s steps(2, start) infinite; }
.smixer { gap: 12px; }
.smixer .strips { align-items: start; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px 4px; }
.sstrip, .smixer .master { gap: 5px; }
.ch-top { width: 80%; text-align: center; padding-top: 6px; border-top: 3px solid var(--deck); color: var(--deck); }
.kn { display: flex; flex-direction: column; align-items: center; gap: 1px; font: 700 9px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: var(--muted); user-select: none; }
.knob-w { position: relative; display: block; width: 42px; height: 42px; border-radius: 50%; cursor: ns-resize; touch-action: none; }
.knob-w svg { display: block; width: 100%; height: 100%; overflow: visible; }
.knob-w input { position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.knob-w:focus-within { outline: 1px dashed #3a4560; outline-offset: 2px; }
.k-track { fill: none; stroke: #232a3a; stroke-width: 3.5; stroke-linecap: round; }
.k-arc { fill: none; stroke: var(--deck, var(--cyan)); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 3px var(--deck, var(--cyan))); }
.k-cap { fill: #0b0e15; stroke: #2e3648; stroke-width: 1.5; }
.k-ptr { stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; }
.kn:has(#smaster) { --deck: #cbd5e1; }
.kn:has(#micVol) { --deck: var(--red); }
.kn:has(#fxVol) { --deck: #a78bfa; }
.kn-sep { width: 70%; height: 1px; background: #1f2636; margin: 2px 0; }
.mini-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 7px; cursor: pointer;
  background: linear-gradient(180deg, #151a25, #0a0d13); border: 1px solid #2a3245; color: var(--muted); font: 700 10.5px system-ui, sans-serif; letter-spacing: 1px; }
.mini-btn:hover { color: var(--text); border-color: #3a445c; }
#recBtn i { width: 8px; height: 8px; border-radius: 50%; background: #6b2a2a; }
#recBtn.on { color: #fff; border-color: var(--red); }
#recBtn.on i { background: var(--red); box-shadow: 0 0 8px var(--red); animation: lcdblink 1s steps(2, start) infinite; }
.mini-btn.mic.on { color: #fff; border-color: var(--red); background: linear-gradient(180deg, #7f1d1d, #450a0a); box-shadow: 0 0 12px rgba(239,68,68,.5); }
.rec-row, .mic-row { display: flex; align-items: center; gap: 6px; }
.rec-row span { font: 11px ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mic-row label.check { gap: 4px; font: 700 10px ui-monospace, Consolas, monospace; color: var(--muted); }
.strip-row { display: flex; gap: 8px; align-items: flex-end; margin-top: 4px; }
.strip-row .led-meter { height: 140px; }
.master-meters { gap: 5px; }
.master-meters .led-meter { height: 120px; width: 12px; }
.master-meters .led-meter.mini { width: 7px; }
.cdj-btn.brake span { color: var(--amber); }
kbd { font: 600 10.5px ui-monospace, Consolas, monospace; padding: 1px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; color: var(--text); }
.btn.on { border-color: var(--red); color: #fca5a5; }
/* DJ Studio beat FX unit (echo / reverb / flanger), between the strips and the crossfader */
.fxu { --deck: #a78bfa; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid #1c2232; }
.fxu-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fxu-head .ch-label { color: var(--deck); }
.fxu-seg { display: flex; gap: 3px; padding: 2px; border-radius: 8px; background: #06080d; border: 1px solid #1f2535; }
.fxu-seg button { flex: 1; height: 24px; padding: 0 7px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer;
  font: 700 10px ui-monospace, Consolas, monospace; letter-spacing: 1px; white-space: nowrap; }
.fxu-seg button:hover { color: var(--text); }
.fxu-seg button.on { color: #fff; background: color-mix(in srgb, var(--deck) 24%, #10131b); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--deck) 65%, transparent); }
.fxu-head .fxu-seg button { flex: none; padding: 0 8px; }
.fxu-lcd { font: 700 10.5px ui-monospace, Consolas, monospace; letter-spacing: .8px; text-align: center; color: var(--deck); padding: 5px 6px;
  background: linear-gradient(180deg, #04060a, #070a10); border: 1px solid #1d2433; border-radius: 6px; box-shadow: inset 0 0 12px rgba(0,0,0,.8);
  text-shadow: 0 0 8px rgba(167,139,250,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fxu-ctl { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.fxu-btns { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.fxu-btns .mini-btn { height: 24px; }
.fxu-btns .mini-btn[hidden] { display: inline-flex; visibility: hidden; }   /* keep FX ON from jumping */
#fxTap.hit { color: #fff; border-color: var(--deck); box-shadow: 0 0 10px rgba(167,139,250,.6); }
.fxu-on { height: 42px; min-width: 64px; border-radius: 10px; border: 1px solid #2a3245; background: linear-gradient(180deg, #151a25, #0a0d13); color: var(--muted);
  font: 800 11px system-ui, sans-serif; letter-spacing: 1.5px; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0,0,0,.45); }
.fxu-on:hover { color: var(--text); border-color: var(--deck); }
.fxu-on.on { color: #fff; border-color: var(--deck); background: linear-gradient(180deg, #6d28d9, #3b0d7a);
  box-shadow: 0 0 16px rgba(167,139,250,.55), inset 0 -3px 0 rgba(0,0,0,.35); }
.mix-row { display: flex; align-items: center; gap: 6px; }
.mix-row .btn.sm { padding: 5px 8px; white-space: nowrap; }
.mix-row select { width: auto; padding: 5px 4px; font-size: 12px; }
.mix-row #vtOpen { margin-left: auto; }
#autoMix.on { border-color: var(--green); color: #86efac; box-shadow: 0 0 12px rgba(34,197,94,.3); }
#autoMix.busy { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.golive-clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.golive-clock b { font: 700 18px ui-monospace, Consolas, monospace; color: var(--amber); text-shadow: 0 0 10px rgba(245,165,36,.4); font-variant-numeric: tabular-nums; }
.golive-clock small { font: 11px ui-monospace, Consolas, monospace; color: #4ade80; }
.top-btn { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
  font: 800 12px system-ui, sans-serif; letter-spacing: 1.5px; }
.top-btn.mon.on { color: #86efac; border-color: rgba(34,197,94,.55); background: rgba(34,197,94,.08); }
.top-btn.talk { color: var(--amber); border-color: rgba(245,165,36,.45); }
.top-btn.talk.on { color: #fff; border-color: var(--amber); background: linear-gradient(180deg, #b45309, #78350f); box-shadow: 0 0 18px rgba(245,165,36,.5); }

.studio-lower { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2 { margin: 0 auto 0 0; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.sfx-card { container-type: inline-size; }
/* 15 pads: 5 x 3, then 3 x 5, then 2 columns on very narrow screens */
.sfx-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@container (max-width: 520px) { .sfx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 250px) { .sfx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sfx-pad { position: relative; overflow: hidden; aspect-ratio: 1.15; min-height: 74px; padding: 8px 6px 6px; border-radius: 12px; cursor: pointer; user-select: none; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, #1c1836, #110f22); border: 1px solid #2d2852; box-shadow: inset 0 -3px 0 rgba(0,0,0,.45); }
.sfx-pad:hover { border-color: #7c6cf0; }
.sfx-pad:active { transform: translateY(1px); }
.sfx-pad b { max-width: 100%; font-size: 12px; line-height: 1.2; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.sfx-pad::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #a78bfa; transform: scaleX(0); transform-origin: left; }
.sfx-pad.on::after { animation: padprog var(--dur, 1s) linear forwards; }
@keyframes padprog { to { transform: scaleX(1); } }
.sfx-icon { font-size: 22px; line-height: 1; }
.sfx-key { position: absolute; top: 5px; left: 8px; font: 700 10px ui-monospace, Consolas, monospace; color: #8b80d8; }
.sfx-edit { position: absolute; top: 3px; right: 4px; padding: 2px 5px; border: 0; border-radius: 6px; background: none; color: #8b80d8; font-size: 13px; cursor: pointer; opacity: .7; }
.sfx-edit:hover { opacity: 1; background: rgba(139,128,216,.18); }
.sfx-pad.on { border-color: #a78bfa; box-shadow: 0 0 16px rgba(167,139,250,.45), inset 0 -3px 0 rgba(0,0,0,.45); }
.sfx-pad.hit { animation: padhit .25s ease-out; }
@keyframes padhit { from { background: #6d5bd0; } }
.tabs small { color: var(--muted); margin-left: 3px; }
.carts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 10px; max-height: 430px; overflow-y: auto; }
.cart { display: flex; align-items: center; gap: 8px; padding: 9px 9px 9px 12px; border-radius: 10px; cursor: pointer; min-width: 0;
  background: linear-gradient(180deg, #161b27, #0c0f16); border: 1px solid #2a3245; border-left: 3px solid var(--cyan); box-shadow: inset 0 -3px 0 rgba(0,0,0,.4); }
.cart-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-txt small { font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.cart-txt b { font-size: 13px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cart-acts { display: flex; flex-direction: column; gap: 4px; }
.cart-acts .mini-btn { height: 22px; padding: 0 7px; }
.cart:hover { border-color: var(--cyan); }
.cart.on { background: rgba(34,211,238,.12); box-shadow: 0 0 14px rgba(34,211,238,.3); }
.cart.loading { opacity: .6; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.icon-pick button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 18px; cursor: pointer; }
.icon-pick button.on { border-color: #a78bfa; background: rgba(167,139,250,.18); }
.vt-time { font: 700 20px ui-monospace, Consolas, monospace; align-self: center; }
#vtRec.on { border-color: var(--red); color: #fca5a5; }
#libDialog .tracklist { max-height: 55vh; }
#libDialog .tracklist li { cursor: default; }

/* server panel: stat tiles + charts */
.server-panel { margin-bottom: 16px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; }
.tiles.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
.meter-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 2px; }
.meter-bar i { display: block; height: 100%; width: 0; background: #0891b2; border-radius: 99px; transition: width .3s; }
.meter-bar.warn i { background: var(--amber); }
.meter-bar.crit i { background: var(--red); }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.tile-num { font-size: 26px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-sub { color: var(--muted); font-size: 12px; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart-card { margin: 0; min-width: 0; }
.chart-card figcaption { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.chart { position: relative; min-height: 170px; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.chart .xhair { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hit { cursor: crosshair; }
.chart-tip { position: absolute; pointer-events: none; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; font-size: 12px; white-space: nowrap; box-shadow: 0 8px 20px rgba(0,0,0,.45); }
.chart-empty { color: var(--muted); font-size: 13px; padding: 60px 0; text-align: center; border: 1px dashed var(--line); border-radius: 10px; }
.tbl td.num { font-variant-numeric: tabular-nums; }

/* tabs, swatches, misc */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 6px 12px; border-radius: 99px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); border-color: var(--cyan); background: rgba(34,211,238,.1); }
.tabs.big .tab { padding: 8px 18px; font-size: 14px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--c, var(--cyan)); vertical-align: -1px; }
.legend { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
input[type=color].color { padding: 2px; width: 44px; height: 36px; cursor: pointer; }
.url-cell { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.inset { margin-top: 14px; background: var(--bg); }
.test-ad { padding: 8px 0; border-top: 1px solid var(--line); }
.test-ad:first-of-type { border-top: 0; }
.program { font-size: 12px; color: var(--pink); font-weight: 600; min-height: 16px; }
.small-drop { padding: 18px; margin: 12px 0 0; }
.jingle-top { margin-bottom: 16px; }
.jingle-types { margin: 4px 0 0; }
.jingle-types dt { font-weight: 600; color: var(--text); margin-top: 10px; }
.jingle-types dt:first-child { margin-top: 0; }
.jingle-types dd { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
details.hint summary { cursor: pointer; color: var(--cyan); }
details.hint code { color: var(--text); }

/* schedule */
.sched-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sched-help { margin: 8px 0 16px; }
.cal-tip { margin: 0 0 10px; }
.cal-wrap { padding: 10px; }
.cal-wrap.ec-dark .ec { --ec-bg-color: var(--panel); --ec-border-color: var(--line); --ec-text-color: var(--text); --ec-popup-bg-color: var(--panel2);
  --ec-button-bg-color: var(--panel2); --ec-button-border-color: var(--line); --ec-button-text-color: var(--text);
  --ec-button-active-bg-color: color-mix(in srgb, var(--cyan) 22%, var(--panel2)); --ec-button-active-border-color: var(--cyan);
  --ec-today-bg-color: color-mix(in srgb, var(--cyan) 6%, var(--panel)); --ec-highlight-color: color-mix(in srgb, var(--cyan) 14%, var(--panel));
  --ec-now-indicator-color: var(--red); --ec-bg-event-opacity: .14; --ec-event-bg-color: var(--pink); font-size: 13px; }
.cal-wrap .ec-toolbar { flex-wrap: wrap; gap: 8px; }
.cal-wrap .ec-title { font-size: 17px; }
.cal-wrap .ec-button { border-radius: 9px; }
.cal-wrap .ec-col-head, .cal-wrap .ec-slot { color: var(--muted); }
.cal-wrap .ec .ec-event:not(.ec-bg-event) { background: color-mix(in srgb, var(--c, var(--pink)) 30%, var(--panel)); border: 1px solid var(--c, var(--pink));
  color: var(--text); border-radius: 7px; box-shadow: 0 4px 12px rgba(0,0,0,.4); cursor: pointer; }
.cal-wrap .ec .ec-event:not(.ec-bg-event):hover { filter: brightness(1.2); }
.cal-wrap .ec .ec-bg-event { background: color-mix(in srgb, var(--c) 13%, transparent); border-left: 3px solid color-mix(in srgb, var(--c) 45%, transparent); opacity: 1; }
.cal-wrap .ec .ec-list .ec-event { background: transparent; border: 0; border-left: 3px solid var(--c, var(--pink)); border-radius: 0; box-shadow: none; }
.cal-wrap .ec-day-grid .ec-event-body { gap: 6px; }
.cal-ev-title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev-time { display: block; color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-under-label { display: block; padding: 2px 5px; font-size: 10px; color: color-mix(in srgb, var(--c) 80%, white); }
.clk-grid { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.clk-editor { display: grid; grid-template-columns: 240px 1fr; gap: 18px; margin-top: 12px; }
.wheel-box { text-align: center; }
.wheel-box svg { width: 100%; max-width: 240px; }
.slots li { grid-template-columns: auto auto 1fr auto auto; }
.slot-dot { width: 10px; height: 10px; border-radius: 3px; }
.slot-add { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.slot-add select { flex: 1 1 140px; }
.brush { display: flex; align-items: center; gap: 8px; }
.hourgrid { display: grid; grid-template-columns: 40px repeat(24, minmax(22px, 1fr)); gap: 2px; user-select: none; overflow-x: auto; }
.hg-h { font-size: 10px; color: var(--muted); text-align: center; }
.hg-d { font-size: 11px; color: var(--muted); align-self: center; }
.hg-c { height: 28px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); cursor: crosshair; font-size: 9.5px; display: grid; place-items: center; color: #06121a; font-weight: 700; overflow: hidden; }
.hg-c[style*="--c"] { background: var(--c); border-color: transparent; }
.hg-c:hover { outline: 2px solid var(--text); }
dialog { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; width: min(620px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
.days { display: flex; gap: 12px; flex-wrap: wrap; }

/* responsive */
@media (max-width: 1100px) {
  .console { grid-template-columns: 1fr 1fr; }
  .mixer { grid-column: 1 / -1; order: -1; flex-direction: row; flex-wrap: wrap; justify-content: space-around; }
  .meters { height: 60px; }
  .fader { width: 220px; }
  .pl-grid { grid-template-columns: 1fr 1fr; }
  .dash-lower { grid-template-columns: 1fr; }
  .clk-grid, .clk-editor { grid-template-columns: 1fr; }
  .console.studio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "mx mx" "a b" "sfx img"; grid-template-rows: none; }
  .console.studio .djm { flex-direction: column; flex-wrap: nowrap; }
  .console.studio .strips, .console.studio .fxu { max-width: 420px; margin: 0 auto; width: 100%; }
  .studio-lower { grid-template-columns: 1fr; }
  .tiles, .tiles.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .charts { grid-template-columns: 1fr; }
  .pl-grid > .card:first-child { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .shell { grid-template-columns: 190px 1fr; }
  .side { padding: 16px 10px; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  /* sidebar -> off-canvas drawer */
  .side { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(280px, 84vw); height: 100vh; height: 100dvh; overflow-y: auto;
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom)); transform: translateX(-102%); transition: transform .22s ease, visibility .22s; visibility: hidden; }
  .nav-open .side { transform: none; visibility: visible; box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  .side-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
  .nav-open { overflow: hidden; }
  .side nav a { padding: 11px 12px; font-size: 15px; }
  .brand-logo { max-width: 120px; }
  .nav-toggle { display: inline-flex; }
  .top-brand { display: block; flex: none; }
  .top { padding: 8px 12px; gap: 10px; }
  .station-pick { flex: 1; }
  .station-pick label { display: none; }
  .station-pick select { width: 100%; }
  .who { gap: 8px; }
  .who .role, .who > span:not(.role) { display: none; }
  .content { padding: 14px 12px 24px; }
  .page-title { font-size: 19px; margin-bottom: 14px; }
  /* 16px stops iOS zooming into focused fields */
  input, select, textarea, .swal-input { font-size: 16px; }
  input.tiny { font-size: 14px; }
  .card { padding: 14px; }
  .card:has(.tbl) { overflow-x: auto; }
  .tbl th, .tbl td { padding: 8px 7px; }
  .tbl-tools { flex-wrap: wrap; }
  .tbl-tools input { flex: 1 1 100%; }
  dialog { padding: 16px; width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  #toasts { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
  /* studio go-live bar */
  .golive { gap: 10px; }
  .golive-lamp { min-width: 0; flex: 1; }
  .golive-info { order: 5; flex-basis: 100%; min-width: 0; }
  .golive-q { flex: 1; }
  .golive-q select { flex: 1; }
  .top-btn { flex: 1; }
  .golive-btn { flex: 1 1 100%; }
  .deck-top { flex-wrap: wrap; }
  .jog { width: min(200px, 66%); }
  .deck-mid .jog { max-width: 190px; }
  .strip-row .led-meter { height: 110px; }
  .led-meter { height: 120px; }
  .sched-head .tabs { width: 100%; }
  .console { grid-template-columns: 1fr; }
  .pl-grid { grid-template-columns: 1fr; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .up { grid-template-columns: 1fr 80px; }
  .tiles, .tiles.six, .tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console.studio { grid-template-columns: minmax(0, 1fr); grid-template-areas: "mx" "a" "b" "sfx" "img"; }
  .lcd-time b { font-size: 17px; }
  .tile-num { font-size: 21px; }
  .up .bar { grid-column: 1 / -1; order: 3; }
  .row { flex-wrap: wrap; }
}

/* analytics */
.heading-sub { font-weight: 500; font-size: .7em; }
.an-head { margin-bottom: 4px; }
.an-map-card { margin-bottom: 16px; }
.an-map { height: 440px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; margin-top: 12px; background: #0e1118; z-index: 0; }
.an-map-note { margin-top: 8px; }
.an-map .leaflet-container, .an-map.leaflet-container { background: #0e1118; font: inherit; }
.an-map .leaflet-tooltip { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.45); font-size: 12px; }
.an-map .leaflet-tooltip-top::before { border-top-color: var(--line); }
.an-map .leaflet-control-attribution { background: rgba(7,8,13,.75); color: var(--muted); }
.an-map .leaflet-control-attribution a { color: var(--cyan); }
.an-map .leaflet-bar a { background: var(--panel2); color: var(--text); border-bottom-color: var(--line); }
.an-map .leaflet-bar { border-color: var(--line); }
/* OpenStreetMap's light tiles turned dark: invert, then rotate hues back so water stays blue. */
.an-map .an-tiles { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.6); }
.an-dot.live { animation: an-pulse 2.4s ease-in-out infinite; }
@keyframes an-pulse { 50% { fill-opacity: .15; stroke-opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .an-dot.live { animation: none; } }
.an-charts { margin-bottom: 16px; }
.an-tables .tbl th.num { text-align: right; }
.an-tables .tbl td.num { text-align: right; }
#anLive th.num, #anLive td.num { text-align: right; }
/* Analytics is mostly charts, maps and tables: use more of a wide screen than other pages. */
body[data-page="analytics"] .content { max-width: 1760px; }
/* Countries | Cities | session length + how they listen. Tables scroll inside equal-height cards. */
.an-tables { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, .75fr); gap: 16px; align-items: stretch; }
.an-tcard { display: flex; flex-direction: column; min-width: 0; }
.an-tcard h2 { margin-top: 0; }
.an-scroll { flex: 1; max-height: 460px; overflow: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; }
.an-scroll thead th { position: sticky; top: 0; z-index: 1; background: var(--panel2); }
.an-tables td { vertical-align: middle; }
.an-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.an-side h2 { margin-top: 0; }
.an-flag { display: inline-block; min-width: 26px; margin-right: 8px; padding: 1px 4px; border-radius: 4px; background: var(--line);
  color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .5px; text-align: center; vertical-align: 1px; }
.an-place { display: flex; align-items: baseline; min-width: 0; }
.an-place > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.an-share-col { width: 26%; min-width: 60px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 1280px) {
  .an-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 760px) {
  .an-tables, .an-side { grid-template-columns: minmax(0, 1fr); }
  .an-side { gap: 20px; }
  .an-scroll { max-height: 360px; }
  .an-tables .tbl th, .an-tables .tbl td { padding-left: 6px; padding-right: 6px; }
}
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.an-credit { margin: 16px 0 8px; }
.an-credit a { color: var(--cyan); }
.hbar-track { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.hbar-track i { display: block; height: 100%; background: #0891b2; border-radius: 4px; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: 92px 1fr 56px; align-items: center; gap: 10px; font-size: 12.5px; }
.hbar-label { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-val { text-align: right; font-variant-numeric: tabular-nums; }
.hod { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; height: 170px; align-items: end; }
.vbar { display: flex; flex-direction: column; height: 100%; gap: 4px; min-width: 0; }
.vbar-track { flex: 1; display: flex; align-items: flex-end; border-radius: 4px 4px 0 0; }
.vbar:hover .vbar-track { background: rgba(34,211,238,.07); }
.vbar-track i { display: block; width: 100%; background: #0891b2; border-radius: 4px 4px 0 0; }
.vbar-label { font-size: 10.5px; color: var(--muted); height: 14px; white-space: nowrap; overflow: visible; }
.hod .chart-empty { grid-column: 1 / -1; align-self: stretch; }
@media (max-width: 1100px) { .an-charts { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .an-map { height: 320px; }
  .an-share-col { display: none; }
  .vbar-label { font-size: 9px; }
}
/* DJ Studio shout-outs ticker */
.shout { display: flex; align-items: center; gap: 12px; height: 38px; margin: 0 0 14px; padding: 0 6px 0 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.shout-head { flex: none; display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--muted); text-decoration: none; }
.shout-head b { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }
.shout-head:hover { color: var(--text); }
.shout-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.shout-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.shout-track { display: flex; width: max-content; }
.shout-track.run { animation: shout-scroll var(--shout-dur, 30s) linear infinite; }
.shout:hover .shout-track.run { animation-play-state: paused; }
@keyframes shout-scroll { to { transform: translateX(-50%); } }
.shout-set { display: flex; gap: 22px; padding: 0 22px 0 12px; }
.shout-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; color: var(--text); }
.shout-item b { color: var(--cyan); font-weight: 700; }
.shout-item i { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .8px; color: #07080d; background: var(--amber); border-radius: 4px; padding: 1px 5px; }
.shout-item.fresh { color: #fff; }
.shout-flag { font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  .shout-track.run { animation: none; }
  .shout-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .shout-set[aria-hidden] { display: none; }
}
@media (max-width: 760px) { .shout-head { letter-spacing: .5px; } }
/* DJ Studio weather strip (same height as the shout-outs ticker) */
.shout:has(+ .wx:not([hidden])) { margin-bottom: 8px; }
.an-scope { margin: -4px 0 16px; }
/* On/off switch (Media page: requestable songs) */
.switch { position: relative; display: inline-block; width: 36px; height: 20px; cursor: pointer; vertical-align: middle; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #2a3142; transition: background .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #cfd5e3; transition: transform .15s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.rq-bulk { display: inline-flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
/* Requests page (app.js requests) */
.rq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.rq-grid .card + .card { margin-top: 16px; }
.rq-preview { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 12px; }
.rq-preview iframe { display: block; width: 100%; height: 560px; border: 0; }
#rqCode { width: 100%; font: 12px/1.5 ui-monospace, Consolas, monospace; resize: vertical; }
.req-by { font-size: 11px; color: var(--amber); }
@media (max-width: 1000px) { .rq-grid { grid-template-columns: 1fr; } }
/* Schedule page: website widget builder (app.js scheduleWidget) */
.sw-stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 12px; max-height: 220px; overflow-y: auto;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.sw-stations .hint { grid-column: 1 / -1; margin: 2px 0 0; }
.sw-preview { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.sw-preview iframe { display: block; width: 100%; height: 360px; border: 0; }
#swCode, #swIframe { width: 100%; font: 12px/1.5 ui-monospace, Consolas, monospace; resize: vertical; }
.sw-alt { margin-top: 10px; }
.sw-alt summary { cursor: pointer; color: var(--muted); font-size: 13px; }
/* DJs page (app.js djs) */
.dj-intro { max-width: 900px; margin: 0 0 14px; }
.dj-photo { display: flex; gap: 14px; align-items: center; }
.dj-photo .hint { margin: 6px 0 0; }
.dj-av { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--bg) center / cover no-repeat; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); font-size: 26px; font-weight: 700; }
.dj-av.sm { width: 34px; height: 34px; font-size: 14px; }
.dj-who { display: flex; gap: 10px; align-items: center; }
.dj-shows { margin-top: 3px; font-size: 12px; color: var(--muted); }
.dj-shows span { display: inline-block; margin-right: 8px; }
.dj-social summary { cursor: pointer; font-size: 13px; font-weight: 600; padding: 4px 0; }
.dj-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 12px; }
.dj-warn { margin-bottom: 14px; }
.dj-connect { margin-top: 18px; margin-bottom: 18px; }
.dj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 28px; }
.dj-grid h3 { margin: 6px 0 8px; font-size: 14px; }
.dj-grid dd code { word-break: break-all; }
#djTbl .actions { white-space: normal; }
#djHelp { width: min(720px, calc(100vw - 20px)); }
#djHelpText { width: 100%; font: 12.5px/1.5 ui-monospace, Consolas, monospace; resize: vertical; }
/* Talk-up bar (studio.js talkUp): facts about the artist on air and next, from the Artist Library */
.tu { margin: 0 0 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tu-bar { display: flex; align-items: center; gap: 12px; width: 100%; height: 38px; padding: 0 12px; background: none; border: 0; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; }
.tu-head { flex: none; display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--muted); }
.tu-bar:hover .tu-head, .tu-bar:hover .tu-open { color: var(--text); }
.tu-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.tu-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; overflow: hidden; }
.tu-item { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 7px; overflow: hidden; }
.tu-item + .tu-item { padding-left: 16px; border-left: 1px solid var(--line); }
.tu-item img { flex: none; width: 26px; height: 26px; border-radius: 5px; object-fit: cover; }
.tu-item i, .tu-card h3 i { flex: none; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .8px; color: #07080d; background: var(--green); border-radius: 4px; padding: 1px 5px; }
.tu-item i.next, .tu-card h3 i.next { background: var(--cyan); }
.tu-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tu-text small { color: var(--muted); font-size: 12px; }
.tu-open { flex: none; margin-left: auto; color: var(--muted); font-size: 12px; }
.tu-more { border-top: 1px solid var(--line); max-height: 380px; overflow-y: auto; padding: 0 14px 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 22px; }
.tu-more[hidden] { display: none; }
.tu-card { display: flex; gap: 12px; padding-top: 12px; min-width: 0; }
.tu-card > img { flex: none; width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.tu-card > div { min-width: 0; }
.tu-card h3 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 14px; }
.tu-card p { margin: 4px 0; font-size: 13px; line-height: 1.45; }
.tu-card .tu-bio { white-space: pre-line; color: var(--text); }
.tu-card a { font-size: 12px; margin-right: 10px; }
@media (max-width: 760px) { .tu-head { letter-spacing: .5px; } .tu-text small, .tu-open { display: none; } }
/* Request queue bar (studio.js requestBar): the AutoDJ's request line, loadable onto the decks */
.rqb-dot { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.rqb .tu-head b { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }
.rqb .tu-item i { background: var(--pink); }
.rqb-more { border-top: 1px solid var(--line); max-height: 360px; overflow-y: auto; padding: 4px 14px 10px; }
.rqb-more[hidden] { display: none; }
.rqb-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rqb-row:last-child { border-bottom: 0; }
.rqb-n { flex: none; width: 20px; color: var(--pink); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.rqb-txt { flex: 1; min-width: 0; }
.rqb-txt b, .rqb-txt span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rqb-txt span { color: var(--muted); font-size: 12.5px; }
.rqb-txt em { display: block; font-style: normal; font-size: 13px; color: var(--text); white-space: normal; margin-top: 2px; }
.rqb-acts { flex: none; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .rqb-row { flex-wrap: wrap; } .rqb-acts { width: 100%; justify-content: flex-start; padding-left: 32px; } }
.wx { display: flex; align-items: center; gap: 12px; height: 38px; margin: 0 0 14px; padding: 0 12px 0 6px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.wx[hidden] { display: none; }
.wx-head { flex: none; display: flex; align-items: center; gap: 5px; max-width: 34%; background: none; border: 0; border-radius: 7px; padding: 4px 6px; color: var(--muted); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.wx-head span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-head small { opacity: .6; }
.wx-head:hover { color: var(--text); background: rgba(255,255,255,.04); }
.wx-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.wx-body::-webkit-scrollbar { display: none; }
.wx-now, .wx-days { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; }
.wx-now img, .wx-day img { width: 26px; height: 26px; margin: -4px -2px; }
.wx-temp { font-size: 15px; font-variant-numeric: tabular-nums; }
.wx-cond { color: var(--text); }
.wx-meta { color: var(--muted); font-size: 12px; }
.wx-days { gap: 16px; margin-left: auto; padding-left: 16px; border-left: 1px solid var(--line); }
.wx-day { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.wx-day small { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; min-width: 34px; }
.wx-day em { font-style: normal; font-size: 11px; color: var(--cyan); }
@media (max-width: 1100px) { .wx-meta { display: none; } }
@media (max-width: 760px) { .wx-head { max-width: 40%; } .wx-cond { display: none; } }
/* DJ Studio weather alerts */
.wx:has(+ .wx-alert:not([hidden])) { margin-bottom: 8px; }
.wx-alert { --al: var(--cyan); margin: 0 0 14px; border: 1px solid color-mix(in srgb, var(--al) 55%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--al) 12%, var(--bg2)); overflow: hidden; }
.wx-alert[hidden] { display: none; }
.wx-alert.extreme, .wx-alert.severe { --al: var(--red); }
.wx-alert.moderate { --al: var(--amber); }
.wx-alert.new { animation: wx-flash 1.2s ease-in-out 4; }
@keyframes wx-flash { 50% { background: color-mix(in srgb, var(--al) 32%, var(--bg2)); } }
@media (prefers-reduced-motion: reduce) { .wx-alert.new { animation: none; } }
.wx-alert-bar { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 12px; background: none; border: 0; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; }
.wx-alert-bar b { overflow: hidden; text-overflow: ellipsis; }
.wx-alert-icon { color: var(--al); font-size: 16px; }
.wx-alert-sev { font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #07080d; background: var(--al); border-radius: 4px; padding: 1px 6px; }
.wx-alert-until, .wx-alert-more { color: var(--muted); font-size: 12px; }
.wx-alert-open { margin-left: auto; color: var(--muted); font-size: 12px; }
.wx-alert-list { border-top: 1px solid color-mix(in srgb, var(--al) 35%, transparent); max-height: 340px; overflow-y: auto; padding: 4px 14px 10px; }
.wx-alert-item { --al: var(--cyan); padding: 10px 0 10px 12px; border-left: 3px solid var(--al); margin-top: 8px; }
.wx-alert-item.extreme, .wx-alert-item.severe { --al: var(--red); }
.wx-alert-item.moderate { --al: var(--amber); }
.wx-alert-item h3 { margin: 0 0 2px; font-size: 14px; }
.wx-alert-item h3 small { color: var(--muted); font-weight: 500; font-size: 11.5px; margin-left: 6px; }
.wx-alert-item p { margin: 4px 0; font-size: 13px; }
.wx-alert-text { white-space: pre-line; color: var(--text); line-height: 1.45; }
@media (max-width: 760px) { .wx-alert-until, .wx-alert-more { display: none; } }
.cdj-btn.restart span { color: var(--cyan); }
/* Backups page (admin) */
.bk-intro { margin: -4px 0 14px; max-width: 900px; }
.bk-warn { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(245,165,36,.45); color: var(--amber); background: rgba(245,165,36,.08); }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bk-side { display: flex; flex-direction: column; gap: 16px; }
.bk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.bk-head h2 { margin: 0; }
.bk-acct-row { align-items: flex-end; }
.bk-acct-row label { flex: 1; min-width: 0; }
.bk-help summary { cursor: pointer; list-style: none; }
.bk-help summary::-webkit-details-marker { display: none; }
.bk-help summary h2 { display: inline; margin: 0; }
.bk-help summary::after { content: "▸"; color: var(--muted); margin-left: 8px; }
.bk-help[open] summary::after { content: "▾"; }
.bk-help ol { margin: 12px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.bk-card { margin-top: 16px; }
.bk-scroll { overflow-x: auto; }
.bk-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.bk-last { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bkLogDlg { width: min(860px, calc(100vw - 32px)); }
.bk-log { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 10px 0 14px; max-height: 60vh; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.5; }
@media (max-width: 1100px) { .bk-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .bk-acct-row { flex-direction: column; align-items: stretch; } .bk-last { max-width: 160px; } }
/* Ads page: Unlimited Text Ads promo */
.ad-promo { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; border-color: color-mix(in srgb, var(--cyan) 40%, var(--line)); }
.ad-promo-logo { flex: none; display: flex; align-items: center; justify-content: center; width: 180px; height: 72px; padding: 10px 14px; background: #fff; border-radius: 10px; }
.ad-promo-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ad-promo-body { flex: 1; min-width: 0; }
.ad-promo-body h2 { margin-bottom: 4px; }
.ad-promo-body p { margin: 0; }
@media (max-width: 760px) { .ad-promo { flex-direction: column; align-items: stretch; text-align: center; } .ad-promo-logo { align-self: center; } .ad-promo .btn { white-space: normal; } }

/* SoundExchange report check (Analytics) */
.warn-text { color: var(--warn, #f59e0b); }
#sxResult ul { margin: 4px 0 0 18px; }

