body { font: 14px/1.4 system-ui, sans-serif; margin: 0; background: #14151a; color: #ddd; }
a { color: #9fb4ff; } a:visited { color: #b8a6e6; }
header { display: flex; align-items: center; gap: 24px; padding: 12px 20px; background: #1e2028; }
h1 { margin: 0; font-size: 22px; color: #ffb347; } h1 span { color: #888; font-weight: 400; }
h2 { font-size: 16px; margin: 0 0 8px; } h2 small { color: #888; font-weight: 400; }
h3 { font-size: 13px; margin: 14px 0 6px; color: #aaa; }
.state label { margin-right: 14px; } .kill { color: #ff6b6b; }
.viewers { margin-left: auto; color: #9fb4ff; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 20px 0; }
.card { background: #1b1d24; border-radius: 8px; padding: 14px; margin: 14px 20px; }
.grid .card { margin: 0; }
table { width: 100%; border-collapse: collapse; } td, th { text-align: left; padding: 4px 6px; border-bottom: 1px solid #2a2d38; vertical-align: top; }
th { color: #888; font-weight: 500; font-size: 12px; }
.health .dot { width: 10px; } .health tr.ok .dot::before { content: "●"; color: #5fd38d; } .health tr.bad .dot::before { content: "●"; color: #ff6b6b; }
tr.failed td, .err { color: #ff8080; } tr.running td { color: #ffd479; } tr.done td { color: #9fd7a8; }
.muted { color: #666; } .src { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; gap: 6px; margin-bottom: 6px; } .row input[type=text], .row input:not([type]) { flex: 1; }
input, select, button { font: inherit; background: #101116; color: #ddd; border: 1px solid #333; border-radius: 4px; padding: 4px 8px; }
button { background: #2d3140; cursor: pointer; } .inline input { width: 160px; } .inline input.album { width: 150px; } .inline input.year { width: 56px; }
.flash { margin: 10px 20px 0; padding: 8px 12px; background: #4a2a2a; border-radius: 6px; }
.topnav { display: flex; gap: 14px; } .topnav a { color: #aaa; text-decoration: none; padding: 4px 8px; border-radius: 4px; }
.topnav a.active { background: #2d3140; color: #fff; }
.years { display: flex; flex-wrap: wrap; gap: 6px; } .years button.done { border-color: #5fd38d; color: #9fd7a8; }
.notes { white-space: pre-line; color: #bbb; max-height: 160px; overflow: auto; }
.badge { padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #333; }
.badge.in_library { background: #234; color: #9fd7a8; } .badge.available { background: #343; color: #cfc; }
.badge.unavailable { background: #422; color: #f99; } .badge.queued { background: #443; color: #ffd479; } .badge.unresolved { color: #888; }
.good { color: #9fd7a8; } .ok { color: #cfc; } .bad { color: #f99; }
tr.resolving td { background: #22252f; }
.actions { display: flex; gap: 6px; align-items: center; } .actions form { margin: 0; }
button.primary { background: #3a4a7a; }
.toast { position: fixed; right: 20px; bottom: 20px; padding: 10px 16px; border-radius: 8px; background: #2d3140; color: #fff;
  opacity: 0; transform: translateY(10px); transition: all .2s; pointer-events: none; z-index: 10; }
.toast.show { opacity: 1; transform: none; } .toast.bad { background: #6a2a2a; }
.badge.working { background: #454; color: #ffd479; }
button:disabled { opacity: .5; cursor: default; }
button.danger { background: #5a2a2a; } button.danger:hover { background: #7a3030; }
.score { position: relative; cursor: help; border-bottom: 1px dotted #888; }
.score .tip { display: none; position: absolute; z-index: 20; left: 0; top: 1.6em; width: 380px; padding: 10px 12px;
  background: #23262f; border: 1px solid #3a3e4c; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.5); font-weight: 400; }
.score:hover .tip, .score:focus .tip { display: block; }
.score .tip table { width: 100%; } .score .tip td { border: 0; padding: 2px 6px; vertical-align: top; }
.score .tip .pts { width: 36px; text-align: right; color: #9fd7a8; font-family: monospace; } .score .tip .pts.neg { color: #f99; }
.tip-meaning { margin-top: 8px; padding-top: 8px; border-top: 1px solid #3a3e4c; color: #ffd479; font-style: italic; }
tr.transcript td { border-bottom: 2px solid #2a2d38; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.artcell { width: 120px; } .thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; vertical-align: middle; border: 2px solid #2a2d38; }
.thumb.single { border-color: #4a6a9a; } .thumb.artist { border-color: #9a6a2a; } .noart { color: #f99; font-size: 12px; }
.arturl { margin-top: 4px; } .arturl input { width: 90px; }
.framings { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 10px; }
.framing { margin: 0; } .framing img { width: 100%; border-radius: 6px; border: 2px solid #2a2d38; } .framing.off img { opacity: .35; }
.framing figcaption { display: flex; gap: 6px; align-items: center; margin-top: 4px; font-size: 13px; }
textarea { font: inherit; background: #101116; color: #ddd; border: 1px solid #333; border-radius: 4px; padding: 6px 8px; }
.members { display: flex; flex-wrap: wrap; gap: 8px; }
.member { display: flex; align-items: center; gap: 8px; text-align: left; padding: 6px 10px 6px 6px; }
.member img { width: 56px; height: 36px; object-fit: cover; border-radius: 4px; } .member.active { outline: 2px solid #ffb347; } .member.off { opacity: .5; }
.member .noimg { width: 56px; height: 36px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: #888; background: #101116; border-radius: 4px; }
.col { display: flex; flex-direction: column; gap: 6px; } .col label { display: flex; flex-direction: column; gap: 2px; color: #aaa; font-size: 12px; }
.col input, .col textarea, .col select { width: 100%; box-sizing: border-box; }
.refs { display: flex; flex-wrap: wrap; gap: 10px; } .ref { margin: 0; width: 220px; } .ref img { width: 100%; border-radius: 6px; } .ref figcaption { font-size: 12px; display: flex; gap: 6px; align-items: center; }
.bgs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; } .bg { margin: 0; width: 420px; }
.bg-preview { position: relative; width: 100%; background: #000; border-radius: 6px; overflow: hidden; } .bg-preview img { width: 100%; display: block; }
.bg-screen { position: absolute; border: 2px dashed #5fd38d; background: rgba(95,211,141,.15); box-sizing: border-box; cursor: move; user-select: none; }
.bg-handle { position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px; background: #5fd38d; border-radius: 3px; cursor: nwse-resize; }
.bg-geom { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.bg-geom .fields { gap: 10px; align-items: center; flex-wrap: wrap; } .bg-geom label { color: #aaa; font-size: 12px; display: inline-flex; gap: 4px; align-items: center; }
.bg-geom input { width: 52px; } .bg-geom .actions { gap: 6px; }
.small { font-size: 12px; margin: 4px 0 0; }
.bg figcaption { font-size: 12px; display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal-box { background: #1b1d24; border-radius: 10px; padding: 18px 20px; width: min(96vw, 860px); max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.modal-box h2 { margin-top: 0; }
fieldset { border: 1px solid #2a2d38; border-radius: 8px; padding: 10px 12px; margin: 0; } legend { color: #aaa; font-size: 12px; padding: 0 6px; }
.song-row { align-items: center; gap: 6px; } .song-row .pos { width: 58px; color: #888; font-size: 12px; } .song-row input { flex: 1; }
.song-row button { padding: 2px 8px; }
#reuse-box label { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 4px 0; }
[hidden] { display: none !important; }
.pre { white-space: pre-line; }
label.check { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; }
label.check input:disabled + * { opacity: .5; }
.modal-box.wide { width: min(96vw, 1500px); }
.bg-editor { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.bg-editor .bg.big { flex: 1 1 640px; width: auto; max-width: 1000px; }
.bg-side { flex: 1 1 320px; gap: 10px; }
.bg-side fieldset .fields { gap: 8px; align-items: center; flex-wrap: wrap; }
.bg-side label { color: #aaa; font-size: 12px; display: inline-flex; gap: 4px; align-items: center; } .bg-side input[type=text], .bg-side input:not([type]) { width: 52px; }
.bg-box { position: absolute; border: 2px dashed #5fd38d; background: rgba(95,211,141,.15); box-sizing: border-box; cursor: move; user-select: none; }
.bg-box .bg-label { position: absolute; left: 2px; top: 2px; font-size: 11px; padding: 1px 5px; border-radius: 3px; background: rgba(0,0,0,.6); color: #fff; pointer-events: none; }
.bg-box[data-kind=power] { border-color: #ff6b6b; background: rgba(255,107,107,.18); }
.bg-box[data-kind=mute] { border-color: #ffd166; background: rgba(255,209,102,.18); }
.bg-box[data-kind=next] { border-color: #7fd3ff; background: rgba(127,211,255,.18); }
.bg-box[data-kind=power] .bg-handle { background: #ff6b6b; } .bg-box[data-kind=mute] .bg-handle { background: #ffd166; } .bg-box[data-kind=next] .bg-handle { background: #7fd3ff; }
.bg-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bg .bg-tags { color: #888; font-size: 11px; }
th.sortable { cursor: pointer; user-select: none; } th.sortable:hover { color: #fff; } th.sorted { color: #5fd38d; }
