:root {
  --bg: #0d0e0f;
  --panel: #15171a;
  --panel2: #1c1f23;
  --line: #272b30;
  --ink: #dedad2;
  --dim: #8d8981;
  --acc: #c8452f;
  --ok: #8fbc72;
  --warn: #d2a63a;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink);
  font: 14px/1.5 "Inter", "Segoe UI", system-ui, sans-serif; }
header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px;
  border-bottom: 1px solid var(--line); background: #0b0c0d; }
header .brand { letter-spacing: .22em; font-weight: 700; font-size: 13px; }
header .brand span { color: var(--acc); }
header .links a { color: var(--dim); margin-left: 18px; text-decoration: none; font-size: 13px; }
header .links a:hover { color: var(--ink); }
main.wide { display: grid; grid-template-columns: 250px minmax(0, 1fr); height: calc(100vh - var(--gc-head, 52px));
  min-height: 0; max-width: none; padding: 0; }
main.wide.detail { grid-template-columns: 250px minmax(0, 1fr) 470px; }
#groups { border-right: 1px solid var(--line); overflow: auto; padding: 10px 8px; background: #0b0c0d; }
.group { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; margin: 1px 0; border: 0;
  border-radius: 5px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit;
  font-size: 13px; }
.group:hover { background: var(--panel); }
.group.on { background: var(--panel2); box-shadow: inset 2px 0 0 var(--acc); }
.group span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group b { color: var(--dim); font-weight: 500; font-size: 12px; }
.group .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
#list { overflow: auto; min-height: 0; }
.search { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg); z-index: 3; }
.search input { flex: 1; padding: 9px 12px; background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  border-radius: 6px; font: inherit; }
.search input:focus { outline: none; border-color: #3d444c; }
#count { color: var(--dim); white-space: nowrap; font-size: 12px; }
#rows { padding: 4px 12px 48px; }
#rows h2 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
  margin: 20px 6px 6px; font-weight: 600; }
.row { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 5px; cursor: pointer;
  border: 1px solid transparent; }
.row:hover { background: var(--panel); }
.row.on { background: var(--panel2); border-color: var(--line); }
.row .meta { color: var(--dim); font-variant-numeric: tabular-nums; width: 52px; font-size: 12px; }
.row .name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row .name small { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
.tag.live { color: var(--ok); border-color: #3a5030; }
.tag.subs { color: var(--warn); border-color: #574a1e; }
.tag.staged { color: var(--warn); }
.tag.published { color: var(--ok); }
.tag.rejected { color: var(--acc); }
#detail { border-left: 1px solid var(--line); overflow: auto; padding: 18px 18px 40px; background: #0b0c0d;
  position: relative; min-height: 0; }
#detail h2 { font-size: 17px; margin: 0 70px 2px 0; word-break: break-word; }
#detail .path { color: var(--dim); margin: 0 0 14px; word-break: break-all; font-size: 12px; }
#detail .close { position: absolute; top: 14px; right: 14px; padding: 5px 10px; border-radius: 5px;
  border: 1px solid var(--line); background: var(--panel); color: var(--dim); cursor: pointer; font: inherit;
  font-size: 12px; }
#detail .close:hover { color: var(--ink); }
.stage { position: relative; height: 180px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #21252a, #0a0b0c 70%); display: grid; place-items: center; }
.stage .vis { width: 100%; height: 100%; display: block; }
.stage img { position: absolute; inset: 0; margin: auto; max-width: 92%; max-height: 92%; image-rendering: pixelated; }
.stage-note { position: absolute; left: 10px; bottom: 8px; color: var(--dim); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; }
.variants { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; align-items: stretch; }
.variant { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; font: inherit;
  text-align: left; }
.variant b { font-weight: 600; font-size: 12px; }
.variant small { color: var(--dim); font-size: 11px; max-width: 150px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.variant.on { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.variant:hover { border-color: #3d444c; }
.rough { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 12px;
  cursor: pointer; user-select: none; }
.transport { margin: 10px 0 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.transport .buttons { display: flex; gap: 8px; align-items: center; }
.transport .time { color: var(--dim); font-variant-numeric: tabular-nums; font-size: 12px; width: 52px; }
.transport canvas { width: 100%; height: 64px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  background: #191c1f; }
.transport audio { display: none; }
.b { padding: 8px 12px; background: var(--panel2); color: var(--ink); border: 1px solid var(--line);
  border-radius: 6px; cursor: pointer; font: inherit; font-size: 13px; }
.b:hover { border-color: #3d444c; }
.b.wide { min-width: 76px; }
.b.quiet { color: var(--dim); }
.b.quiet.on { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 16px; }
.facts dt { color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.facts dd { margin: 2px 0 0; font-size: 13px; }
.subs { border-top: 1px solid var(--line); padding-top: 12px; }
.subs h3, .upload h3 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
  margin: 0 0 8px; font-weight: 600; }
.sub { border: 1px solid var(--line); border-radius: 7px; padding: 10px; margin: 8px 0; background: var(--panel);
  display: flex; flex-direction: column; gap: 6px; }
.sub.live { border-color: #3a5030; }
.sub .head { display: flex; align-items: center; gap: 8px; }
.sub .head small { margin-left: auto; color: var(--dim); font-size: 11px; }
.sub .note { margin: 0; color: var(--ink); font-size: 13px; }
.sub .row-b { display: flex; gap: 8px; }
.upload { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; display: flex; flex-direction: column;
  gap: 8px; }
.upload input, .upload textarea { padding: 8px 10px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px; color: var(--ink); font: inherit; }
.upload input[type=file] { display: none; }
.drop { display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; border: 1px dashed #33393f;
  border-radius: 7px; color: var(--dim); cursor: pointer; text-align: center; background: #121416; }
.drop b { color: var(--ink); font-weight: 600; }
.drop.over { border-color: var(--acc); background: #17130f; }
.said { color: var(--warn); min-height: 1.2em; margin: 0; font-size: 12px; }
.empty { color: var(--dim); font-style: italic; }
.gc-main.login { max-width: 340px; padding-top: 56px; }
.gc-main.login h1 { font-size: 20px; margin: 0 0 18px; }
.gc-main.login label { display: block; margin: 14px 0 5px; font-size: 12px; color: var(--dim); }
.gc-main.login input { width: 100%; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px; color: var(--ink); font: inherit; }
.gc-main.login input:focus { outline: none; border-color: #3d444c; }
.gc-main.login .go { margin-top: 20px; width: 100%; }
.gc-main.login .warn { color: var(--acc); margin: 12px 0 0; }
.gc-main.login .small { margin: 6px 0 0; }
.gc-main.admin { max-width: var(--gc-page); }
table.uploads { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13px; }
table.uploads th { text-align: left; color: var(--dim); font-weight: 500; font-size: 11px; text-transform: uppercase;
  letter-spacing: .1em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.uploads td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.uploads td.note { color: var(--ink); }
table.uploads td.acts { white-space: nowrap; display: flex; gap: 6px; }
table.uploads form { display: inline; }
footer { padding: 7px 20px; background: #0b0c0d; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
@media (max-width: 1180px) {
  
  body.detail #groups, body.detail #list { display: none; }
  #detail { border-left: 0; }
}
