/* ================================================================
   CONSOLA DE ANÁLISIS — estilo retro coherente con el simulador
   ================================================================ */

#mob-consola-mount {
  margin-top: 16px;
}

#mob-sim .mob-consola {
  font-family: "Courier New", monospace;
}

#mob-sim .mob-consola__toggle {
  width: 100%;
  background: #373435;
  color: #f2f2f2;
  border: 2px solid #111;
  border-radius: 2px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.4);
}
#mob-sim .mob-consola__toggle:hover { background: #1a1a1a; }

#mob-sim .mob-consola__toggle-icon {
  font-size: 14px;
  transition: transform 0.2s ease;
}

#mob-sim .mob-consola__body {
  background: #111;
  border: 2px solid #333;
  border-top: none;
  border-radius: 0 0 2px 2px;
  padding: 0;
}

#mob-sim .mob-consola__output {
  height: 320px;
  overflow-y: auto;
  padding: 14px 18px;
  color: #e0e0e0;
  font-size: 12px;
  line-height: 1.5;
  background: #0a0a0a;
  scrollbar-width: thin;
  scrollbar-color: #555 #111;
}

#mob-sim .mob-consola__output::-webkit-scrollbar { width: 8px; }
#mob-sim .mob-consola__output::-webkit-scrollbar-thumb {
  background: #444; border-radius: 4px;
}

#mob-sim .mob-consola__line {
  margin-bottom: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

#mob-sim .mob-consola__prompt-echo {
  color: #6dd5ed;
  font-weight: bold;
}

#mob-sim .mob-cmd {
  background: rgba(109, 213, 237, 0.12);
  color: #6dd5ed;
  padding: 1px 5px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 11px;
}

#mob-sim .mob-muted {
  color: #888;
  font-size: 11px;
}

#mob-sim .mob-err {
  color: #FF6B6B;
  font-weight: bold;
}

/* ---------- Tablas ---------- */
#mob-sim .mob-tabla {
  border-collapse: collapse;
  margin: 6px 0 12px 0;
  font-size: 12px;
  width: 100%;
  max-width: 620px;
}
#mob-sim .mob-tabla td {
  padding: 3px 12px 3px 0;
  vertical-align: top;
  border-bottom: 1px solid #222;
}
#mob-sim .mob-tabla__k {
  color: #888;
  white-space: nowrap;
}
#mob-sim .mob-tabla__v {
  color: #f0f0f0;
}
#mob-sim .mob-tabla__d {
  color: #6dd5ed;
  text-align: right;
  white-space: nowrap;
  font-size: 11px;
}

#mob-sim .mob-help-titulo {
  color: #6dd5ed;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 8px;
}

/* ---------- Formulario ---------- */
#mob-sim .mob-consola__form {
  display: flex;
  align-items: center;
  background: #1a1a1a;
  border-top: 1px solid #333;
  padding: 10px 14px;
  gap: 10px;
}

#mob-sim .mob-consola__prompt {
  color: #6dd5ed;
  font-weight: bold;
  font-size: 14px;
}

#mob-sim .mob-consola__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f0f0f0;
  font-family: inherit;
  font-size: 13px;
  padding: 4px 0;
}

#mob-sim .mob-consola__input::placeholder {
  color: #555;
}

#mob-sim .mob-consola__btn {
  background: #373435;
  color: #f2f2f2;
  border: 1px solid #555;
  border-radius: 2px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}

#mob-sim .mob-consola__btn:hover {
  background: #6dd5ed;
  color: #0b1a2e;
  border-color: #6dd5ed;
}

@media (max-width: 600px) {
  #mob-sim .mob-consola__output { height: 260px; font-size: 11px; }
  #mob-sim .mob-tabla { font-size: 11px; }
}

/* ---------- Contenedor de gráficos ---------- */
#mob-sim .mob-grafico-wrap {
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 2px;
  padding: 10px;
  margin: 8px 0 16px 0;
  overflow-x: auto;
}

#mob-sim .mob-grafico-wrap canvas {
  display: block;
  max-width: 100%;
  height: auto;
}