/* Radio DJ: the scope bench (left), the studio scene and the answer panel (right) inside the practice shell's stage. */
.rdj { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 10px; padding: 8px 12px; }
.rdj-left { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; min-width: 0; min-height: 0; }
.rdj-right { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; min-width: 0; min-height: 0; }

/* the oscilloscope bezel */
.rdj-scopebox { display: flex; flex-direction: column; min-height: 0; padding: 6px 10px 10px; border-radius: 16px; border: 2px solid #0f1115;
  background: linear-gradient(#41464f, #262a30); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 6px 16px rgba(0, 0, 0, .25); }
.rdj-scopehead { display: flex; align-items: center; gap: 12px; padding: 0 4px 6px; font-size: 16px; font-weight: 700; color: #d1d5db; }
.rdj-brand { letter-spacing: .14em; color: #a5adba; }
.rdj-viewname { color: #b8ffcc; }
.rdj-leds { margin-left: auto; display: flex; gap: 6px; }
.rdj-leds i { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.rdj-leds i:nth-child(2) { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.rdj-leds i:nth-child(3) { background: #4b1d1d; box-shadow: none; }
.rdj-screen { position: relative; flex: 1; min-height: 0; }
.rdj-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rdj-tool { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--tlg-border-strong); background: var(--tlg-surface);
  color: var(--tlg-text); font: 700 16px var(--tlg-font); cursor: pointer; }
.rdj-tool:focus-visible { outline: var(--tlg-focus-width) solid var(--tlg-focus); outline-offset: 2px; }
.rdj-tool[aria-pressed="true"] { border-color: var(--ps-accent, #7b2d6b); box-shadow: inset 0 0 0 2px var(--ps-accent, #7b2d6b); }
.rdj-tool:disabled { opacity: .55; cursor: default; }
.rdj-spacer { flex: 1; }

/* the studio scene */
.rdj-studio { border-radius: 12px; overflow: hidden; background: #1a1426; line-height: 0; border: 2px solid #0d0a14; }
.rdj-studio-svg { display: block; width: 100%; height: auto; max-height: 172px; }

/* the answer panel */
.rdj-panel { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow-y: auto; padding: 2px 2px 2px 0; }
.rdj-k { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.25; }
.rdj-status { margin: 0; font-size: 16px; line-height: 1.3; color: var(--tlg-text-muted); }

/* chips */
.rdj-q { display: flex; flex-direction: column; gap: 6px; }
.rdj-chips { display: grid; gap: 6px; }
.rdj-chip { all: unset; box-sizing: border-box; display: flex; gap: 10px; align-items: flex-start; min-height: 48px; padding: 8px 12px; border-radius: 10px; cursor: pointer;
  border: 2px solid var(--tlg-border-strong); background: var(--tlg-surface); color: var(--tlg-text); font-size: 16px; line-height: 1.3; }
.rdj-chip:focus-visible { outline: var(--tlg-focus-width) solid var(--tlg-focus); outline-offset: 2px; }
.rdj-chip[aria-checked="true"] { border-color: var(--ps-accent, #7b2d6b); box-shadow: inset 5px 0 0 var(--ps-accent, #7b2d6b); background: var(--tlg-surface-2); }
.rdj-chip[disabled] { cursor: default; }
.rdj-box { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--tlg-border-strong); background: var(--tlg-surface); }
.rdj-chip[aria-checked="true"] .rdj-box { background: var(--ps-accent, #7b2d6b); border-color: var(--ps-accent, #7b2d6b); box-shadow: inset 0 0 0 3px var(--tlg-surface); }
.rdj-chip.is-ok { border-color: #15803d; }
.rdj-chip.is-ok .rdj-chip-t::after { content: ' ✓'; color: #15803d; font-weight: 900; }
.rdj-chip.is-bad { border-color: #b91c1c; }
.rdj-chip.is-bad .rdj-chip-t::after { content: ' ✗'; color: #b91c1c; font-weight: 900; }
html[data-theme="dark"] .rdj-chip.is-ok .rdj-chip-t::after { color: #86efac; }
html[data-theme="dark"] .rdj-chip.is-bad .rdj-chip-t::after { color: #fca5a5; }

/* drag tokens: the labels and the EM bands */
.rdj-tray { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 60px; padding: 6px 8px; border-radius: 10px;
  border: 2px dashed var(--tlg-border-strong); background: var(--tlg-surface-2); }
.rdj-tok { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 2px 14px; border-radius: 999px;
  font-size: 18px; font-weight: 800; line-height: 1.1; white-space: nowrap; cursor: grab; background: #fff8e1; color: #1b1600; border: 2px solid #8a6d1a; box-shadow: 0 2px 0 #8a6d1a; }
.rdj-tok:focus-visible { outline: var(--tlg-focus-width) solid var(--tlg-focus); outline-offset: 2px; }
.rdj-tok.is-ok { border-color: #166534; box-shadow: 0 2px 0 #166534; }
.rdj-tok.is-ok::after { content: ' ✓'; color: #166534; }
.rdj-tok.is-bad { border-color: #991b1b; box-shadow: 0 2px 0 #991b1b; background: #fee2e2; }
.rdj-tok.is-bad::after { content: ' ✗'; color: #991b1b; }
.rdj-tok--band { font-size: 17px; padding: 2px 12px; }

/* markers on the scope (label orders) */
.rdj-zone { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; min-width: 120px; min-height: 46px; padding: 3px 8px 3px 4px;
  border-radius: 12px; border: 2px dashed rgba(255, 224, 138, .95); background: rgba(2, 12, 6, .9); color: #ffe08a; }
.rdj-zone.has-token { border-style: solid; }
.rdj-zone-id { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ffe08a; color: #1b1600; font-size: 17px; font-weight: 900; }
.rdj-zone-slot { display: flex; flex: 1; justify-content: center; min-width: 0; }
.rdj-zone .rdj-tok { min-height: 36px; padding: 2px 10px; font-size: 16px; }

/* numeric entry: a little tighter so the keypad and the × 10ⁿ row fit beside the scope */
.rdj-num .pn-key { min-height: 42px; }
.rdj-num--sci .pn-key { min-height: 38px; }
.rdj-num .pn-input { font-size: 26px; padding: 2px 0; }
.rdj-num .pn-chip { min-height: 40px; }
.rdj-num .pn-exponent { margin: 0; }
.rdj-num .pn-exp-input { min-height: 40px; }

/* dials */
.rdj-dials { display: flex; flex-direction: column; gap: 8px; }
.rdj-dials .pws-dial--small { padding: 6px 10px; }
.rdj-dials .pws-dial--small .pws-dial-value { font-size: 22px; }

/* EM order slots */
.rdj-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rdj-slot { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 52px; padding: 3px 10px 3px 6px; border-radius: 10px;
  border: 2px solid var(--tlg-border-strong); background: var(--tlg-surface); }
.rdj-slot.has-token { border-color: var(--ps-accent, #7b2d6b); }
.rdj-slot-n { font-size: 20px; font-weight: 900; text-align: center; }
.rdj-slot-in { display: flex; min-width: 0; }
.rdj-slot-hint { font-size: 16px; color: var(--tlg-text-muted); text-align: right; }
.rdj-slot.is-ok { border-color: #15803d; }
.rdj-slot.is-ok .rdj-slot-n::after { content: '✓'; color: #15803d; margin-left: 2px; }
.rdj-slot.is-bad { border-color: #b91c1c; }
.rdj-slot.is-bad .rdj-slot-n::after { content: '✗'; color: #b91c1c; margin-left: 2px; }
html[data-theme="dark"] .rdj-slot.is-ok .rdj-slot-n::after { color: #86efac; }
html[data-theme="dark"] .rdj-slot.is-bad .rdj-slot-n::after { color: #fca5a5; }

/* the spectrum chirp on the scope */
.rdj-spec { position: absolute; pointer-events: none; }
.rdj-spec svg { display: block; overflow: visible; }
.rdj-spec text { font: 700 16px var(--tlg-font, system-ui, sans-serif); fill: #e3ffe9; paint-order: stroke; stroke: #03130a; stroke-width: 4px; }

/* the Briefing example */
.rdj-ex { display: grid; gap: 6px; }
.rdj-ex-dial { margin: 0; font-size: 16px; }
.rdj-ex-screen { position: relative; height: 230px; }
.rdj-ex--narrow .rdj-ex-screen { height: 200px; }

@media (max-width: 1100px) { .rdj { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (max-width: 900px) {
  .rdj { position: static; grid-template-columns: 1fr; }
  .rdj-left { grid-template-rows: 420px auto; }
  .rdj-right { grid-template-rows: auto auto; }
  .rdj-panel { overflow: visible; }
}
/* the assignment card sits at the foot of the customer column, so the answer panel's corner stays clear */
@media (min-width: 901px) {
  html.ps-locked:has(.rdj) .lga-card { right: auto; left: 12px; }
  html.ps-locked:has(.rdj):has(.lga-card) .ps-side { padding-bottom: 84px; }
}
.rdj-lockslot { margin-left: auto; display: flex; }
.rdj-lockslot + .rdj-leds { margin-left: 10px; }
.rdj-zone { width: 150px; }
.rdj-panel > * { flex-shrink: 0; }
.rdj-tok--band { font-size: 16px; padding: 2px 11px; }
.rdj-slot { min-height: 48px; }
.rdj-slots { gap: 5px; }
.rdj-zone { width: 140px; min-width: 0; }
.rdj-brand, .rdj-viewname { white-space: nowrap; }
.rdj-zone { width: auto; min-width: 136px; gap: 4px; padding: 3px 6px 3px 4px; }
.rdj-zone-id { width: 26px; height: 26px; }
.rdj-zone .rdj-tok { padding: 2px 7px; }
