

.radio-coding-shell {
  --rc-accent: #4f9cf9;
  --rc-line: rgba(148, 179, 211, 0.14);
  --rc-panel: #0d1b2c;
  --rc-muted: rgba(205, 224, 243, 0.6);
  position: fixed;
  inset: 0;
  z-index: 21000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 8, 15, 0.62);
  backdrop-filter: blur(5px);
  font-family: "Rajdhani", Arial, sans-serif;
  color: #eaf4fe;
  animation: rc-overlay-in 0.16s ease-out;
}

@keyframes rc-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.radio-coding-shell.hidden {
  display: none !important;
}

.radio-coding-card {
  width: min(720px, 100%);
  max-height: min(86vh, 780px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(148, 179, 211, 0.18);
  background: var(--rc-panel);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: rc-card-in 0.18s ease-out;
}

@keyframes rc-card-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.radio-coding-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--rc-line);
  background: rgba(9, 20, 34, 0.7);
}

.radio-coding-head::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--rc-accent), transparent);
  opacity: 0.85;
}

.radio-coding-head-text {
  min-width: 0;
}

.radio-coding-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f1f8ff;
}

.radio-coding-sub {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--rc-muted);
}

.radio-coding-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--rc-line);
  border-radius: 9px;
  background: rgba(148, 179, 211, 0.07);
  color: rgba(226, 239, 252, 0.78);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.radio-coding-close:hover {
  border-color: rgba(79, 156, 249, 0.4);
  background: rgba(79, 156, 249, 0.13);
  color: #fff;
}

.radio-coding-body {
  padding: 20px 22px 16px;
  overflow: auto;
  min-height: 0;
}

.radio-coding-section {
  margin-bottom: 20px;
}

.radio-coding-section:last-child {
  margin-bottom: 0;
}

.radio-coding-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(168, 206, 247, 0.9);
}

.radio-coding-section-title::before {
  content: "";
  flex-shrink: 0;
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--rc-accent);
  box-shadow: 0 0 10px rgba(79, 156, 249, 0.55);
}

.radio-coding-target-list,
.radio-coding-folder-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.radio-coding-folder-list {
  max-height: 390px;
  overflow: auto;
  padding: 2px 5px 2px 2px;
}

.radio-coding-target,
.radio-coding-folder {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid rgba(148, 179, 211, 0.1);
  background: rgba(148, 179, 211, 0.035);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.radio-coding-target:hover,
.radio-coding-folder:hover {
  border-color: rgba(79, 156, 249, 0.26);
  background: rgba(79, 156, 249, 0.08);
}

.radio-coding-target.active,
.radio-coding-folder.active {
  border-color: rgba(79, 156, 249, 0.5);
  background: linear-gradient(90deg, rgba(79, 156, 249, 0.18), rgba(79, 156, 249, 0.07));
}

.radio-coding-folder:has(input:checked),
.radio-coding-target:has(input:checked) {
  border-color: rgba(79, 156, 249, 0.48);
  background: linear-gradient(135deg, rgba(79, 156, 249, 0.18), rgba(79, 156, 249, 0.06));
  box-shadow: inset 3px 0 0 var(--rc-accent);
}

.radio-coding-target input,
.radio-coding-folder input {
  width: 18px;
  height: 18px;
  accent-color: var(--rc-accent);
  cursor: pointer;
}

.radio-coding-target-label,
.radio-coding-folder-label {
  font-size: 15px;
  font-weight: 600;
  color: #eaf4fe;
}

.radio-coding-folder-count {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(148, 179, 211, 0.1);
  color: var(--rc-muted);
  font-size: 10px;
  font-weight: 600;
}

.radio-coding-hint {
  margin: 0;
  font-size: 12px;
  color: rgba(205, 224, 243, 0.5);
}

.radio-coding-msg {
  margin: 9px 0 0;
  min-height: 16px;
  font-size: 12px;
  color: #f4a5a5;
}

.radio-coding-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 22px 16px;
  border-top: 1px solid var(--rc-line);
  background: rgba(7, 16, 28, 0.5);
}

.radio-coding-foot > .radio-coding-hint {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.radio-coding-foot-actions {
  display: flex;
  gap: 8px;
}

.radio-coding-btn {
  min-width: 112px;
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--rc-line);
  background: rgba(148, 179, 211, 0.06);
  color: rgba(226, 239, 252, 0.82);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.radio-coding-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.radio-coding-selection-summary {
  flex: 0 0 auto;
  min-width: 112px;
  padding: 8px 11px;
  border: 1px solid rgba(79, 156, 249, 0.2);
  border-radius: 9px;
  background: rgba(79, 156, 249, 0.08);
  text-align: right;
}

.radio-coding-selection-summary strong,
.radio-coding-selection-summary span {
  display: block;
}

.radio-coding-selection-summary strong {
  color: #8fc5ff;
  font-size: 18px;
  line-height: 1;
}

.radio-coding-selection-summary span {
  margin-top: 3px;
  color: var(--rc-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .radio-coding-target-list,
  .radio-coding-folder-list {
    grid-template-columns: 1fr;
  }

  .radio-coding-section-head,
  .radio-coding-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .radio-coding-selection-summary {
    text-align: left;
  }

  .radio-coding-foot-actions {
    justify-content: flex-end;
  }
}

.radio-coding-btn:hover {
  border-color: rgba(79, 156, 249, 0.34);
  background: rgba(79, 156, 249, 0.12);
  color: #eaf4fe;
}

.radio-coding-btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #4f9cf9, #2f6fd0);
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 156, 249, 0.28);
}

.radio-coding-btn.primary:hover {
  background: linear-gradient(135deg, #5fa8ff, #3b82f6);
  box-shadow: 0 8px 20px rgba(79, 156, 249, 0.38);
  transform: translateY(-1px);
}

.radio-coding-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.radio-coding-shell ::-webkit-scrollbar {
  width: 8px;
}

.radio-coding-shell ::-webkit-scrollbar-track {
  background: transparent;
}

.radio-coding-shell ::-webkit-scrollbar-thumb {
  background: rgba(111, 157, 202, 0.32);
  border-radius: 8px;
}

.radio-coding-shell ::-webkit-scrollbar-thumb:hover {
  background: rgba(111, 157, 202, 0.5);
}
