
/* THE CHANNEL EDITOR · generated from console_spec.py */
.cx { margin: 14px 0 0; border: 1px solid var(--rule); border-radius: 8px;
      background: var(--bg-card); overflow: hidden; }
.cx__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; background: var(--bg-soft);
  border-bottom: 1px solid var(--rule); }
.cx__who { font: 700 13px/1 'Segoe UI', sans-serif; color: var(--ink); }
.cx__who b { color: var(--gel, #C9A84C); }
.cx__count { font: 400 10.5px/1 'Courier New', monospace;
  color: var(--muted); letter-spacing: .08em; }
.cx__tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.cx__tab { font: 600 9.5px/1 'Courier New', monospace; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer; padding: 6px 9px;
  border: 1px solid var(--rule); border-radius: 4px; background: transparent;
  color: var(--muted); }
.cx__tab:hover { border-color: var(--gel, #C9A84C); color: var(--ink); }
.cx__tab.on { background: var(--gel, #C9A84C); border-color: var(--gel);
  color: #0C0E12; }
.cx__tab.locked { opacity: .4; }

.cx__body { padding: 12px; }
.cx__grid { display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }

.cx__c { position: relative; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--bg-soft); padding: 7px 6px 8px; text-align: center;
  min-height: 92px; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; gap: 4px; }
.cx__c.is-locked { opacity: .34; pointer-events: none; }
.cx__c.is-locked::after { content: attr(data-mod); position: absolute;
  top: 3px; right: 5px; font: 700 7.5px/1 'Courier New', monospace;
  color: var(--muted); letter-spacing: .08em; }
.cx__lab { font: 600 8.5px/1.15 'Segoe UI', sans-serif; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase; min-height: 20px; }
.cx__val { font: 700 11px/1 'Courier New', monospace; color: var(--ink);
  font-variant-numeric: tabular-nums; }
.cx__unit { font-size: 8.5px; color: var(--muted); font-weight: 400; }

/* ⛔ the knob is the SAME control the strip uses — same class, same drag
   handler, same maths. A second kind of knob that behaves slightly
   differently is a bug waiting for a student to find it. */
.cx__knob { width: 38px; height: 38px; }
.cx__sw { width: 100%; border: 1px solid var(--rule); border-radius: 4px;
  background: transparent; color: var(--muted); cursor: pointer;
  font: 700 8.5px/1 'Courier New', monospace; letter-spacing: .1em;
  padding: 7px 2px; text-transform: uppercase; }
.cx__sw:hover { border-color: var(--gel, #C9A84C); color: var(--ink); }
.cx__sw.on { background: var(--gel, #C9A84C); border-color: var(--gel);
  color: #0C0E12; }
.cx__sw.mom.on { background: #8C2F1E; border-color: #8C2F1E; color: #FFF8EC; }
.cx__sel { width: 100%; font: 600 9px/1 'Courier New', monospace;
  background: var(--bg-card); color: var(--ink); border: 1px solid var(--rule);
  border-radius: 4px; padding: 6px 3px; cursor: pointer; }
.cx__meter { width: 100%; height: 9px; border-radius: 3px;
  background: #11151a; border: 1px solid var(--rule); overflow: hidden; }
.cx__meter i { display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #4FD38A, #FFD479 72%, #FF6B6B); }
.cx__disp { width: 100%; min-height: 34px; border-radius: 4px;
  background: #11151a; border: 1px solid var(--rule);
  font: 600 8px/1.3 'Courier New', monospace; color: var(--muted);
  display: flex; align-items: center; justify-content: center; padding: 3px; }

/* the explanation, which is the reason this screen exists at all */
.cx__why { margin: 10px 0 0; padding: 9px 11px; border-radius: 6px;
  background: var(--bg-soft); border: 1px solid var(--rule);
  font: 400 11.5px/1.5 'Segoe UI', sans-serif; color: var(--ink-soft);
  min-height: 36px; }
.cx__why b { color: var(--gel, #C9A84C); }
.cx__why em { color: var(--muted); font-style: normal; }

@media (max-width: 720px) {
  .cx__grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .cx__knob { width: 32px; height: 32px; }
}
