/**
 * Probabilistic Distribution in Communication Technology
 * Radio Fading Simulator: Gaussian, Rayleigh, Rician
 * Scoped styles, max-width 800px, Courier New
 */
#pdfincomm-root {
  max-width: 800px;
  margin: 0 auto;
  background: #0b0e14;
  color: #e0e0e0;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  padding: 12px;
  box-sizing: border-box;
}

#pdfincomm-root * {
  box-sizing: border-box;
}

#pdfincomm-root .pdfincomm-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
}

#pdfincomm-root .pdfincomm-sidebar {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#pdfincomm-root .pdfincomm-control-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

#pdfincomm-root .pdfincomm-control-row label {
  min-width: 72px;
  color: #00f2ff;
}

#pdfincomm-root .pdfincomm-control-row input[type="range"] {
  flex: 1;
  min-width: 60px;
  accent-color: #00f2ff;
}

#pdfincomm-root .pdfincomm-control-row .pdfincomm-val {
  min-width: 48px;
  color: #ffdd00;
  font-size: 11px;
}

#pdfincomm-root .pdfincomm-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#pdfincomm-root .pdfincomm-panel-title {
  font-size: 11px;
  color: #00f2ff;
  margin-bottom: 6px;
}

#pdfincomm-root .pdfincomm-panel canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #0a0c10;
}

/* Constellation: fixed size, no stretch — crisp composite (I/Q marginals + 2D) */
#pdfincomm-root #pdfincomm-canvas-iq {
  width: 400px !important;
  height: 400px !important;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

#pdfincomm-root .pdfincomm-stats {
  font-size: 10px;
  color: #aaa;
  margin-top: 8px;
  line-height: 1.5;
}

#pdfincomm-root .pdfincomm-stats span {
  display: block;
}

#pdfincomm-root .pdfincomm-btn {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  padding: 6px 10px;
  background: rgba(0, 242, 255, 0.15);
  border: 1px solid #00f2ff;
  color: #00f2ff;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 6px;
}

#pdfincomm-root .pdfincomm-btn:hover {
  background: rgba(0, 242, 255, 0.25);
}

#pdfincomm-root .pdfincomm-btn.freeze-on {
  background: rgba(255, 221, 0, 0.2);
  border-color: #ffdd00;
  color: #ffdd00;
}

#pdfincomm-root .pdfincomm-main {
  display: flex;
  flex-direction: column;
}
