/* PL_CODE_THEORY_20261006 — solo Programación */
#cdTheoryRoot { position: fixed; z-index: 60; left: 14px; bottom: 18px; pointer-events: none; }
.cdtheory-fab,
.cdtheory-panel,
.cdtheory-x { pointer-events: auto; }
.cdtheory-fab {
  border: 0;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  font: 800 0.95rem/1 Fredoka, Nunito, ui-rounded, system-ui, sans-serif;
  color: #1a1030;
  background: #c4b5fd;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  cursor: pointer;
}
.cdtheory-fab:focus-visible,
.cdtheory-x:focus-visible { outline: 2px solid #f7f1e6; outline-offset: 2px; }
.cdtheory-panel {
  position: absolute;
  left: 0;
  bottom: 58px;
  width: min(440px, calc(100vw - 28px));
  max-height: min(70vh, 640px);
  overflow: auto;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: #140f22;
  color: #f7f1e6;
  border: 1px solid rgba(196, 181, 253, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.cdtheory-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cdtheory-top p { margin: 0; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: #c4b5fd; font-weight: 800; }
.cdtheory-top strong { display: block; margin-top: 2px; font-size: 1.05rem; }
.cdtheory-x {
  width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.08); color: #f7f1e6; font-weight: 800;
}
.cdtheory-body p { margin: 0 0 10px; font-size: 0.95rem; line-height: 1.45; color: rgba(247, 241, 230, 0.94); }
.cdtheory-body strong { color: #c4b5fd; font-weight: 800; }
.cdtheory-note { margin: 4px 0 0 !important; font-size: 0.8rem !important; color: rgba(247, 241, 230, 0.62) !important; }
@media (max-width: 720px) {
  #cdTheoryRoot { bottom: 12px; left: 10px; }
  .cdtheory-panel { max-height: 58vh; }
}
