:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --white: #fff;
  --ink: #172232;
  --muted: #718094;
  --line: #e2e7ed;
  --brand: #2358cd;
  --brand-dark: #1745a6;
  --red: #d24554;
  --green: #1cbb7e;
  --round: 14px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
.wrap { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.bar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; gap: 11px; align-items: center; font-weight: 780; font-size: 19px; letter-spacing: -.65px; white-space: nowrap; }
.brand small { display: block; font-size: 10px; letter-spacing: 1.8px; color: var(--muted); font-weight: 750; margin-top: 1px; }
.mark { display: grid; place-items: center; background: #172b4b; color: #fff; width: 42px; height: 42px; border-radius: 12px; position: relative; font-size: 25px; font-weight: 800; }
.mark-dot { width: 6px; height: 6px; border-radius: 50%; background: #54d3ff; position: absolute; right: 8px; top: 9px; }
nav { display: flex; align-items: center; gap: 25px; color: #6a788c; font-weight: 600; }
nav a.selected { color: var(--brand); }
.signal { font-size: 12px; font-weight: 650; display: flex; gap: 9px; align-items: center; }
.led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #a5aeb9; margin-right: 4px; }
.led.on, .live-led { background: var(--green); box-shadow: 0 0 0 4px #1cbb7e1c; }
.led.live { background: var(--red); box-shadow: 0 0 0 4px #d2455424; }
main.wrap { padding-bottom: 90px; }
.heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; padding: 38px 0 26px; }
.eyebrow { font-size: 10px; font-weight: 800; color: var(--brand); letter-spacing: 1.65px; display: flex; align-items: center; gap: 9px; }
h1 { margin: 9px 0 7px; font-size: 37px; letter-spacing: -1.55px; line-height: 1.15; }
h2 { font-size: 20px; font-weight: 750; margin: 8px 0 5px; letter-spacing: -.6px; }
p { margin: 0; line-height: 1.55; }
.heading p, .muted, .quiet { color: var(--muted); }
.quiet { font-size: 12px; }
.subtle-link { color: var(--brand); font-size: 13px; font-weight: 700; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric { background: var(--white); border: 1px solid var(--line); border-radius: var(--round); padding: 18px 20px; }
.metric span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 9px; }
.metric strong { font-weight: 750; font-size: 23px; letter-spacing: -.6px; }
.desk-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .85fr); gap: 20px; align-items: start; }
.desk-main, .desk-side { display: grid; gap: 20px; }
.panel { min-width: 0; background: #fff; padding: 25px; border: 1px solid var(--line); border-radius: var(--round); box-shadow: 0 6px 26px #12203a04; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.panel-head h2 { overflow-wrap: anywhere; }
.playing h2 { font-size: 25px; margin-top: 14px; }
.song-artist { font-size: 15px; color: #536680; font-weight: 600; }
.time { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12px; color: #8793a2; margin-top: 4px; }
.progress { background: #edf1f6; height: 8px; border-radius: 100px; overflow: hidden; margin: 21px 0; }
.progress > div { width: 0; height: 100%; border-radius: inherit; background: var(--brand); transition: width .3s; }
.progress.tiny { height: 5px; margin: 9px 0 0; }
.actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.btn { border-radius: 9px; border: 1px solid transparent; padding: 10px 15px; font-size: 12px; font-weight: 750; white-space: nowrap; transition: background .15s; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn.light { background: #f1f4f8; color: #3a4d68; border-color: #e5ebf2; }
.btn.light:hover:not(:disabled) { background: #e7edf5; }
.btn.danger { color: #b5273d; background: #fff0f1; border-color: #fbd7dd; }
.btn.danger:hover:not(:disabled) { background: #fbdde1; }
.btn.full { width: 100%; margin-top: 22px; }
.live-panel { border-color: #cddcf8; }
.pill { padding: 7px 10px; background: #f1f5fb; border: 1px solid #e6edf5; border-radius: 100px; color: #64758d; font-weight: 700; font-size: 11px; white-space: nowrap; }
.pill.live { background: #ffeced; border-color: #ffd4d8; color: #b12f42; }
.live-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 17px; margin-top: 25px; }
.field-label { display: block; font-weight: 700; color: #43536b; font-size: 12px; margin-top: 18px; margin-bottom: 7px; }
.live-cols .field-label { margin-top: 0; min-height: 30px; }
.field-label b { color: var(--brand); }
input:not([type=range]):not([type=checkbox]):not([type=file]), select { width: 100%; background: #fff; border: 1px solid #d4dde9; border-radius: 8px; padding: 11px 11px; min-width: 0; outline: none; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #78a2ff; outline-offset: 2px; }
input[type=range] { accent-color: var(--brand); width: 100%; margin: 10px 0; cursor: pointer; }
.mic-meter { background: #e7ecf3; border-radius: 100px; height: 8px; margin-top: 22px; overflow: hidden; }
.mic-meter div { height: 100%; background: linear-gradient(90deg, #23b878 0%, #65d7a2 55%, #e3b24e 85%, #cf4c55 100%); transition: width .08s; width: 0; }
.feedback { font-size: 12px; color: #537594; min-height: 18px; padding-top: 11px; }
.feedback.error { color: #b52f45; }
.directory-row { background: #f8fafd; border: 1px solid #edf1f5; padding: 16px; border-radius: 10px; margin-top: 23px; }
.directory-row .field-label { margin-top: 0; }
.inline-input { display: flex; gap: 7px; align-items: center; }
.inline-input input { flex: 1; }
.directory-row .quiet { margin-top: 9px; }
.library-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 21px 0 8px; }
.library-tools input { max-width: 460px; }
.upload-btn { display: inline-flex; justify-content: center; align-items: center; border: 1px solid #cbdaf8; border-radius: 8px; background: #edf3ff; color: var(--brand); padding: 11px 15px; font-size: 12px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.track-list { max-height: 560px; overflow: auto; scrollbar-color: #cdd8ea transparent; }
.track { display: flex; align-items: center; padding: 13px 4px; border-bottom: 1px solid #eff2f6; gap: 13px; }
.track:last-child { border-bottom: 0; }
.track.current { background: #f4f8ff; border-radius: 7px; }
.track-no { font-size: 12px; color: #a4afbe; min-width: 24px; text-align: right; }
.track-info { min-width: 0; flex: 1; }
.track-info strong { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-info small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.track-controls { display: flex; gap: 4px; }
.track-controls button { background: #f4f6fa; border: 0; border-radius: 7px; color: #6b7a90; padding: 6px 9px; font-size: 12px; }
.track-controls button:hover { background: #e7edf6; }
.empty { color: var(--muted); text-align: center; padding: 30px 0; font-size: 13px; }
.check { display: flex; gap: 9px; align-items: center; font-size: 13px; font-weight: 650; color: #43536b; margin-top: 19px; }
.check input { accent-color: var(--brand); }
.link-list { display: grid; margin-top: 14px; }
.link-list a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: #3e628e; font-weight: 650; }
.link-list a:last-child { border-bottom: 0; }
.edit-dialog { border: 1px solid var(--line); border-radius: 16px; padding: 25px; width: min(470px, 95vw); box-shadow: 0 30px 100px #16233e40; }
.edit-dialog::backdrop { background: #162a4777; }
.edit-dialog h2 { margin-bottom: 20px; }
.edit-dialog .field-label input { display: block; margin-top: 8px; }
.public { padding-top: 62px; text-align: center; }
.public h1 { font-size: clamp(38px, 6vw, 58px); }
.receiver { width: min(630px, 100%); background: #142b4d; border-radius: 22px; padding: 32px; color: white; margin: 33px auto 28px; box-shadow: 0 26px 75px #10234626; }
.receiver-top, .receiver-actions { display: flex; justify-content: space-between; align-items: center; gap: 17px; }
.receiver-top { color: #a9bad2; font-size: 12px; }
.pill.dark { background: #223d60; border-color: #355076; color: #dfebfc; }
.record { width: 168px; height: 168px; margin: 33px auto; background: repeating-radial-gradient(circle, #1d3557 0px, #1d3557 3px, #264565 4px, #162d4f 6px); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 10px #142d4e; }
.record-inner { width: 68px; height: 68px; border-radius: 50%; background: #316be1; position: relative; display: grid; place-items: center; font-weight: 850; font-size: 40px; }
.record-inner .mark-dot { right: 9px; top: 15px; }
.receiver-kicker { justify-content: center; color: #93b7ff; }
.receiver h2 { font-size: clamp(23px, 4vw, 33px); margin-top: 10px; }
.receiver #artist { color: #c6d6e9; font-size: 15px; }
.receiver-album { color: #91acc9; margin-top: 6px; font-size: 12px; }
.receiver-actions { margin-top: 29px; background: #1a3559; border-radius: 14px; padding: 13px 17px; }
.play { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #12305a; border: 0; font-size: 19px; }
.volume { display: flex; flex-direction: column; gap: 3px; text-align: left; flex: 1; max-width: 150px; font-size: 12px; color: #adc0da; }
.receiver-actions #listenState { font-size: 12px; text-align: right; color: #adc0da; }
.public-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; color: #3b66ac; font-size: 13px; font-weight: 700; }
@media (max-width: 980px) { .desk-grid { grid-template-columns: 1fr; }.desk-side { grid-template-columns: 1fr 1fr; }.live-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 650px) { .wrap { width: min(100% - 24px, 1240px); } .bar { gap: 10px; height: 68px; }.brand { font-size: 16px; }.brand small { font-size: 7px; letter-spacing: 1px; } .mark { width: 36px; height: 36px; }.bar nav { gap: 10px; font-size: 11px; }.signal { display: none; }.heading { padding-top: 26px; }h1 { font-size: 30px; }.heading .subtle-link { display: none; }.metrics { grid-template-columns: repeat(2, 1fr); gap: 9px; } .metric { padding: 14px; }.metric strong { font-size: 20px; }.desk-side { grid-template-columns: 1fr; }.panel { padding: 18px; }.panel-head { flex-wrap: wrap; }.live-cols { grid-template-columns: 1fr; gap: 8px; }.live-cols .field-label { min-height: 0; }.inline-input { flex-wrap: wrap; }.inline-input input { flex-basis: 100%; }.library-tools { flex-wrap: wrap; }.library-tools input { flex: 1; }.track-controls button { padding: 6px; }.receiver { padding: 23px 18px; }.receiver-actions { padding: 10px; } }

[hidden] { display: none !important; }
.record img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.show-name { margin-top: 20px; max-width: 390px; }
.show-name .field-label { margin-top: 0; }

.setting-value { background: #f7f9fc; border: 1px solid #e2e7ed; border-radius: 8px; padding: 11px; font-weight: 650; overflow-wrap: anywhere; }
#configHint { margin-top: 15px; }
